{"id":"CVE-2026-143137","summary":"net: gro: do not undo remote checksum offload on merged packets","details":"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)-\u003esame_flow\nis set), grc-\u003eoffset 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-\u003eoffset is relative to the original skb-\u003edata, 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)-\u003efrag0 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-\u003eremcsum_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.","modified":"2026-12-03T11:01:24.132334393Z","published":"2026-12-03T09:19:44.542Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143137.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/63bf164976eaa5d1fd5a54ce2e593c18151812a4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a309b402093c3b63a85412242651b1db6c3c67de"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c70723e4dafc4785a8874caec6acf4dbbd9650ca"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c817ec1b06875b98460fbd19591be541bc3fa924"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143137.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143137"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"26c4f7da3e413da697a7beb22ad496390eda7da0"},{"fixed":"c70723e4dafc4785a8874caec6acf4dbbd9650ca"},{"fixed":"63bf164976eaa5d1fd5a54ce2e593c18151812a4"},{"fixed":"a309b402093c3b63a85412242651b1db6c3c67de"},{"fixed":"c817ec1b06875b98460fbd19591be541bc3fa924"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143137.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143137.json"}}],"schema_version":"1.9.2"}