{"id":"CVE-2026-143347","state":"PUBLISHED","title":"tcp: do not let tcp_collapse() drive sk_forward_alloc negative","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: do not let tcp_collapse() drive sk_forward_alloc negative\n\ntcp_collapse() charges each newly allocated skb with skb_set_owner_r()\nbefore the skbs it replaces are freed, without scheduling memory first.\n\nSince sk_mem_uncharge() reclaims eagerly, sk->sk_forward_alloc has no\ncushion and can become negative. This can be durable when the collapsed\nskbs had a high payload/truesize ratio or were partially read, because\nthe new skbs can have a bigger total truesize than the old ones.\n\nA negative sk_forward_alloc then confuses tcp_wmem_schedule(), which\ncan return a negative length to tcp_sendmsg_locked(), triggering\na WARN_ON_ONCE(bytes > INT_MAX) in check_copy_size().\n\nCall sk_forced_mem_schedule() before charging nskb.","publishedAt":"2026-12-03T09:22:05.802Z","updatedAt":"2026-12-03T09:22:05.802Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4890b686f4088c90432149bd6de567e621266fa2","status":"affected","lessThan":"1ff7405bdd58ec6bcac5035425266d1aecf224c3","versionType":"git"},{"version":"4890b686f4088c90432149bd6de567e621266fa2","status":"affected","lessThan":"48f12694acfcc4bf32dc077ee5c6e06770c51f6e","versionType":"git"},{"version":"4890b686f4088c90432149bd6de567e621266fa2","status":"affected","lessThan":"22418c15c09362f66294bb97a59b78546d46c052","versionType":"git"},{"version":"4890b686f4088c90432149bd6de567e621266fa2","status":"affected","lessThan":"031c403d13e5046750e2abebd4e770631e7c4627","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv4/tcp_input.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv4/tcp_input.c"]}],"references":["https://git.kernel.org/stable/c/1ff7405bdd58ec6bcac5035425266d1aecf224c3","https://git.kernel.org/stable/c/48f12694acfcc4bf32dc077ee5c6e06770c51f6e","https://git.kernel.org/stable/c/22418c15c09362f66294bb97a59b78546d46c052","https://git.kernel.org/stable/c/031c403d13e5046750e2abebd4e770631e7c4627"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143347.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143347","state":"PUBLISHED","datePublished":"2026-12-03T09:22:05.802Z","dateUpdated":"2026-12-03T09:22:05.802Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.368Z"},"containers":{"cna":{"title":"tcp: do not let tcp_collapse() drive sk_forward_alloc negative","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: do not let tcp_collapse() drive sk_forward_alloc negative\n\ntcp_collapse() charges each newly allocated skb with skb_set_owner_r()\nbefore the skbs it replaces are freed, without scheduling memory first.\n\nSince sk_mem_uncharge() reclaims eagerly, sk->sk_forward_alloc has no\ncushion and can become negative. This can be durable when the collapsed\nskbs had a high payload/truesize ratio or were partially read, because\nthe new skbs can have a bigger total truesize than the old ones.\n\nA negative sk_forward_alloc then confuses tcp_wmem_schedule(), which\ncan return a negative length to tcp_sendmsg_locked(), triggering\na WARN_ON_ONCE(bytes > INT_MAX) in check_copy_size().\n\nCall sk_forced_mem_schedule() before charging nskb."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4890b686f4088c90432149bd6de567e621266fa2","status":"affected","lessThan":"1ff7405bdd58ec6bcac5035425266d1aecf224c3","versionType":"git"},{"version":"4890b686f4088c90432149bd6de567e621266fa2","status":"affected","lessThan":"48f12694acfcc4bf32dc077ee5c6e06770c51f6e","versionType":"git"},{"version":"4890b686f4088c90432149bd6de567e621266fa2","status":"affected","lessThan":"22418c15c09362f66294bb97a59b78546d46c052","versionType":"git"},{"version":"4890b686f4088c90432149bd6de567e621266fa2","status":"affected","lessThan":"031c403d13e5046750e2abebd4e770631e7c4627","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv4/tcp_input.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv4/tcp_input.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/1ff7405bdd58ec6bcac5035425266d1aecf224c3"},{"url":"https://git.kernel.org/stable/c/48f12694acfcc4bf32dc077ee5c6e06770c51f6e"},{"url":"https://git.kernel.org/stable/c/22418c15c09362f66294bb97a59b78546d46c052"},{"url":"https://git.kernel.org/stable/c/031c403d13e5046750e2abebd4e770631e7c4627"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:22:05.802Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}