StraitOfVuln
Latest / CVE-2026-143364

CVE-2026-143364

Not yet scoredReceived
CVE.org ↗NVD ↗

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Clamp the trace length before the skip test in stackid_init() stackid_init() gives a bucket of the stack map min(trace_nr - skip, max_depth - skip) trace entries. Here max_depth is the size of a bucket plus skip, but at most perf_event_max_stack. Context markers can make trace_nr larger than that, so the skip test can pass when max_depth < skip. Then 'max_depth - skip' wraps, and the kernel can write after the bucket. Clamp trace_nr to max_depth before the skip test, as __bpf_get_stack_pe() does. The result changes only when skip >= max_depth. Then it is -EFAULT. Until now skip == max_depth could give the id of an empty trace. get_perf_callchain() releases the trace, so an NMI can change trace->nr. Use READ_ONCE() in bpf_get_stackid(), so the compiler reads it one time.

Details

CVE ID
CVE-2026-143364
Published / updated
03 Dec 2026, 10:18 UTC · last modified 03 Dec 2026, 10:18 UTC
Severity
Not yet scored by NVD
CVSS score
—
Affected vendor
Linux
Affected products
Linux
Affected versions
Linux: d1f424a77b6bd27b361737ed73df49a0158f1590 to before 7203b3225a0533d1cfd89dd4695ff80947ad16a7, 4669a8db976c8cbd5427fe9945f12c5fa5168ff3 to before a18b920a21163cfcef67d3913c87ce53894dc19c, 23f852daa4bab4d579110e034e4d513f7d490846 to before f624585522f6fe93823a3feea28ce3b4ace9e77a, 23f852daa4bab4d579110e034e4d513f7d490846 to before a08ba2ab79dffd92c32d3f2dadfc7eba03625a2b, 03fe4c886667b3a09b9d6afc03bbc68afb35c82b, d6028caa0ee39dccd005468adfa3223b92bd3ad3, 2a008f6de163279deffd488c1deab081bce5667c, 6.12.63 to before 6.12.120, 6.18.2 to before 6.18.66, 6.1.191 to before 6.2, 6.6.160 to before 6.7, 6.17.13 to before 6.18
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
Linux 7203b3225a0533d1cfd89dd4695ff80947ad16a7, Linux a18b920a21163cfcef67d3913c87ce53894dc19c, Linux f624585522f6fe93823a3feea28ce3b4ace9e77a, Linux a08ba2ab79dffd92c32d3f2dadfc7eba03625a2b, Linux 6.12.120, Linux 6.18.66, Linux 6.2, Linux 6.7, Linux 6.18
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.37% probability of exploitation in the next 30 days · 33% percentile (03 Dec 2026)
Weakness
—
Remediation
See the vendor advisory below.
Source (CNA)
416baaa9-dc9f-4396-8d5f-8c081fb06d67