AZL-117025: CVE-2026-139299 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
bpf: Free what mapfree() unlinks for sleepable readers
bpflocalstoragemapfree() 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 rcureadlocktrace() 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 bpflocalstoragemapfree() 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.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems running the affected Azure Linux kernel package version 6.6.161.1-1 are implicated. Exposure requires use of BPF local storage together with sleepable BPF programs that use the relevant get or delete helpers while local-storage map teardown occurs.
What race condition does the fix address?
The affected cleanup path can free local-storage elements or owner storage after only a plain RCU grace period while a sleepable BPF program may still be walking or preparing to lock that storage under rcu_read_lock_trace(). The fix uses an RCU Tasks Trace grace period and waits for associated callbacks before freeing the map.
Does the fix protect sleepable BPF programs that pass an unreferenced owner to the helpers?
No. The description explicitly states that this change does not protect a sleepable program that passes an owner to the helpers when nobody holds that owner and it may already be gone.