{"id":"CVE-2026-143136","state":"PUBLISHED","title":"net: gro: invalidate frag0 after a pull","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: gro: invalidate frag0 after a pull\n\nSince commit bd56a29c7a4e (\"net: gro: change skb_gro_network_header()\"),\nskb_gro_header_slow() no longer invalidates NAPI_GRO_CB(skb)->frag0\nafter pskb_may_pull(). skb_gro_may_pull() keeps comparing against the\nfrag0_len value set in skb_gro_reset_offset(), assuming that after a\nslow pull, all later accesses are beyond frag0_len.\n\nThis is not true:\n\n- udp4_gro_receive() and udp6_gro_receive() read the network header\n  with skb_gro_network_header() after udp_gro_udphdr() pulled the\n  UDP header.\n\n- vxlan_gro_receive() calls skb_gro_remcsum_cleanup() at a lower\n  offset after the inner handlers pulled their headers.\n\n- skb_gro_remcsum_process() can pull beyond the inner Ethernet header\n  before eth_gro_receive() reads it.\n\n- napi_frags_skb() calls __skb_pull(skb, ETH_HLEN) after a slow pull,\n  so frag0 still points to the Ethernet header.\n\nIf the pull consumed the first page fragment, __skb_pull_tail() released\nit. If the head had to grow, pskb_expand_head() freed the old one.\nThese reads, and the 2-byte write in skb_gro_remcsum_cleanup(), then\naccess memory the skb no longer holds a reference on.\n\nesp4_gro_receive(), esp6_gro_receive(), skb_gro_receive_list() and\nudp_gro_receive_segment() also pull directly and never invalidated\nfrag0.\n\nAdd skb_gro_frag0_invalidate(), which only clears frag0_len, and call\nit before each of these pulls. This is a single store in the slow path,\nand frag0 stays non NULL, so skb_gro_network_header() does not need\na NULL test.\n\nfrag0 must be invalidated even if the pull fails: __pskb_pull_tail()\ncan return NULL after pskb_expand_head() freed the old head, for\ninstance if a frag_list member has to be cloned or pulled.\n\nAs frag0 is now invalidated before a pull that can fail,\ngro_try_pull_from_frag0() can see an skb whose linear part does not\ncover skb_gro_offset() while frag0 still points to the start of the\npacket, for instance after skb_gro_remcsum_cleanup() pulled a shorter\nlength. Copying from frag0 would then corrupt the headers: only use\nfrag0 while frag0_len is not zero, and use pskb_may_pull() otherwise.\nIf this pull fails, for instance after a failed pskb_pull() in\nesp4_gro_receive(), do not hold the packet: later GRO lookups and\ngro_complete() handlers expect its headers in the linear part.\n\nThis was found by Taesoo Kim and Cen Zhang, using LLM assisted code\nanalysis, and confirmed with reproducers.","publishedAt":"2026-12-03T09:19:43.907Z","updatedAt":"2026-12-03T09:19:43.907Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9fd1ff5d2ac7181844735806b0a703c942365291","status":"affected","lessThan":"cb5c7e185101448d0551890da3a3fde53bf3eb13","versionType":"git"},{"version":"9fd1ff5d2ac7181844735806b0a703c942365291","status":"affected","lessThan":"e5da3b8cec34860146bf7049b9475a70d77457a4","versionType":"git"},{"version":"9fd1ff5d2ac7181844735806b0a703c942365291","status":"affected","lessThan":"98d949a15ff9d3fffaa6983223178374aab92db6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/gro.h","net/core/gro.c","net/ipv4/esp4_offload.c","net/ipv4/udp_offload.c","net/ipv6/esp6_offload.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.6","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/gro.h","net/core/gro.c","net/ipv4/esp4_offload.c","net/ipv4/udp_offload.c","net/ipv6/esp6_offload.c"]}],"references":["https://git.kernel.org/stable/c/cb5c7e185101448d0551890da3a3fde53bf3eb13","https://git.kernel.org/stable/c/e5da3b8cec34860146bf7049b9475a70d77457a4","https://git.kernel.org/stable/c/98d949a15ff9d3fffaa6983223178374aab92db6"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143136.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143136","state":"PUBLISHED","datePublished":"2026-12-03T09:19:43.907Z","dateUpdated":"2026-12-03T09:19:43.907Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.353Z"},"containers":{"cna":{"title":"net: gro: invalidate frag0 after a pull","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: gro: invalidate frag0 after a pull\n\nSince commit bd56a29c7a4e (\"net: gro: change skb_gro_network_header()\"),\nskb_gro_header_slow() no longer invalidates NAPI_GRO_CB(skb)->frag0\nafter pskb_may_pull(). skb_gro_may_pull() keeps comparing against the\nfrag0_len value set in skb_gro_reset_offset(), assuming that after a\nslow pull, all later accesses are beyond frag0_len.\n\nThis is not true:\n\n- udp4_gro_receive() and udp6_gro_receive() read the network header\n  with skb_gro_network_header() after udp_gro_udphdr() pulled the\n  UDP header.\n\n- vxlan_gro_receive() calls skb_gro_remcsum_cleanup() at a lower\n  offset after the inner handlers pulled their headers.\n\n- skb_gro_remcsum_process() can pull beyond the inner Ethernet header\n  before eth_gro_receive() reads it.\n\n- napi_frags_skb() calls __skb_pull(skb, ETH_HLEN) after a slow pull,\n  so frag0 still points to the Ethernet header.\n\nIf the pull consumed the first page fragment, __skb_pull_tail() released\nit. If the head had to grow, pskb_expand_head() freed the old one.\nThese reads, and the 2-byte write in skb_gro_remcsum_cleanup(), then\naccess memory the skb no longer holds a reference on.\n\nesp4_gro_receive(), esp6_gro_receive(), skb_gro_receive_list() and\nudp_gro_receive_segment() also pull directly and never invalidated\nfrag0.\n\nAdd skb_gro_frag0_invalidate(), which only clears frag0_len, and call\nit before each of these pulls. This is a single store in the slow path,\nand frag0 stays non NULL, so skb_gro_network_header() does not need\na NULL test.\n\nfrag0 must be invalidated even if the pull fails: __pskb_pull_tail()\ncan return NULL after pskb_expand_head() freed the old head, for\ninstance if a frag_list member has to be cloned or pulled.\n\nAs frag0 is now invalidated before a pull that can fail,\ngro_try_pull_from_frag0() can see an skb whose linear part does not\ncover skb_gro_offset() while frag0 still points to the start of the\npacket, for instance after skb_gro_remcsum_cleanup() pulled a shorter\nlength. Copying from frag0 would then corrupt the headers: only use\nfrag0 while frag0_len is not zero, and use pskb_may_pull() otherwise.\nIf this pull fails, for instance after a failed pskb_pull() in\nesp4_gro_receive(), do not hold the packet: later GRO lookups and\ngro_complete() handlers expect its headers in the linear part.\n\nThis was found by Taesoo Kim and Cen Zhang, using LLM assisted code\nanalysis, and confirmed with reproducers."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9fd1ff5d2ac7181844735806b0a703c942365291","status":"affected","lessThan":"cb5c7e185101448d0551890da3a3fde53bf3eb13","versionType":"git"},{"version":"9fd1ff5d2ac7181844735806b0a703c942365291","status":"affected","lessThan":"e5da3b8cec34860146bf7049b9475a70d77457a4","versionType":"git"},{"version":"9fd1ff5d2ac7181844735806b0a703c942365291","status":"affected","lessThan":"98d949a15ff9d3fffaa6983223178374aab92db6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/gro.h","net/core/gro.c","net/ipv4/esp4_offload.c","net/ipv4/udp_offload.c","net/ipv6/esp6_offload.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.6","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/gro.h","net/core/gro.c","net/ipv4/esp4_offload.c","net/ipv4/udp_offload.c","net/ipv6/esp6_offload.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/cb5c7e185101448d0551890da3a3fde53bf3eb13"},{"url":"https://git.kernel.org/stable/c/e5da3b8cec34860146bf7049b9475a70d77457a4"},{"url":"https://git.kernel.org/stable/c/98d949a15ff9d3fffaa6983223178374aab92db6"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:43.907Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}