Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143361

bpf, cgroup: Keep the skb network offset signed

Description

In the Linux kernel, the following vulnerability has been resolved: bpf, cgroup: Keep the skb network offset signed cgroup_skb progs see a packet from its network header. While they run, __cgroup_bpf_run_filter_skb() moves skb->data there. It assumes that the network header is not after skb->data. It negates skb_network_offset(skb) and pushes skb->data by this offset. The offset is an unsigned int. But ip6mr_cache_report() and bpf_lwt_xmit_reroute() can pass an skb that has data before the network header. Then the offset wraps. On a 64-bit kernel skb->data is then far below skb->head. skb->len has 32 bits and wraps to the correct value, thus only skb->data is wrong. A read of packet data faults or gets other memory. Keep the offset in an int. Pull skb->data when the network header is after it. Otherwise push it, as today.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 3007098494bec614fb55dee7bc0410bb7db5ad18 to < eff346af4d523d5b8ed3a2c173c26f163c754b36affected
  • 3007098494bec614fb55dee7bc0410bb7db5ad18 to < 08432133abe0db4b0a964114d22afaf69da19748affected
  • 3007098494bec614fb55dee7bc0410bb7db5ad18 to < 3b2a42af183a7da44ae7d64bede143f31130c9e9affected
  • 3007098494bec614fb55dee7bc0410bb7db5ad18 to < 3f9780d62dd1112ca15b5ae73568d29d42ccc950affected

Linux Linux

Default version status: affected

  • 4.10affected
  • 0 to < 4.10unaffected
  • 6.12.120 to ≤ 6.12.*unaffected
  • 6.18.66 to ≤ 6.18.*unaffected
  • 7.3.7 to ≤ 7.3.*unaffected
  • 7.4-rc2 to ≤ *unaffected

References