selinux: fix overlayfs mmap() and mprotect() access checks
- 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.144, 6.12.95, 6.18.38, 7.0.4
- 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
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: selinux: fix overlayfs mmap() and mprotect() access checks The existing SELinux security model for overlayfs is to allow access if the current task is able to access the top level file (the "user" file) and the mounter's credentials are sufficient to access the lower level file (the "backing" file). Unfortunately, the current code does not properly enforce these access controls for both mmap() and mprotect() operations on overlayfs filesystems. This patch makes use of the newly created security_mmap_backing_file() LSM hook to provide the missing backing file enforcement for mmap() operations, and leverages the backing file API and new LSM blob to provide the necessary information to properly enforce the mprotect() access controls.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 2f502839e85ab265f03f25f30d6463154aee5473 · fixed in bc6c380c1159de52a252ed11f19a42c47f60a735; From 2f502839e85ab265f03f25f30d6463154aee5473 · fixed in 8bacd09f12c27710228562e4d13163e58c5f4a45; From 2f502839e85ab265f03f25f30d6463154aee5473 · fixed in d844702198395d3f80222777030f69db6be6b709; From 2f502839e85ab265f03f25f30d6463154aee5473 · fixed in cd0e707a927a70cdfd8bc5a512a9719a87f5ed51; From 2f502839e85ab265f03f25f30d6463154aee5473 · fixed in 82544d36b1729153c8aeb179e84750f0c085d3b1
- Linux Linux
4.19
- KernelLinux
From 4.19.0 · fixed in 6.6.144; From 6.7.0 · fixed in 6.12.95; From 6.13.0 · fixed in 6.18.38; From 6.19.0 · fixed in 7.0.4