AZL-118346: CVE-2026-143210 affecting package kernel 6.6.161.1-1
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
Event History
Frequently Asked Questions
What conditions are needed to trigger the accounting error?
The condition involves repeated failed sends that operate on the same socket buffer (skb). Each failure can leave accounting for newly added zerocopy fragments behind after those fragments are trimmed.
What can repeated failures lead to?
Stale accounting can accumulate and inflate TCP memory accounting beyond tcp_mem. It can also cause skb->truesize to wrap, which can result in a use-after-free of the socket.
Does the error path always leave the stale accounting behind?
No. The fix undoes the accounting after trimming the newly added fragments. If trimming fails, the fragments and their accounting remain; the description says trimming fails only when the skb is cloned, which is not expected for an unsent skb at the tail of the TCP write queue.