selinux: allow multiple opens of /sys/fs/selinux/policy
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cee74f47a6baba0ac457e87687fdcf0abd599f0a · < a02cd6805562305f936e807da83e253b719dd965| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel permits only one process at a time to open /sys/fs/selinux/policy. Any local process can hold it open and prevent other processes from reading the kernel policy; no user interaction is required.
Teams running Linux kernels with the affected SELinux policy interface should check their kernel version; affected versions were not provided.