CVE-2026-74337

Source
https://cve.org/CVERecord?id=CVE-2026-74337
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74337.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-74337
Downstream
Published
2026-08-15T05:58:28.518Z
Modified
2026-08-16T03:48:27.739713096Z
Summary
bpf: Fix NMI/tracepoint re-entry deadlock on lru locks
Details

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix NMI/tracepoint re-entry deadlock on lru locks

NMI and tracepoint BPF programs can re-enter the per-CPU or global LRU lock that bpflrupopfree()/pushfree() already hold on the same CPU, AA-deadlocking. Lockdep reports "inconsistent {INITIAL USE} -> {IN-NMI}" on &l->lock (syzbot c69a0a2c816716f1e0d5) and "possible recursive locking detected" on &loc_l->lock (syzbot 18b26edb69b2e19f3b33).

Prior trylock and rqspinlock based fixes (see links) were nacked because compromised on reliability.

This patch converts every LRU lock site to rqspinlock_t and adds a recovery path for some failure windows to avoid node leaks.

Failure recovery:

  • *popfree top-level: return NULL; prealloclrupop() already treats that as no-free-element (-ENOMEM).

  • Cross-CPU steal: skip the victim's locked loc_l, try next CPU.

  • Post-steal local lock fail: publish stolen node to lockless per-CPU free_llist; next pop on this CPU picks it up.

  • pushfree fail: mark node pendingfree=1. __locallistflush(), __locallistpoppending() reclaim the node from pendinglist. __bpflrulistshrinkinactive() reclaims the node from inactive list. Nodes from active list are reclaimed by __bpflrulist_shrink() or after __bpflrulistrotateactive() demotes it to the inactive.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74337.json",
    "cna_assigner": "Linux"
}
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
3a08c2fd763450a927d1130de078d6f9e74944fb
Fixed
8b0510cc3a4a000d4ed1a56cd96231f3d3ba94c5
Fixed
440a2fdbb40608d55a7b11f2be53592a3785131d
Fixed
89edbdfc5d0308cef57b71359331de5c4ddbf763

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.10.0
Fixed
6.18.40
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.5

Database specific

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