HIGH Introduced in 6.6
tracing OperatorStack Overflow
CVE-2026-99142
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
KernelScan AI7.1HIGH
01Description
In the Linux kernel, the following vulnerability has been resolved: tracing: Check operator stack capacity before pushing predicate_parse() uses the first operator stack entry before processing any opening parentheses. A push then increments top before writing. The existing check still permits that write when top already points to the last allocated entry, which can access beyond the operator stack. Reject the push when top reaches the last allocated entry.
02KernelScan AI Analysis
Risk summary
An unprivileged local user can trigger an out-of-bounds write in the kernel's tracing filter parser by installing a crafted filter on a perf tracepoint event. This corrupts adjacent heap memory, allowing privilege escalation or kernel crash. The vulnerability is reachable on any system with perf events enabled and does not require user namespaces or special hardware.
Vulnerability analysis
The predicate_parse() function in the tracing filter subsystem uses a fixed-size operator stack allocated based on the number of parentheses in the filter string. When processing opening parentheses, the code pre-increments a stack pointer and writes an operator value, but the boundary check incorrectly allowed the pointer to reach the last allocated entry before rejecting further pushes. This let a malformed filter with more parentheses than expected write one or more 32-bit values (0 or 1) past the end of the allocation, corrupting adjacent slab objects. The fix tightens the check to reject the push when the pointer would reach the final slot, preventing the overrun. An unprivileged process can exploit this by opening a self-targeted tracepoint perf event (e.g., ipi_send_cpumask) and installing a filter with a crafted CPUS{} expression that causes the parser to underestimate the required stack depth, making the vulnerability locally exploitable without special privileges.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 6.6 | 6.12.115 | d6f0006f194d |
| 6.18 | 6.6 | 6.18.59 | a866a8a75392 |
| 6.6 | 6.6 | 6.6.161 | c43c41ec62ca |
| 7.2 | 6.6 | 7.2.13 | 75e894f92417 |
| mainline | 6.6 | 7.3 | c47a7b11bcb3 |
| cip/6.12 | 6.6 | 6.12.117-cip35 | d6f0006f194d |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.117-cip35 |