CVE-2026-143350

Not scored yetLast modified Dec 3, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: lwt: Free the skb when bpf_xmit() fails to expand the headroom

When an LWT xmit program returns BPF_OK, bpf_xmit() makes sure that the skb still has room for the link layer header. If pskb_expand_head() fails there, bpf_xmit() returns -ENOMEM without freeing the skb. Its callers, lwtunnel_xmit() and then ip_finish_output2() or ip6_finish_output2(), take any return value other than LWTUNNEL_XMIT_CONTINUE to mean that the skb has been consumed, so nothing frees it.

Each such failure leaks the skb, together with what it holds: its dst and its charge to the sending socket, so the socket is never freed either. The other error paths of bpf_xmit() (BPF_DROP, an illegal return code, a changed protocol, a failed reroute) all free the skb.

Free it here too.

The leak was found with kbound, a static analysis prototype for ownership mismatches at kernel interfaces, on v7.2.12; it is present in mainline.

Build-tested with x86_64 and arm64 allmodconfig (W=1, sparse): no new warnings. Run-tested on QEMU (x86_64, KVM) with KASAN: a route through a dummy device with an LWT xmit program that pushes one byte with bpf_skb_change_head(), so the headroom check has to expand the head, and failslab limited to allocations under bpf_xmit(). Each of 10 pings then fails with ENOMEM. Without this patch each leaves a raw socket behind (RAW slab objects 6 -> 16); with it none does (6 -> 6), and nothing else is reported. Without injection both kernels go from 6 to 6.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143351In the Linux kernel, the following vulnerability has been resolved: bpf: Check the offset in bpf_skb_generic_{push,pop}() To make room forCVE-2026-143352In the Linux kernel, the following vulnerability has been resolved: bpf: Move the transport header with the moved headers bpf_skb_net_hdr_CVE-2026-143353In the Linux kernel, the following vulnerability has been resolved: bpf: Don't let lwt_in progs call into IPv6 when it is disabled With ipCVE-2026-143354In the Linux kernel, the following vulnerability has been resolved: bpf: Require BPF_LWT_REROUTE when an lwt_in prog changes the protocol CVE-2026-143355In the Linux kernel, the following vulnerability has been resolved: bpf: Reset skb->cb after an lwt prog pushes an IP header IPCB(skb)->opCVE-2026-143356In the Linux kernel, the following vulnerability has been resolved: bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh() bpf_skb_net_hdr_CVE-2026-143357In the Linux kernel, the following vulnerability has been resolved: bpf: Don't look for the SRH again in the End.BPF helpers A packet can CVE-2026-143358In the Linux kernel, the following vulnerability has been resolved: bpf: Set a dst for test runs of lwt_in progs When an lwt prog runs on CVE-2026-143359In the Linux kernel, the following vulnerability has been resolved: bpf: Reject non-IPv6 packets in BPF_LWT_ENCAP_SEG6 The mode BPF_LWT_ENCVE-2026-143368.2PIA's OIDC issuer allowlist for Jenkins tokens uses a bare string-prefix check (issuer.startswith(' https://ci.eclipse.org ') in is_issuer_kCVE-2026-143360In the Linux kernel, the following vulnerability has been resolved: bpf: Don't let bpf_skb_adjust_room() raise gso_size to GSO_BY_FRAGS WhCVE-2026-143361In the Linux kernel, the following vulnerability has been resolved: bpf, cgroup: Keep the skb network offset signed cgroup_skb progs see a
CVE-2026-143350: Unscored | Vulnix