Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected cee74f47a6baba0ac457e87687fdcf0abd599f0a before d8cafd0226d5df682d1f4ea978a4318fe3a11210; affected cee74f47a6baba0ac457e87687fdcf0abd599f0a before 0ed712134a3db0075bfe9a0f8536c48728ec745e; affected cee74f47a6baba0ac457e87687fdcf0abd599f0a before c24d2e190b955baf3a95e05d34b192f61bd201b3; affected cee74f47a6baba0ac457e87687fdcf0abd599f0a before 714362f3779dfa453a78ced32396a72726962a41; affected cee74f47a6baba0ac457e87687fdcf0abd599f0a before a02cd6805562305f936e807da83e253b719dd965 |
| Linux / Linux | affected 2.6.37; unaffected 0 before 2.6.37; unaffected 6.6.160 through 6.6.*; unaffected 6.12.114 through 6.12.*; unaffected 6.18.58 through 6.18.*; unaffected 7.0.7 through 7.0.*; unaffected 7.1 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/d8cafd0226d5df682d1f4ea978a4318fe3a11210
- https://git.kernel.org/stable/c/0ed712134a3db0075bfe9a0f8536c48728ec745e
- https://git.kernel.org/stable/c/c24d2e190b955baf3a95e05d34b192f61bd201b3
- https://git.kernel.org/stable/c/714362f3779dfa453a78ced32396a72726962a41
- https://git.kernel.org/stable/c/a02cd6805562305f936e807da83e253b719dd965