Security mailing lists by PureSourceCode

CVE-2026-143351

not scored yet

bpf: Check the offset in bpf_skb_generic_{push,pop}()

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

bpf: Check the offset in bpf_skb_generic_{push,pop}()

To make room for len bytes at offset off, bpf_skb_generic_push() moves the
first off bytes and clears len bytes after them. It assumes that the first
off bytes are in the linear part. But in bpf_skb_adjust_room() off can be
the end of the IP header, and this header can be in a frag. Then the
function reads and writes after skb->tail, and can damage skb_shared_info.

bpf_skb_generic_pop() checks off + len, but this u32 sum can wrap to a
small value. bpf_skb_adjust_room() and bpf_skb_change_proto() calculate off
from skb_mac_header_len(). This length is a very large u32 when
network_header < mac_header. Then the check can pass, and memmove() reads
and writes far outside the skb.

Return -ENOMEM from both functions, like the present check, when
off > skb->len. Thus the sum cannot wrap. In bpf_skb_generic_push() also
pull the first off bytes into the linear part. Now bpf_skb_adjust_room()
fails when a prog grows an skb that ends before off. network_header stays
wrong.

Published
3 Dec 2026
Last modified
3 Dec 2026
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Received
Sources
NVDJSONCVE ListJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Linux Linux >= 6578171a7ff0c31dc73258f93da7407510abf085, < 71b7211ea168c19fdc8871a886cf6b738a6c9764; >= 6578171a7ff0c31dc73258f93da7407510abf085, < b6e295b06d6ebe0d5459661b55627fdb9c238fd4; >= 6578171a7ff0c31dc73258f93da7407510abf085, < 280c120c9dac35f7a22589303cc90b8a00e6fde8; >= 6578171a7ff0c31dc73258f93da7407510abf085, < ee36c9aa44ef300cd651074bd97552b229337f85 71b7211ea168c19fdc8871a886cf6b738a6c9764, b6e295b06d6ebe0d5459661b55627fdb9c238fd4, 280c120c9dac35f7a22589303cc90b8a00e6fde8, ee36c9aa44ef300cd651074bd97552b229337f85
CVE List Linux Linux = 4.8

References

History

  • 3 Dec 2026 11:07 UTC · NVD: first stored (published 3 Dec 2026)
  • 3 Dec 2026 10:08 UTC · CVE List: first stored (published 3 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.