CVE-2026-143347: tcp: do not let tcp_collapse() drive sk_forward_alloc negative

Published Dec 3, 2026
·
Updated

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

7 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.0.0<6.12.120
6.12.120
linux/kernel>=6.13.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.7
7.3.7
debian/linux*
debian/linux*
debian/linux*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.120
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7
  4. Compensating control

    In tcp_collapse(), call sk_forced_mem_schedule() before charging nskb.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:22 AM
Data Sourced
via MITRE·09:22 AM
Description
Data Sourced
via OSV·09:22 AM
DescriptionAffected Software
Data Sourced
via NVD·10:18 AM
Description

Frequently Asked Questions

1

What conditions make the incorrect memory accounting more likely to persist?

It can persist when collapsed socket buffers have a high payload-to-truesize ratio or have been partially read, because replacement buffers may have a larger total truesize than the buffers they replace.

2

What observable symptom can indicate that this condition has been reached?

A negative sk_forward_alloc can cause tcp_wmem_schedule() to return a negative length to tcp_sendmsg_locked(), triggering the WARN_ON_ONCE(bytes > INT_MAX) check in check_copy_size().

3

What is the documented fix approach?

The resolved change calls sk_forced_mem_schedule() before charging the newly allocated replacement socket buffer, preventing tcp_collapse() from driving sk_forward_alloc negative.

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