Linux
selinux: fix overlayfs mmap() and mprotect() access checks
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2f502839e85ab265f03f25f30d6463154aee5473, < bc6c380c1159de52a252ed11f19a42c47f60a735
- >= 2f502839e85ab265f03f25f30d6463154aee5473, < 8bacd09f12c27710228562e4d13163e58c5f4a45
- >= 2f502839e85ab265f03f25f30d6463154aee5473, < d844702198395d3f80222777030f69db6be6b709
- >= 2f502839e85ab265f03f25f30d6463154aee5473, < cd0e707a927a70cdfd8bc5a512a9719a87f5ed51
- >= 2f502839e85ab265f03f25f30d6463154aee5473, < 82544d36b1729153c8aeb179e84750f0c085d3b1
Fixed in bc6c380c1159de52a252ed11f19a42c47f60a735, 8bacd09f12c27710228562e4d13163e58c5f4a45, d844702198395d3f80222777030f69db6be6b709, cd0e707a927a70cdfd8bc5a512a9719a87f5ed51, 82544d36b1729153c8aeb179e84750f0c085d3b1
- 4.19
Fixed in 0, 6.6.144, 6.12.95, 6.18.38, 7.0.4, 7.1
Mitigation
Upgrade Linux to bc6c380c1159de52a252ed11f19a42c47f60a735 or 8bacd09f12c27710228562e4d13163e58c5f4a45 or d844702198395d3f80222777030f69db6be6b709 or cd0e707a927a70cdfd8bc5a512a9719a87f5ed51 or 82544d36b1729153c8aeb179e84750f0c085d3b1 or later.
Upgrade Linux to 0 or 6.6.144 or 6.12.95 or 6.18.38 or 7.0.4 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.