Bug 2589965 (CVE-2026-143210) - CVE-2026-143210 kernel: kernel: Use-after-free via improper socket memory accounting on zero-copy send errors
Summary: CVE-2026-143210 kernel: kernel: Use-after-free via improper socket memory acc...
Keywords:
Status: NEW
Alias: CVE-2026-143210
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-12-03 09:55 UTC by OSIDB Bzimport
Modified: 2026-12-03 12:18 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-12-03 09:55:30 UTC
In the Linux kernel, the following vulnerability has been resolved:

net: skbuff: uncharge trimmed zerocopy frags on error

__zerocopy_sg_from_iter() accounts for the frags that it adds even when
it returns an error: it adds the growth of skb->truesize to
sk_wmem_queued and, unless the skb is pure zerocopy, charges it to the
socket.

On error, skb_zerocopy_iter_stream() cannot free the skb, as it may hold
data from an earlier send. It trims the new frags, but leaves
skb->truesize and their accounting in place.

Repeated failed sends to the same skb accumulate this stale accounting.
This can inflate TCP memory accounting past tcp_mem, and can wrap
skb->truesize, leading to a use-after-free of the socket.

Undo the accounting after the trim. If the trim fails, the frags and
their accounting remain. The trim only fails if the skb is cloned,
which is not expected for the unsent skb at the TCP write queue tail.

The issue was found by an LLM.

[willemb: revised commit message]


Note You need to log in before you can comment on or make changes to this bug.