CVE-2026-139311: bpf: Link the first element after its storage is published
bpf: Link the first element after its storage is published
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1
Event History
Frequently Asked Questions
Who is realistically exposed to this race condition?
Systems using BPF socket local storage on AF_UNIX sockets are exposed when multiple CPUs can concurrently create the first storage for the same new socket while another context iterates an sk_storage map. The described reproducer requires three concurrent creators and a fourth CPU reading the iterator.
What can happen if the race is triggered?
An sk_storage map iterator can observe an element belonging to storage that lost the publication race and was freed. If the associated socket is closed at the right time, the iterator's program can be given a freed socket.
How does the fix prevent the issue?
The fix delays linking the first element into the map bucket until after its storage has been published in the owner. Both operations occur under the bucket lock, preventing iterators from finding an element for unpublished storage.