VDB

CVE-2026-98214

CVE-2026-98214 PUBLISHED

selinux: recheck intermediate backing files on mprotect()

Reported by linux · Published October 6, 2026

In the Linux kernel, the following vulnerability has been resolved: selinux: recheck intermediate backing files on mprotect() mprotect() can be used to bypass the SELinux checks that mmap() performs against the intermediate layers of a stacked filesystem. mmap() checks every backing layer as the request descends through the stack. mprotect() only has the lowest backing file in vma->vm_file, so it rechecks the top-level user and the lowest mounter, but skips the mounters of every layer in between. With two nested overlayfs mounts and a policy denying mounter_t -> middle_file_t:file { execute }, a direct mmap(PROT_EXEC) is denied: avc: denied { execute } for pid=71 comm="nested_exec" path="/payload" dev="overlay" ino=9 scontext=user_u:base_r:mounter_t tcontext=user_u:object_r:middle_file_t tclass=file permissive=0 while mmap(PROT_NONE) followed by mprotect(PROT_EXEC) succeeds. Preserve each intermediate path, mounter SID and file-description SID in the backing-file security blob, copying the saved entries when another backing layer is opened. Allocate the array only for nested backing files, and release it and the path references in the backing_file_free hook. During mprotect(), recheck fd { use } and the requested inode permissions for every saved mounter, and include the intermediate layers in the execmod checks. Policy for nested stacking may then need to grant intermediate mounters what a direct mmap() already requires, and execmod on intermediate labels for binaries using text relocations. Tested on arm64 QEMU with a small BusyBox initramfs and a purpose-built SELinux policy, on a mainline tree containing commit f2381b546e7e ("fs: fix user path of nested backing files"). [PM: subject tweak]

EPSS 0.22% · 12.0th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python3-perf6.18Amazon Linux1:6.18.54-121.166.amzn2023
kernel6.18-modules-extraAmazon Linux1:6.18.54-121.166.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.113-138.209.amzn2023
kernel6.18-modules-extra-commonAmazon Linux1:6.18.54-121.166.amzn2023
microvm-kernel6.18Amazon Linux1:6.18.54-121.166.amzn2023
bpftool6.12Amazon Linux1:6.12.113-138.209.amzn2023
kernel6.18Amazon Linux1:6.18.54-121.166.amzn2023
kernel6.12-headersAmazon Linux1:6.12.113-138.209.amzn2023
kernel6.12Amazon Linux1:6.12.113-138.209.amzn2023
perf6.12Amazon Linux1:6.12.113-138.209.amzn2023
kernel-livepatch-6.18.54-121.166Amazon Linux1:1.0-0.amzn2023
LinuxLinux78fc54b934bfb2c18aad8154c7302067146946f9, 7.1, 6.18.54, 6.12.112, 6.6.158

Risk scores

EPSS Score
0.22%
12.0th percentile

Affected products

VendorProductVersions
LinuxLinuxbc6c380c1159de52a252ed11f19a42c47f60a735, 8bacd09f12c27710228562e4d13163e58c5f4a45, d844702198395d3f80222777030f69db6be6b709
LinuxLinux7.1, 0, 6.6.158
amazon:2023python3-perf6.180
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.12-tools0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023microvm-kernel6.180
amazon:2023bpftool6.120
amazon:2023kernel6.180
amazon:2023kernel6.12-headers0
amazon:2023kernel6.120
amazon:2023perf6.120
amazon:2023kernel-livepatch-6.18.54-121.1660
LinuxLinux*, 7.3, 7.2.8
amazon:2023kernel-livepatch-6.12.113-138.2090
amazon:2023perf6.180
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.18-devel0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.12-devel0

…and 7 more

Timeline

  • Oct 6, 2026 EPSS Score (10 in total, the first dated here)
  • Oct 6, 2026 Coalition ESS Score
  • Oct 6, 2026 CVE Published
  • Oct 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-98214
vulnetix vdb fixes CVE-2026-98214

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-98214/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›