Skip to main content
Vulnerability Database/CVE-2026-98214

CVE-2026-98214: Linux Kernel Privilege Escalation Vulnerability

CVE-2026-98214 is a privilege escalation flaw in Linux kernel SELinux that allows attackers to bypass security checks using mprotect on stacked filesystems. This post covers technical details, affected versions, and mitigation.

Published:

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-98214 Overview

CVE-2026-98214 is a Linux kernel vulnerability in the SELinux subsystem that allows local users to bypass mandatory access control (MAC) checks on nested stacked filesystems such as overlayfs. The flaw stems from mprotect() failing to re-evaluate SELinux permissions against intermediate backing layers that mmap() would normally check. An unprivileged process can call mmap(PROT_NONE) followed by mprotect(PROT_EXEC) to obtain executable mappings that the policy explicitly denies.

Critical Impact

Local users on systems using nested overlayfs mounts and SELinux policy can bypass execute restrictions on intermediate backing files, enabling unauthorized code execution in security-constrained environments.

Affected Products

  • Linux kernel (mainline) with SELinux and stacked filesystem support
  • Systems using nested overlayfs mounts enforcing SELinux MAC policy
  • Distributions shipping kernels prior to the patches referenced in the kernel.org stable commits

Discovery Timeline

  • 2026-10-06 - CVE-2026-98214 published to the National Vulnerability Database
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-98214

Vulnerability Analysis

The vulnerability lies in how SELinux evaluates memory protection changes against stacked filesystems. When a process calls mmap(), the kernel walks each backing layer of the filesystem stack and enforces SELinux checks at every level. This ensures the mounter of each intermediate layer holds the required permissions on the backing file label.

When a process calls mprotect(), the kernel only has access to the lowest backing file through vma->vm_file. SELinux rechecks the top-level user and the lowest mounter but skips the mounters of every intermediate layer. An attacker who maps a file with PROT_NONE and later upgrades the mapping with mprotect(PROT_EXEC) evades the intermediate execute checks that mmap(PROT_EXEC) would have triggered.

The upstream fix preserves each intermediate path, mounter Security Identifier (SID), and file-description SID in the backing-file security blob. During mprotect(), the kernel rechecks fd { use }, the requested inode permissions, and execmod for every saved mounter, closing the gap between the two syscall paths.

Root Cause

The root cause is incomplete state preservation in the SELinux backing-file security blob for nested stacked filesystems. SELinux retained only the lowest backing file reference, discarding the SIDs for intermediate mounters once mmap() returned. Any subsequent protection change had no data on which to re-run the layered authorization logic.

Attack Vector

Exploitation requires local code execution on a system with SELinux enforcing and nested overlayfs mounts, such as container runtimes stacking image layers. The attacker opens a file residing on the nested overlay, invokes mmap(PROT_NONE) to obtain a mapping that does not trigger execute checks on intermediate layers, then issues mprotect(PROT_EXEC) to flip the mapping executable. The kernel grants the change despite the policy denying mounter_t the execute permission on middle_file_t:file, allowing execution of code that policy intended to block.

See the kernel.org stable commits referenced below for the authoritative patch series.

Detection Methods for CVE-2026-98214

Indicators of Compromise

  • Audit records showing avc: denied { execute } for direct mmap(PROT_EXEC) calls on overlayfs paths, immediately followed by successful execution of the same binary via a mprotect(PROT_EXEC) path.
  • Processes transitioning memory regions from PROT_NONE or PROT_READ to PROT_EXEC on files hosted on nested overlay mounts.
  • Unexpected executable mappings in /proc/<pid>/maps referencing files under container overlay upper or merged directories.

Detection Strategies

  • Enable SELinux auditing in permissive-logging mode on test systems to compare mmap() and mprotect() AVC decisions on the same backing files.
  • Instrument mprotect syscalls with eBPF or auditd to flag transitions to PROT_EXEC on files served by overlayfs with multiple lower layers.
  • Correlate container runtime events with kernel audit logs to identify workloads performing late-stage PROT_EXEC upgrades on image-backed files.

Monitoring Recommendations

  • Forward auditd and SELinux AVC messages to a centralized log store and alert on mprotect denials or anomalies on container hosts.
  • Track kernel versions across the fleet to confirm patched builds are deployed on all nodes running stacked filesystems.
  • Monitor container escape and privilege-escalation telemetry on hosts enforcing MAC policy to catch exploitation attempts targeting policy-protected binaries.

How to Mitigate CVE-2026-98214

Immediate Actions Required

  • Update the Linux kernel to a version containing the SELinux backing-file security blob fix referenced by the kernel.org stable commits.
  • Audit SELinux policy on hosts with nested overlayfs mounts to confirm intermediate mounters are granted only the permissions required by legitimate workloads.
  • Review container runtime configurations that rely on multi-layer overlay stacks and validate that security policy still blocks execution of untrusted content after patching.

Patch Information

The fix is distributed across the following upstream kernel changes: Kernel Patch 4d50ebe5, Kernel Patch 78fc54b9, Kernel Patch 89376fbf, Kernel Patch c2bbb905, and Kernel Patch d127c7e1. Apply vendor-supplied kernel updates once they incorporate these commits.

Workarounds

  • Avoid nested overlayfs configurations on SELinux-enforcing systems until patched kernels are deployed.
  • Tighten SELinux policy to deny execmod and execute on intermediate labels for workloads that do not require text relocations.
  • Where possible, mount sensitive filesystems with noexec to block the PROT_EXEC transition on untrusted content.

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.