Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98215 Overview
CVE-2026-98215 is a Linux kernel vulnerability in the SELinux subsystem. The flaw affects how SELinux handles user Security Identifiers (SIDs) across nested backing files, such as overlayfs mounted over overlayfs or FUSE passthrough backed by overlayfs. When mmap() replaces vma->vm_file with a backing file, SELinux saves the user file SID in a backing-file security blob. However, for nested backing files, the saved fsec->sid reflects the mounter that opened the file rather than the user that opened the top-level file.
Critical Impact
Incorrect SID resolution in nested backing files causes mprotect() operations to check access against the wrong security context, which can incorrectly deny legitimate access or evaluate the wrong target SID after a domain transition.
Affected Products
- Linux kernel builds with SELinux enabled that implement backing-file security blobs
- Systems using nested overlayfs mounts (overlayfs over overlayfs)
- Systems using FUSE passthrough backed by overlayfs
Discovery Timeline
- 2026-10-06 - CVE CVE-2026-98215 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98215
Vulnerability Analysis
SELinux preserves the user file SID in a backing-file security blob so the SID remains available after mmap() substitutes vma->vm_file with a backing file. This mechanism works correctly for a single backing layer. When backing files are nested, the first-layer user_file can itself be a backing file whose fsec->sid represents the mounter rather than the user that opened the top-level file.
Subsequent permission checks, such as mprotect() evaluating fd { use }, then apply to the mounter's SID. The result is an incorrect access decision. In the reported case, with two nested overlayfs mounts and SELinux enforcing, mprotect(PROT_READ) returns EACCES with an fd { use } denial against the mounter SID. After the fix, the operation succeeds.
Root Cause
The root cause is incomplete propagation of the user SID through nested backing-file layers. The security blob logic copied the mounter's SID when user_file was itself a backing file, instead of preserving the SID of the user that opened the top-level file. This is a kernel vulnerability [CWE: Incorrect Authorization] in the SELinux hook handling backing-file inheritance.
Attack Vector
This issue manifests as a logic defect that affects correctness of SELinux permission decisions rather than a remotely exploitable code path. On systems with SELinux in enforcing mode and nested backing-file stacks, legitimate processes experience unexpected EACCES denials, or in the inverse case, permission checks evaluate the wrong target SID after a domain transition. The fix copies the saved user SID when user_file is a backing file and continues using the regular file SID for the first backing layer.
The vulnerability mechanism is described in the upstream patch commits. See the Kernel Git Commit 9d99b77 for the authoritative fix.
Detection Methods for CVE-2026-98215
Indicators of Compromise
- SELinux AVC denials of the form avc: denied { use } for ... tclass=fd where the target SID matches the overlayfs mounter rather than the invoking user.
- Unexpected EACCES returns from mprotect() on memory regions backed by files opened through nested overlayfs or FUSE passthrough mounts.
- Application failures correlated with workloads running on container runtimes that stack overlayfs over overlayfs.
Detection Strategies
- Audit /var/log/audit/audit.log for type=AVC records tied to fd { use } denials on processes using mapped files from nested mounts.
- Enumerate running kernels across the fleet and compare against the fixed stable branches referenced in the upstream commits.
- Correlate container runtime logs with SELinux denials to identify nested overlayfs scenarios.
Monitoring Recommendations
- Ingest kernel audit logs into a central SIEM and alert on recurring fd { use } denials against known-good workloads.
- Track kernel package versions as part of configuration management to confirm patch adoption.
- Monitor process crash and restart rates on hosts running overlayfs-heavy workloads such as container platforms.
How to Mitigate CVE-2026-98215
Immediate Actions Required
- Apply the latest stable kernel update from your distribution that includes the SELinux backing-file SID preservation fix.
- Inventory systems that run nested overlayfs or FUSE passthrough configurations and prioritize them for patching.
- Review SELinux audit logs for recent fd { use } denials to identify systems already affected.
Patch Information
The fix is available in the upstream Linux kernel stable tree. Relevant commits include Kernel Git Commit 6aaeec5, Kernel Git Commit 8c0c602, Kernel Git Commit 9d99b77, Kernel Git Commit caa1b91, and Kernel Git Commit ff20d16. Rebuild or update kernel packages from your distribution vendor once the fix is backported.
Workarounds
- Avoid nesting overlayfs over overlayfs where feasible by consolidating layers in container storage drivers.
- Temporarily switch affected workloads to SELinux permissive mode only in controlled, non-production environments to confirm the defect scope; do not use this as a long-term mitigation.
- Where FUSE passthrough is backed by overlayfs, consider alternative backing stores until the kernel patch is deployed.
# Verify running kernel version and SELinux mode
uname -r
getenforce
# Search for related SELinux denials in audit logs
ausearch -m AVC -ts recent | grep 'fd { use }'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

