Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143347

tcp: do not let tcp_collapse() drive sk_forward_alloc negative

Description

In the Linux kernel, the following vulnerability has been resolved: tcp: do not let tcp_collapse() drive sk_forward_alloc negative tcp_collapse() charges each newly allocated skb with skb_set_owner_r() before the skbs it replaces are freed, without scheduling memory first. Since sk_mem_uncharge() reclaims eagerly, sk->sk_forward_alloc 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 sk_forward_alloc then confuses tcp_wmem_schedule(), which can return a negative length to tcp_sendmsg_locked(), triggering a WARN_ON_ONCE(bytes > INT_MAX) in check_copy_size(). Call sk_forced_mem_schedule() before charging nskb.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 4890b686f4088c90432149bd6de567e621266fa2 to < 1ff7405bdd58ec6bcac5035425266d1aecf224c3affected
  • 4890b686f4088c90432149bd6de567e621266fa2 to < 48f12694acfcc4bf32dc077ee5c6e06770c51f6eaffected
  • 4890b686f4088c90432149bd6de567e621266fa2 to < 22418c15c09362f66294bb97a59b78546d46c052affected
  • 4890b686f4088c90432149bd6de567e621266fa2 to < 031c403d13e5046750e2abebd4e770631e7c4627affected

Linux Linux

Default version status: affected

  • 6.0affected
  • 0 to < 6.0unaffected
  • 6.12.120 to ≤ 6.12.*unaffected
  • 6.18.66 to ≤ 6.18.*unaffected
  • 7.3.7 to ≤ 7.3.*unaffected
  • 7.4-rc2 to ≤ *unaffected

References