CVE-2026-139290: bpf: Follow the head if an skb is written from a slice
In the Linux kernel, the following vulnerability has been resolved:
bpf: Follow the head if an skb is written from a slice
The source of bpfdynptrwrite() may be a slice of the skb which is written to, that is a pointer into its head. bpfdynptrcopy() does it by itself for a copy inside of one skb, if the source is linear and the destination is not.
bpfskbstorebytes() and bpfskbmetastorebytes() make the skb writable first. If that reallocates the head, the source points to the old one, and freed memory is copied into the packet.
The offsets in the head do not change when it is reallocated here. Move the source along with the head.
Affected Software
Event History
Frequently Asked Questions
What conditions are required for this issue to occur?
The source of bpf_dynptr_write() must be a slice of the same skb being written, meaning the source points into the skb head. The skb must then be made writable in a way that reallocates its head before the source bytes are copied.
What is the impact when the condition is triggered?
The source pointer can continue to reference the old, freed skb head after reallocation. As a result, freed memory may be copied into the packet.
What should teams do if they cannot immediately update?
The provided data identifies this as resolved in the Linux kernel and supplies stable-kernel commit references. No supported configuration workaround or affected version range is provided.