PT-2026-167213
CVE-2026-143355
·
Published
2026-12-03
·
Updated
2026-12-03
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
In the Linux kernel, the following vulnerability has been resolved:
bpf: Reset skb->cb after an lwt prog pushes an IP header
IPCB(skb)->opt holds the offsets from the network header to the IPv4
options. But bpf lwt push ip encap() moves the network header and does not
change IPCB(skb). Then ip forward options() and ip options echo() use the
old offsets on the pushed header. Thus the kernel corrupts the skb and the
stack. If the family changes, the kernel also reads IP6CB(skb) as
IPCB(skb), or the reverse. With CONFIG IPV6 MIP6, it reads IPSKB FORWARDED
as frag max size and adds a needless fragment header.
Reset skb->cb after the prog. bpf lwt push ip encap() cannot do it, because
bpf prog run save cb() can restore skb->cb. For IPv4 in IPv4, clear
IPCB(skb)->opt as ip tunnel xmit() does. If the family changes, clear the
cb of the new family but keep iif, because ip6 forward() gets the input
device from it. Behind a VRF, skb->skb iif is the VRF device and cannot
replace iif. Do nothing for IPv6 in IPv6, as in seg6 do srh encap().
Do the reset in bpf input() only after a push. Without a push,
ip forward options() needs the offsets. Do it in bpf xmit() before each
reroute, because an lwt xmit prog can also change the options. Thus after a
reroute without a push, ip options fragment() leaves the options in all
fragments, and ICMP errors echo none. After BPF OK or BPF REDIRECT the skb
goes to a device, thus bpf xmit() does no reset. The inner IPv4 checksum
can still be wrong after ip rcv options() changes an option.
Found an issue in the description? Have something to add? Feel free to write us 👾