CVE-2026-46054: selinux: fix overlayfs mmap() and mprotect() access checks
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-46054 to this issue.
Affected and fixed versions
===========================
Fixed in 7.0.4 with commit cd0e707a927a70cdfd8bc5a512a9719a87f5ed51 Fixed in 7.1-rc1 with commit 82544d36b1729153c8aeb179e84750f0c085d3b1
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-46054
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
security/selinux/hooks.c
security/selinux/include/objsec.h
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/cd0e707a927a70cdfd8bc5a512a9719a87f5ed51 https://git.kernel.org/stable/c/82544d36b1729153c8aeb179e84750f0c085d3b1