CVE-2026-143210: net: skbuff: uncharge trimmed zerocopy frags on error

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net: skbuff: uncharge trimmed zerocopy frags on error

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

On error, skbzerocopyiterstream() 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 tcpmem, 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]

Affected Software

1 affected component
Linux Linux kernel

Event History

Dec 3, 2026
CVE Published
via MITRE·09:20 AM
Data Sourced
via MITRE·09:20 AM
Description
Data Sourced
via NVD·10:17 AM
Description

Frequently Asked Questions

1

What conditions are required for the accounting to build up?

The condition requires repeated failed sends to the same skb. The affected path adds zerocopy fragments and their memory accounting before returning an error, then trims the fragments without undoing the associated accounting.

2

What is the practical impact of repeated failures?

Stale accounting can accumulate and inflate TCP memory accounting beyond tcp_mem. It can also cause skb->truesize to wrap, which can lead to a use-after-free of the socket.

3

Does the cleanup always succeed after an error?

The trim operation can fail only if the skb is cloned. This is not expected for an unsent skb at the tail of the TCP write queue; if trimming fails, the fragments and their accounting remain.

4

What does the resolved change correct?

After trimming newly added fragments following an error, the fix undoes the corresponding skb->truesize and socket memory accounting. This prevents failed sends from retaining stale zerocopy-fragment charges.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203