Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143147

ipv4: keep XFRM headers out of corked skb lengths

Description

In the Linux kernel, the following vulnerability has been resolved: ipv4: keep XFRM headers out of corked skb lengths __ip_append_data() allocates space for dst.header_len in the first skb, but includes that space in skb->len until __ip_make_skb() pulls it. Fragment accounting uses an MTU that already excludes the XFRM headers. As a result, the next skb can have a fraggap larger than its capped datalen, and skb_copy_and_csum_bits() can overwrite its shared info. For example, five AH tunnel states can reserve 500 bytes while leaving an effective MTU of 348. With 40 bytes of IPv4 options, the second skb has room for 288 bytes of fragment data but receives a 500-byte gap copy. The overwritten shared info is subsequently consumed by the skb release paths. Reserve the XFRM headers together with the link-layer headroom instead. This keeps skb->len, the gap-copy offsets and the trim lengths relative to the IPv4 packet throughout corking. The network and transport header addresses and the headroom available to XFRM at output are unchanged. Both paged and linear allocations, including subsequent corked appends, use the corrected accounting.

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

  • 353e5c9abd900de3d1a40925386ffe4abf76111e to < ca0c8be0da23a51bbd857cb917def4f73113a715affected
  • 353e5c9abd900de3d1a40925386ffe4abf76111e to < 7525c4171570e7114723bbb22906b996f4a4eef7affected
  • 353e5c9abd900de3d1a40925386ffe4abf76111e to < e56242c11080c2ba1f233b14c36ab3d76d6fff72affected
  • 353e5c9abd900de3d1a40925386ffe4abf76111e to < 9b9e9bf016ca6dd7552e5ed3169fedf40fcbe1a0affected
  • 353e5c9abd900de3d1a40925386ffe4abf76111e to < abe22654487724fe96bfaeacc502884d981adb06affected
  • 353e5c9abd900de3d1a40925386ffe4abf76111e to < 0f47fce51a98d3d9f439c16861d519a7b833a176affected

Linux Linux

Default version status: affected

  • 3.0affected
  • 0 to < 3.0unaffected
  • 5.10.276 to ≤ 5.10.*unaffected
  • 5.15.227 to ≤ 5.15.*unaffected
  • 6.12.120 to ≤ 6.12.*unaffected
  • 6.18.66 to ≤ 6.18.*unaffected
  • 7.3.7 to ≤ 7.3.*unaffected
  • 7.4-rc3 to ≤ *unaffected

References