cvelo
P2 · HighCVSS 7.8EPSS 0.2%

tracing: Reject incomplete event filter expressions

  • CVE-2026-99236
  • GHSA-45x7-jj5h-2j9x
  • EUVD-2026-115278

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.

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • Linux

    Affected versionsFixed in
    4.17none stated
    before 4.17: not affectednone stated
    from 5.10.273 up to 5.10.*: not affectednone stated
    from 5.15.224 up to 5.15.*: not affectednone stated
    from 6.1.191 up to 6.1.*: not affectednone stated
    from 6.6.161 up to 6.6.*: not affectednone stated
    from 6.12.115 up to 6.12.*: not affectednone stated
    from 6.18.60 up to 6.18.*: not affectednone stated

    and 3 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.