{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143210","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.360Z","datePublished":"2026-12-03T09:20:32.058Z","dateUpdated":"2026-12-04T03:30:59.826Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-04T03:30:59.826Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: skbuff: uncharge trimmed zerocopy frags on error\n\n__zerocopy_sg_from_iter() accounts for the frags that it adds even when\nit returns an error: it adds the growth of skb->truesize to\nsk_wmem_queued and, unless the skb is pure zerocopy, charges it to the\nsocket.\n\nOn error, skb_zerocopy_iter_stream() cannot free the skb, as it may hold\ndata from an earlier send. It trims the new frags, but leaves\nskb->truesize and their accounting in place.\n\nRepeated failed sends to the same skb accumulate this stale accounting.\nThis can inflate TCP memory accounting past tcp_mem, and can wrap\nskb->truesize, leading to a use-after-free of the socket.\n\nUndo the accounting after the trim. If the trim fails, the frags and\ntheir accounting remain. The trim only fails if the skb is cloned,\nwhich is not expected for the unsent skb at the TCP write queue tail.\n\nThe issue was found by an LLM.\n\n[willemb: revised commit message]"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The faulting input is the sender's iovec, not a received packet. tcp_sendmsg_locked() calls skb_zerocopy_iter_stream(); zerocopy_fill_skb_from_iter() adds PAGE_ALIGN(copied+start) to skb->truesize and then iov_iter_get_pages2() returns -EFAULT, and ___pskb_trim() does not undo that. drivers/net/loopback.c sets NETIF_F_SG, so a localhost TCP sendmsg() takes this path.\nAC:L - The attacker sets SO_ZEROCOPY, connects, and MSG_MORE-corks a non-empty skb so tcp_remove_empty_skb() keeps it (seq!=end_seq). Each faulting iovec adds a chosen page multiple to skb->truesize. They then transmit that skb and complete their own earlier frame; both sides of the sk_wmem_alloc window are actions they perform.\nPR:L - sock_setsockopt() SO_ZEROCOPY sets SOCK_ZEROCOPY for PF_INET/PF_INET6 TCP with no capability check, and the entry point is tcp_sendmsg() from an unprivileged process. Init-namespace root is not required.\nUI:N - The attacker creates the socket, sets SO_ZEROCOPY, connects to a listener they own, and issues the faulting MSG_ZEROCOPY sendmsgs. No other user has to mount, open a file, or click.\nS:U - __sk_free() releases the attacker's own struct sock in the host kernel. That is local privilege escalation in the same security authority, not a guest-to-host or IOMMU crossing.\nC:H - Once skb->truesize passes INT_MAX, __tcp_transmit_skb()'s refcount_add() saturates sk_wmem_alloc. A later refcount_add() of a page-aligned truesize near 0x40000000 turns REFCOUNT_SATURATED into the in-flight skb's truesize until refcount_warn_saturate(); tcp_wfree() then sk_free() drops that to zero and __sk_free()s the sock the fd still uses, which can be reclaimed and read.\nI:H - After that early __sk_free(), tcp_sendmsg_locked() and tcp_wfree() still write sk_wmem_queued, sk_forward_alloc, and the destructor through the freed sock. That write-after-free can corrupt kernel state and redirect control flow.\nA:H - The use-after-free oopses on the next fd or TX-completion use of the sock. Separately, failed non-pure appends sk_mem_charge() the phantom truesize, and __sk_mem_raise_allocated() force-charges once sk_wmem_queued >= sk_sndbuf, so repeats drive tcp memory_allocated past tcp_mem."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/skbuff.c"],"versions":[{"version":"52267790ef52d7513879238ca9fac22c1733e0e3","lessThan":"b6472e8db25035f727390d3afcd45b38b02e30d1","status":"affected","versionType":"git"},{"version":"52267790ef52d7513879238ca9fac22c1733e0e3","lessThan":"cabaf2c3c942880d3850f29d76414e7007f4c985","status":"affected","versionType":"git"},{"version":"52267790ef52d7513879238ca9fac22c1733e0e3","lessThan":"bf6e0dc4b9774b586ab250b75cc16308421a1def","status":"affected","versionType":"git"},{"version":"52267790ef52d7513879238ca9fac22c1733e0e3","lessThan":"8b67debdfbf6b370312ebec5c9e0a1c39b5c7733","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/skbuff.c"],"versions":[{"version":"4.14","status":"affected"},{"version":"0","lessThan":"4.14","status":"unaffected","versionType":"semver"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"7.4-rc3"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/b6472e8db25035f727390d3afcd45b38b02e30d1"},{"url":"https://git.kernel.org/stable/c/cabaf2c3c942880d3850f29d76414e7007f4c985"},{"url":"https://git.kernel.org/stable/c/bf6e0dc4b9774b586ab250b75cc16308421a1def"},{"url":"https://git.kernel.org/stable/c/8b67debdfbf6b370312ebec5c9e0a1c39b5c7733"}],"title":"net: skbuff: uncharge trimmed zerocopy frags on error","x_generator":{"engine":"bippy-1.2.0"}}}}