KernelScan.io

HIGH Introduced in 6.6

tracing OperatorStack Overflow

CVE-2026-99142

CVSS 7.1 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

KernelScan AI7.1HIGH

01

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.

02

Engine v0.10.0

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.

Affectedkernel/trace/trace_events_filter.c (tracing/filters)

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.

03

BranchIntroducedFixed inPatch commit
6.126.66.12.115d6f0006f194d
6.186.66.18.59a866a8a75392
6.66.66.6.161c43c41ec62ca
7.26.67.2.1375e894f92417
mainline6.67.3c47a7b11bcb3
cip/6.126.66.12.117-cip35d6f0006f194d

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.117-cip35