CVE-2026-139299

Source
https://cve.org/CVERecord?id=CVE-2026-139299
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139299.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139299
Downstream
Published
2026-11-30T13:33:28Z
Modified
2026-11-30T15:00:16Z
Summary
bpf: Free what map_free() unlinks for sleepable readers
Details

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

bpf: Free what map_free() unlinks for sleepable readers

bpf_local_storage_map_free() takes the elements of the map off the lists of their owners, which are alive, and frees them, and the storage of an owner with its last element, behind a plain RCU grace period. Nobody uses the map any more, but the other maps of these owners are in use. A sleepable program calls the get and delete helpers under rcu_read_lock_trace() only. While it walks the list of an owner for its own map, or is about to lock the storage, the element it stands on, or the storage, can be freed under it.

Whatever else takes an element off the list of a live owner frees it behind an RCU Tasks Trace grace period, which implies a plain one. Do so in bpf_local_storage_map_free() as well. It waits for these callbacks before it frees the map.

This does not help a sleepable program that hands an owner to the helpers which nobody holds, and which may be gone by then.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139299.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
dcf456c9a095a6e71f53d6f6f004133ee851ee70
Fixed
e4bee26f640d6d150f2f9dc2da6f952b897e57de
Fixed
9cf351ee561e63f1e5181a724dfd696c522d900e
Fixed
5bdd61e98da5468140aff5b5abc0e8544deaf2ee
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
cf4b46ea392d75cc06800be7397d58d54453c6f3
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d2d2a1b6670bfac94a8b6a1fa9ce8b786cbe972e

Affected versions

v5.*
v5.17.13
v5.17.14
v5.17.15
v5.18.10
v5.18.11
v5.18.12
v5.18.13
v5.18.14
v5.18.15
v5.18.16
v5.18.17
v5.18.18
v5.18.19
v5.18.2
v5.18.3
v5.18.4
v5.18.5
v5.18.6
v5.18.7
v5.18.8
v5.18.9

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.17.13
Fixed
5.18
Type
ECOSYSTEM
Events
Introduced
5.18.2
Fixed
5.19
Type
ECOSYSTEM
Events
Introduced
5.19.0
Fixed
6.18.66
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

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