Jiri Olsa

#14100of 53,632
19Total CVSS
Vulnerabilities · 4
Low
1
Medium
3
PT-2024-11179
5.5
2021-06-02
Linux · Linux Kernel · CVE-2021-47128
**Name of the Vulnerable Software and Affected Versions** Linux kernel (affected versions not specified) **Description** The issue is related to buggy SELinux lockdown permission checks in the Linux kernel. The problem arises from the implementation of the locked down LSM hook to SELinux, which aims to restrict domains allowed to perform operations that breach lockdown. This implementation indirectly involves the audit subsystem, reporting events that can cause issues. Specifically, the audit events triggered by calls to security locked down() can lead to an Out-of-Memory (OOM) kill of a machine. Additionally, there's a potential deadlock via avc has perm()/slow avc audit() when waking up kauditd, especially when using the trace sched switch() tracepoint. The intention to restrict lockdown settings for specific applications is broken for BPF (Berkeley Packet Filter), as the SELinux policy rule for the current lockdown check does not match the 'current' task executing security locked down(). The policy should be against the entity installing the BPF program, not against random applications like httpd doing a syscall. The fix involves moving the security locked down() check into the program verification phase, reliably getting the task trying to install the BPF tracing program and fixing the OOM issue by moving the check out of the BPF helper's fast-path. **Recommendations** At the moment, there is no information about a newer version that contains a fix for this vulnerability.