Description
In the Linux kernel, the following vulnerability has been resolved: net: gro: avoid parsing headers from shared fragments When an skb has an empty linear head, skb_gro_reset_offset() can expose the first page fragment directly to GRO header parsers. For an SKBFL_SHARED_FRAG skb, those bytes may still be writable through a file mapping. Headers validated during receive can therefore differ from the headers later copied into the linear head and used during completion. For example, changing an IPv6 destination-options length between the short and full header fetches in ipv6_gro_pull_exthdrs() can make ipv6_gro_complete() pass an out-of-bounds offset to udp6_gro_complete(). A userspace reproducer triggered a KASAN slab-out-of-bounds read there on an unmodified kernel as UID 1000. The same completion path can write the UDP checksum and length through the invalid offset. The packet has trusted TCP GSO metadata and spliced file data, so it reaches completion without an skb zerocopy destructor or a second GRO packet. Disable the direct-fragment fast path for skbs with externally writable fragments. With an empty linear head, frag0_len remains zero, so skb_gro_header_slow() pulls each required header into the linear head before it is inspected. Subsequent pulls preserve the validated prefix. This covers both gro_receive_skb() and napi_gro_frags(), including other protocols using the same helpers. Linear headers and private fragments retain their existing fast paths. Codex assisted with review of the supplied report, reproducer and draft fix, related-path analysis, and this changelog. The patched net/core/gro.o builds with W=1 using the supplied x86-64 configuration, allyesconfig and allmodconfig. The fix was checked by code-path analysis; the reproducer and kernel selftests have not been run on a booted patched kernel. The issue was found by an LLM.
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
dff0b0161ad571f888d37f5e7163a07dcafdef60 to < 60684312f40bc9ccbd442b27694895cccf7312d6affecteddff0b0161ad571f888d37f5e7163a07dcafdef60 to < 6e5f08e089b690f1420b57daf03c7508b47a5a8daffecteddff0b0161ad571f888d37f5e7163a07dcafdef60 to < 5e2e65e1fb673bb8106bfbf0c87d89598e16ab1daffecteddff0b0161ad571f888d37f5e7163a07dcafdef60 to < 44818c9a826d766dc0e21179dc76f229334f1ddaaffected7f7b0ebb37afc5070d122318e3651d7cb8c4f01caffected6.6.31 to < 6.7affected
Linux Linux
Default version status: affected
6.8affected0 to < 6.8unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected