tracing: Reject incomplete event filter expressions

State
Published
Severity
7.8 High
Published
Nov 2, 2026
Updated
Nov 3, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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.

ProductVersions
Linux Linux80765597bc587feae8dbc8ce97a0f32e12a6e625 to before 4a1a6d35359991c5d47f4bf101cfbe1475c94093 Affected80765597bc587feae8dbc8ce97a0f32e12a6e625 to before 2a98f5d4913ec081e08e1075512cb7ec313d9f72 Affected80765597bc587feae8dbc8ce97a0f32e12a6e625 to before 15ff3cc7f2beecc3f95d66358f20ad7b057466aa Affected80765597bc587feae8dbc8ce97a0f32e12a6e625 to before b205ff58e02922ac324f931cf9eb238a3acdb048 Affected80765597bc587feae8dbc8ce97a0f32e12a6e625 to before 5a999b5a16530898f0dbe5f8c50fd45ea72e110b Affected80765597bc587feae8dbc8ce97a0f32e12a6e625 to before 1008e9e0b8280d47f1ab5e9c113f666a023a9697 Affected80765597bc587feae8dbc8ce97a0f32e12a6e625 to before 64993d970dde2a2da353e9e99595a4fa88ec27d9 Affected80765597bc587feae8dbc8ce97a0f32e12a6e625 to before 5bcdf3c18c3471122ee9652b0e2f5cdb718d9a46 Affected80765597bc587feae8dbc8ce97a0f32e12a6e625 to before 1fdc4164e488916402badddbb1f51e9380dabb91 Affected
Linux Linux4.17 Affectedbefore 4.17 Not Affected5.10.273 through 5.10.* Not Affected5.15.224 through 5.15.* Not Affected6.1.191 through 6.1.* Not Affected6.6.161 through 6.6.* Not Affected6.12.115 through 6.12.* Not Affected6.18.60 through 6.18.* Not Affected7.2.14 through 7.2.* Not Affected7.3.1 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.