CVE-2026-143350: bpf: lwt: Free the skb when bpf_xmit() fails to expand the headroom
bpf: lwt: Free the skb when bpfxmit() fails to expand the headroom
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.276 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.227 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.7-1 - Compensating control
In bpf_xmit(), free the skb when expanding the headroom fails.
Event History
Frequently Asked Questions
Which systems can trigger the leak?
Systems using an LWT transmit BPF program are affected when the program returns BPF_OK and the packet needs additional headroom for its link-layer header. The leak occurs if the subsequent headroom expansion fails.
What is leaked when the failure occurs?
The skb is not freed, along with its destination reference and its charge to the sending socket. Because the socket retains that charge, it may never be freed.
Does every bpf_xmit() error path leak packets?
No. The described leak is specific to failure of the headroom expansion after an LWT transmit program returns BPF_OK. The BPF_DROP, illegal return-code, changed-protocol, and failed-reroute error paths already free the skb.