selinux: allow multiple opens of /sys/fs/selinux/policy
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.114, 6.18.58, 7.0.7
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: selinux: allow multiple opens of /sys/fs/selinux/policy Currently there can only be a single open of /sys/fs/selinux/policy at any time. This allows any process to block any other process from reading the kernel policy. The original motivation seems to have been a mix of preventing an inconsistent view of the policy size and preventing userspace from allocating kernel memory without bound, but this is arguably equally bad. Eliminate the policy_opened flag and shrink the critical section that the policy mutex is held. While we are making changes here, drop a couple of extraneous BUG_ONs.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From cee74f47a6baba0ac457e87687fdcf0abd599f0a · fixed in d8cafd0226d5df682d1f4ea978a4318fe3a11210; From cee74f47a6baba0ac457e87687fdcf0abd599f0a · fixed in 0ed712134a3db0075bfe9a0f8536c48728ec745e; From cee74f47a6baba0ac457e87687fdcf0abd599f0a · fixed in c24d2e190b955baf3a95e05d34b192f61bd201b3; From cee74f47a6baba0ac457e87687fdcf0abd599f0a · fixed in 714362f3779dfa453a78ced32396a72726962a41; From cee74f47a6baba0ac457e87687fdcf0abd599f0a · fixed in a02cd6805562305f936e807da83e253b719dd965
- Linux Linux
2.6.37
- KernelLinux
From 2.6.37 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.114; From 6.13.0 · fixed in 6.18.58; From 6.19.0 · fixed in 7.0.7