{"id":"CVE-2026-143137","state":"PUBLISHED","title":"net: gro: do not undo remote checksum offload on merged packets","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: gro: do not undo remote checksum offload on merged packets\n\nskb_gro_flush_final_remcsum() calls skb_gro_remcsum_cleanup() to undo\nthe checksum adjustment done by skb_gro_remcsum_process() when the\npacket was not consumed by GRO.\n\nWhen the inner handler merged the packet (NAPI_GRO_CB(skb)->same_flow\nis set), grc->offset can no longer be trusted:\n\n- skb_gro_receive() either gives the frags or the head of the skb\n  to the held packet, or uses __skb_pull(skb, offset) before adding\n  the skb to the frag_list of the held packet.\n\n- skb_gro_receive_list() uses skb_pull(skb, skb_gro_offset(skb)).\n\ngrc->offset is relative to the original skb->data, so the 2-byte\nread-modify-write done by skb_gro_remcsum_cleanup() can land in\nthe payload of a packet which now belongs to the GRO packet.\npskb_may_pull() can also be called on this frag_list member.\n\nWith fraglist GRO, this can also be a use-after-free:\npskb_may_pull(skb, skb_gro_offset(skb)) in skb_gro_receive_list()\nor udp_gro_receive_segment() releases the first page fragment if it\nonly contains headers. NAPI_GRO_CB(skb)->frag0 and frag0_len are not\nupdated, so skb_gro_remcsum_cleanup() takes the fast path and writes\nthrough frag0 into a page the skb no longer holds a reference on.\nThe non merged case, where frag0 is used after this pull, is handled\nin the following patch.\n\nFor skbs merged by skb_gro_receive(), the cleanup can be skipped:\nthe skb is freed, or its headers are rebuilt from the head skb in\nskb_segment().\n\nFraglist members keep their own inner headers, as skb_segment_list()\nonly copies the link-layer and tunnel headers from the head skb.\nTheir checksum can not be right in all cases: a packet forwarded with\nits tunnel header needs the original value, while a VXLAN packet\ndecapsulated locally needs the adjusted one, as vxlan_remcsum() only\nadjusts the head skb. Make skb_gro_receive_list() refuse packets with\nskb->remcsum_offload set, so that fraglist members never carry an\nadjusted checksum.\n\nThis affects VXLAN (VXLAN_F_REMCSUM_NOPARTIAL) and GUE\n(FOU_F_REMCSUM_NOPARTIAL).\n\nThis was found while fixing a report from Taesoo Kim and Cen Zhang,\nwho used LLM assisted code analysis and provided reproducers.","publishedAt":"2026-12-03T09:19:44.542Z","updatedAt":"2026-12-03T09:19:44.542Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"26c4f7da3e413da697a7beb22ad496390eda7da0","status":"affected","lessThan":"c70723e4dafc4785a8874caec6acf4dbbd9650ca","versionType":"git"},{"version":"26c4f7da3e413da697a7beb22ad496390eda7da0","status":"affected","lessThan":"63bf164976eaa5d1fd5a54ce2e593c18151812a4","versionType":"git"},{"version":"26c4f7da3e413da697a7beb22ad496390eda7da0","status":"affected","lessThan":"a309b402093c3b63a85412242651b1db6c3c67de","versionType":"git"},{"version":"26c4f7da3e413da697a7beb22ad496390eda7da0","status":"affected","lessThan":"c817ec1b06875b98460fbd19591be541bc3fa924","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/gro.h","net/core/gro.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.0","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","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"]}],"references":["https://git.kernel.org/stable/c/c70723e4dafc4785a8874caec6acf4dbbd9650ca","https://git.kernel.org/stable/c/63bf164976eaa5d1fd5a54ce2e593c18151812a4","https://git.kernel.org/stable/c/a309b402093c3b63a85412242651b1db6c3c67de","https://git.kernel.org/stable/c/c817ec1b06875b98460fbd19591be541bc3fa924"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143137.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143137","state":"PUBLISHED","datePublished":"2026-12-03T09:19:44.542Z","dateUpdated":"2026-12-03T09:19:44.542Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.353Z"},"containers":{"cna":{"title":"net: gro: do not undo remote checksum offload on merged packets","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: gro: do not undo remote checksum offload on merged packets\n\nskb_gro_flush_final_remcsum() calls skb_gro_remcsum_cleanup() to undo\nthe checksum adjustment done by skb_gro_remcsum_process() when the\npacket was not consumed by GRO.\n\nWhen the inner handler merged the packet (NAPI_GRO_CB(skb)->same_flow\nis set), grc->offset can no longer be trusted:\n\n- skb_gro_receive() either gives the frags or the head of the skb\n  to the held packet, or uses __skb_pull(skb, offset) before adding\n  the skb to the frag_list of the held packet.\n\n- skb_gro_receive_list() uses skb_pull(skb, skb_gro_offset(skb)).\n\ngrc->offset is relative to the original skb->data, so the 2-byte\nread-modify-write done by skb_gro_remcsum_cleanup() can land in\nthe payload of a packet which now belongs to the GRO packet.\npskb_may_pull() can also be called on this frag_list member.\n\nWith fraglist GRO, this can also be a use-after-free:\npskb_may_pull(skb, skb_gro_offset(skb)) in skb_gro_receive_list()\nor udp_gro_receive_segment() releases the first page fragment if it\nonly contains headers. NAPI_GRO_CB(skb)->frag0 and frag0_len are not\nupdated, so skb_gro_remcsum_cleanup() takes the fast path and writes\nthrough frag0 into a page the skb no longer holds a reference on.\nThe non merged case, where frag0 is used after this pull, is handled\nin the following patch.\n\nFor skbs merged by skb_gro_receive(), the cleanup can be skipped:\nthe skb is freed, or its headers are rebuilt from the head skb in\nskb_segment().\n\nFraglist members keep their own inner headers, as skb_segment_list()\nonly copies the link-layer and tunnel headers from the head skb.\nTheir checksum can not be right in all cases: a packet forwarded with\nits tunnel header needs the original value, while a VXLAN packet\ndecapsulated locally needs the adjusted one, as vxlan_remcsum() only\nadjusts the head skb. Make skb_gro_receive_list() refuse packets with\nskb->remcsum_offload set, so that fraglist members never carry an\nadjusted checksum.\n\nThis affects VXLAN (VXLAN_F_REMCSUM_NOPARTIAL) and GUE\n(FOU_F_REMCSUM_NOPARTIAL).\n\nThis was found while fixing a report from Taesoo Kim and Cen Zhang,\nwho used LLM assisted code analysis and provided reproducers."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"26c4f7da3e413da697a7beb22ad496390eda7da0","status":"affected","lessThan":"c70723e4dafc4785a8874caec6acf4dbbd9650ca","versionType":"git"},{"version":"26c4f7da3e413da697a7beb22ad496390eda7da0","status":"affected","lessThan":"63bf164976eaa5d1fd5a54ce2e593c18151812a4","versionType":"git"},{"version":"26c4f7da3e413da697a7beb22ad496390eda7da0","status":"affected","lessThan":"a309b402093c3b63a85412242651b1db6c3c67de","versionType":"git"},{"version":"26c4f7da3e413da697a7beb22ad496390eda7da0","status":"affected","lessThan":"c817ec1b06875b98460fbd19591be541bc3fa924","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/gro.h","net/core/gro.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.0","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","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"]}],"references":[{"url":"https://git.kernel.org/stable/c/c70723e4dafc4785a8874caec6acf4dbbd9650ca"},{"url":"https://git.kernel.org/stable/c/63bf164976eaa5d1fd5a54ce2e593c18151812a4"},{"url":"https://git.kernel.org/stable/c/a309b402093c3b63a85412242651b1db6c3c67de"},{"url":"https://git.kernel.org/stable/c/c817ec1b06875b98460fbd19591be541bc3fa924"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:44.542Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}