AZL-118631: CVE-2026-143347 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
tcp: do not let tcpcollapse() drive skforwardalloc negative
tcpcollapse() charges each newly allocated skb with skbsetownerr() before the skbs it replaces are freed, without scheduling memory first.
Since skmemuncharge() reclaims eagerly, sk->skforwardalloc has no cushion and can become negative. This can be durable when the collapsed skbs had a high payload/truesize ratio or were partially read, because the new skbs can have a bigger total truesize than the old ones.
A negative skforwardalloc then confuses tcpwmemschedule(), which can return a negative length to tcpsendmsglocked(), triggering a WARNONONCE(bytes > INTMAX) in checkcopysize().
Call skforcedmemschedule() before charging nskb.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In tcp_collapse(), call sk_forced_mem_schedule() before charging nskb.
Event History
Frequently Asked Questions
What conditions are needed to trigger the issue?
The issue involves TCP socket buffer collapse activity where replacement socket buffers are charged before the buffers they replace are freed. It is more likely to persist when the collapsed buffers have a high payload-to-truesize ratio or have been partially read.
What is the observable effect if a system is affected?
A negative sk_forward_alloc value can cause tcp_wmem_schedule() to return a negative length to tcp_sendmsg_locked(). This can trigger the WARN_ON_ONCE(bytes > INT_MAX) condition in check_copy_size().
What change resolves the problem?
The resolved change calls sk_forced_mem_schedule() before charging the new socket buffer in tcp_collapse(). This prevents tcp_collapse() from driving sk_forward_alloc negative.