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-97617 Overview
CVE-2026-97617 is a race condition in the Linux kernel ring buffer subsystem. The flaw resides in ring_buffer_subbuf_order_set(), which stores a new sub-buffer order before checking whether any CPU has resizing disabled. A user-mapped buffer disables resizing, and __rb_map_vma() reads buffer->subbuf_order without holding buffer->mutex. An mmap() call on an already mapped CPU racing a failing order change can size the mapping with the new order, inserting pages past the sub-buffer into the Virtual Memory Area (VMA).
Critical Impact
A local user with access to the trace ring buffer can trigger an out-of-bounds page mapping, exposing kernel memory beyond the intended sub-buffer boundaries.
Affected Products
- Linux kernel versions implementing ring_buffer_subbuf_order_set() prior to the referenced stable patches
- Linux stable branches receiving the backports 32bf47d, 9fd4ea9, d860c67, and f209964
- Systems exposing the tracing ring buffer interface to unprivileged or lower-privileged users via mmap()
Discovery Timeline
- 2026-09-25 - CVE-2026-97617 published to the National Vulnerability Database (NVD)
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97617
Vulnerability Analysis
The vulnerability is a Time-of-Check Time-of-Use (TOCTOU) race in the kernel tracing ring buffer. The function ring_buffer_subbuf_order_set() publishes a new sub-buffer order value into buffer->subbuf_order before iterating over per-CPU buffers to verify that resizing is permitted. If any CPU has resize_disabled set, the function returns -EBUSY, but by that point the new order is already visible to concurrent readers.
The memory mapping path __rb_map_vma() reads buffer->subbuf_order without acquiring buffer->mutex. A concurrent mmap() call against a CPU buffer that already has a user mapping observes the new, larger order and sizes the VMA accordingly. The mapping then extends past the actual sub-buffer, inserting adjacent pages into the user address space. This exposes kernel memory contents or allows unintended access to pages the user should not reach.
Root Cause
The root cause is the ordering of operations in ring_buffer_subbuf_order_set(). The function writes the new order before validating per-CPU state, and the readers in __rb_map_vma() perform lock-free access to buffer->subbuf_order. There is no synchronization barrier preventing a reader from observing a transient, uncommitted order value during a failing update.
Attack Vector
Exploitation requires local access to the tracing subsystem and the ability to call mmap() on a ring buffer file descriptor. An attacker opens the trace buffer for a CPU, maps it, and races a sibling thread that invokes the order-change ioctl. Winning the race causes the kernel to install extra pages into the VMA, which the attacker can then read.
No verified public exploit code is available. The fix is described in the referenced kernel commits, including Kernel Git Change 32bf47d and Kernel Git Change f209964.
Detection Methods for CVE-2026-97617
Indicators of Compromise
- Unexpected mmap() calls targeting /sys/kernel/tracing/per_cpu/cpuX/trace_pipe_raw or equivalent ring buffer file descriptors from non-administrative processes
- Concurrent writes to buffer_subbuf_size_kb paired with sustained mmap() activity from the same user session
- Kernel log entries referencing -EBUSY returns from ring buffer order changes correlated with user-space tracing activity
Detection Strategies
- Audit access to /sys/kernel/tracing and /sys/kernel/debug/tracing using Linux Audit (auditd) rules on the relevant inodes
- Monitor process execution for binaries that open tracefs files and immediately invoke mmap() with large length arguments
- Hunt for anomalous usage of the tracing subsystem by non-root or non-service accounts across the fleet
Monitoring Recommendations
- Collect kernel telemetry on perf_event_open, ioctl, and mmap syscalls targeting tracefs file descriptors
- Alert on repeated -EBUSY conditions returned from ring buffer resize operations under concurrent load
- Track kernel version inventory and flag hosts running pre-patch kernels that expose tracefs to interactive users
How to Mitigate CVE-2026-97617
Immediate Actions Required
- Apply the upstream stable kernel patches that reorder the CPU resize check before publishing the new sub-buffer order
- Restrict access to /sys/kernel/tracing and /sys/kernel/debug/tracing to administrative users only using filesystem permissions
- Review which service accounts and containers have CAP_SYS_ADMIN or tracefs mount access and remove where not required
Patch Information
The fix moves the per-CPU resize_disabled check ahead of the write to buffer->subbuf_order. Backports are available in the kernel stable tree via the following commits: Kernel Git Change 32bf47d, Kernel Git Change 9fd4ea9, Kernel Git Change d860c67, and Kernel Git Change f209964. Upgrade to a distribution kernel that includes these commits.
Workarounds
- Unmount tracefs and debugfs on systems that do not require live kernel tracing
- Set tracefs mount options or filesystem ACLs to deny read and write access for unprivileged users
- Disable the ring buffer sub-buffer order configuration interface in environments where it is not operationally required
# Restrict tracefs access to root only
mount -o remount,mode=0700 /sys/kernel/tracing
chmod 700 /sys/kernel/debug/tracing
# Verify running kernel version against patched builds
uname -r
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

