CVE-2026-143364

Source
https://cve.org/CVERecord?id=CVE-2026-143364
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143364.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143364
Downstream
Published
2026-12-03T09:22:16Z
Modified
2026-12-03T11:02:09Z
Summary
bpf: Clamp the trace length before the skip test in stackid_init()
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143364.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d1f424a77b6bd27b361737ed73df49a0158f1590
Fixed
7203b3225a0533d1cfd89dd4695ff80947ad16a7
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4669a8db976c8cbd5427fe9945f12c5fa5168ff3
Fixed
a18b920a21163cfcef67d3913c87ce53894dc19c
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
23f852daa4bab4d579110e034e4d513f7d490846
Fixed
f624585522f6fe93823a3feea28ce3b4ace9e77a
Fixed
a08ba2ab79dffd92c32d3f2dadfc7eba03625a2b
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
03fe4c886667b3a09b9d6afc03bbc68afb35c82b
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d6028caa0ee39dccd005468adfa3223b92bd3ad3
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2a008f6de163279deffd488c1deab081bce5667c

Affected versions

v6.*
v6.1.191
v6.1.192
v6.1.193
v6.12.100
v6.12.101
v6.12.102
v6.12.103
v6.12.104
v6.12.105
v6.12.106
v6.12.107
v6.12.108
v6.12.109
v6.12.110
v6.12.111
v6.12.112
v6.12.113
v6.12.114
v6.12.115
v6.12.116
v6.12.117
v6.12.118
v6.12.119
v6.12.63
v6.12.64
v6.12.65
v6.12.66
v6.12.67
v6.12.68
v6.12.69
v6.12.70
v6.12.71
v6.12.72
v6.12.73
v6.12.74
v6.12.75
v6.12.76
v6.12.77
v6.12.78
v6.12.79
v6.12.80
v6.12.81
v6.12.82
v6.12.83
v6.12.84
v6.12.85
v6.12.86
v6.12.87
v6.12.88
v6.12.89
v6.12.90
v6.12.91
v6.12.92
v6.12.93
v6.12.94
v6.12.95
v6.12.96
v6.12.97
v6.12.98
v6.12.99
v6.17.13
v6.18.10
v6.18.11
v6.18.12
v6.18.13
v6.18.14
v6.18.15
v6.18.16
v6.18.17
v6.18.18
v6.18.19
v6.18.2
v6.18.20
v6.18.21
v6.18.22
v6.18.23
v6.18.24
v6.18.25
v6.18.26
v6.18.27
v6.18.28
v6.18.29
v6.18.3
v6.18.30
v6.18.31
v6.18.32
v6.18.33
v6.18.34
v6.18.35
v6.18.36
v6.18.37
v6.18.38
v6.18.39
v6.18.4
v6.18.40
v6.18.41
v6.18.42
v6.18.43
v6.18.44
v6.18.45
v6.18.46
v6.18.47
v6.18.48
v6.18.49
v6.18.5
v6.18.50
v6.18.51
v6.18.52
v6.18.53
v6.18.54
v6.18.55
v6.18.56
v6.18.57
v6.18.58
v6.18.59
v6.18.6
v6.18.60
v6.18.61
v6.18.62
v6.18.63
v6.18.64
v6.18.65
v6.18.7
v6.18.8
v6.18.9
v6.6.160
v6.6.161
v6.6.162
v6.6.163

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143364.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.1.191
Fixed
6.2
Type
ECOSYSTEM
Events
Introduced
6.6.160
Fixed
6.7
Type
ECOSYSTEM
Events
Introduced
6.12.63
Fixed
6.12.120
Type
ECOSYSTEM
Events
Introduced
6.17.13
Fixed
6.18
Type
ECOSYSTEM
Events
Introduced
6.18.2
Fixed
6.18.66
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143364.json"