bpf: Free what map_free() unlinks for sleepable readers
- CVE-2026-139299
- GHSA-qmcv-r3q5-jhrv
- EUVD-2026-139004
Description
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.
Text from the CVE.org record.
Recommendation
Linux
- If you run a version from 5.17.13 to before 5.18update to 5.18 or laterMinor version change: check the release notes
Some affected versions have no stated fix.
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in from 5.17.13 to before 5.18 5.18 from 5.18.2 to before 5.19 none stated 5.19 none stated before 5.19: not affected none stated from 6.18.66 up to 6.18.*: not affected none stated from 7.3.6 up to 7.3.*: not affected none stated from 7.4-rc1 onwards: not affected none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.