KernelScan.io

HIGH Introduced in 4.17

tracing EventFilter OOB

CVE-2026-99236

CVSS 7.8 / 10.0 NVD

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

KernelScan AI7.8HIGH

01

In the Linux kernel, the following vulnerability has been resolved: tracing: Reject incomplete event filter expressions A non-empty expression normally finishes in predicate_parse()'s inner loop, which resolves the pending logical operators before jumping to finalization. If the input ends after an operator, possibly followed by unary '!' tokens, the outer loop instead falls through with unresolved operator state. For example, "common_pid == 1 || common_pid == 2 &&" leaves prog[0].target equal to -1. The second pass then reads prog[-1] before the forward-jump check can reject it. Depending on adjacent slab contents, it can also copy an out-of-bounds word into a branch target that passes the forward-only check. A self-targeted perf tracepoint counting event can reach this path through PERF_EVENT_IOC_SET_FILTER. Reject the outer-loop fallthrough when a predicate has already been parsed. This ensures that non-empty expressions only reach finalization after the inner loop has resolved their operators. Keep the existing no-filter error for input that has no predicates. Add a regression test for trailing logical operators and unary negations.

02

Engine v0.10.0

Risk summary

Local users with perf event access can trigger an out-of-bounds kernel memory read and potential corruption by installing a malformed event filter expression that ends with a logical operator. This allows kernel information disclosure and possible privilege escalation on systems where unprivileged perf is enabled.

Affectedkernel/trace/trace_events_filter.c (tracing)

Vulnerability analysis

The event filter parser in the tracing subsystem does not properly reject incomplete logical expressions such as "common_pid == 1 || common_pid == 2 &&". When an expression ends with an operator (&& or ||), the parser's outer loop falls through with unresolved operator state, leaving a branch target index of -1. During a second compilation pass, the code reads prog[-1], an out-of-bounds access that leaks adjacent slab memory and can copy that data into a branch target. The fix adds a check to reject any non-empty expression that reaches the outer loop without having its operators resolved by the inner loop. The vulnerability is reachable by any local user who can open a perf event and issue PERF_EVENT_IOC_SET_FILTER, which typically requires CAP_PERFMON or CAP_SYS_ADMIN — capabilities obtainable inside a user namespace when unprivileged perf is permitted.

03

BranchIntroducedFixed inPatch commit
5.104.175.10.2734a1a6d353599
5.154.175.15.2242a98f5d4913e
6.14.176.1.19115ff3cc7f2be
6.124.176.12.1155a999b5a1653
6.184.176.18.601008e9e0b828
6.64.176.6.161b205ff58e029
7.24.177.2.1464993d970dde
7.34.177.3.15bcdf3c18c34
mainline4.177.4-rc11fdc4164e488

04

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

CIP treeState
cip/6.12Affected — no CIP fix yet (latest 6.12.114-cip34)
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip136)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)