{"api_version":"1","generated_at":"2026-11-30T18:38:10+00:00","cve":"CVE-2026-139793","urls":{"html":"https://cve.report/CVE-2026-139793","api":"https://cve.report/api/cve/CVE-2026-139793.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139793","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139793"},"summary":{"title":"inet: frags: bound the wmem charge of the socket completing a reassembly","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ninet: frags: bound the wmem charge of the socket completing a reassembly\n\nWhen a socket owned fragment completes a reassembly queue,\ninet_frag_reasm_prepare() and inet_frag_reasm_finish() charge the\ntruesize of all other fragments to its sk_wmem_alloc. These fragments\nwere orphaned when queued, and might have been sent by someone else,\nfor instance padded TUN packets.\n\nCommit 3ae20e4697eb (\"inet: frags: limit the truesize of a reassembly\nqueue\") bounds this charge to INT_MAX / 2 per queue, but a socket can\ncomplete several queues while the reassembled skbs are still alive,\nfor instance held in a qdisc. sk_wmem_alloc can then go past INT_MAX,\nrefcount_add() saturates it with a WARN, and the socket is leaked.\n\nThis is reachable from an unprivileged user/network namespace, by\nraising ipfrag_high_thresh.\n\nRefuse the reassembly if the charge would push sk_wmem_alloc above\n2 * sk_sndbuf, the bound ip_append_data() uses, plus 4MB of slack for\nfragments inflated by a refragmentation with a small MTU, and never\nabove INT_MAX / 2. The cap matters for tun sockets, which use\nsk_sndbuf = INT_MAX, and whose skbs are still owned when act_ct or\nopenvswitch reassemble them at ingress.\n\nSeveral queues can complete at the same time on different cpus for\nthe same socket, so the charge is reserved with a cmpxchg() loop in\ninet_frag_reasm_prepare(), before it modifies the queue, and settled\nin inet_frag_reasm_finish(). Move the size checks of ip_frag_reasm(),\nip6_frag_reasm() and nf_ct_frag6_reasm() before\ninet_frag_reasm_prepare(), using the first fragment which becomes the\nhead, so that a successful inet_frag_reasm_prepare() is always followed\nby inet_frag_reasm_finish(). All callers already kill the queue when\ninet_frag_reasm_prepare() returns NULL.\n\nFound by code inspection (AI review), not reproduced.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:20:13","updated_at":"2026-11-30 14:20:13"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/b71c101bbb9814d163c00234d43c41f0a17907d4","name":"https://git.kernel.org/stable/c/b71c101bbb9814d163c00234d43c41f0a17907d4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6ee928d489fae99aa2108dff346b5afa142b9d3d","name":"https://git.kernel.org/stable/c/6ee928d489fae99aa2108dff346b5afa142b9d3d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/38f0414192e7ed0a7f250a64d5dfacd6d6139098","name":"https://git.kernel.org/stable/c/38f0414192e7ed0a7f250a64d5dfacd6d6139098","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/dad6663a5dbf5f23c5921f0e2d0709560d388fa6","name":"https://git.kernel.org/stable/c/dad6663a5dbf5f23c5921f0e2d0709560d388fa6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2970a56311e4b26e12acdc9c53887243283e8b02","name":"https://git.kernel.org/stable/c/2970a56311e4b26e12acdc9c53887243283e8b02","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139793","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139793","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f4877225313d474659ee53150ccc3d553a978727 2970a56311e4b26e12acdc9c53887243283e8b02 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 18685451fc4e546fc0e718580d32df3c0e5c8272 6ee928d489fae99aa2108dff346b5afa142b9d3d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 18685451fc4e546fc0e718580d32df3c0e5c8272 dad6663a5dbf5f23c5921f0e2d0709560d388fa6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 18685451fc4e546fc0e718580d32df3c0e5c8272 38f0414192e7ed0a7f250a64d5dfacd6d6139098 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 18685451fc4e546fc0e718580d32df3c0e5c8272 b71c101bbb9814d163c00234d43c41f0a17907d4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1b6de5e6575b56502665c65cf93b0ae6aa0f51ab git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9705f447bf9a6cd088300ad2c407b5e1c6591091 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4318608dc28ef184158b4045896740716bea23f0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7d0567842b78390dd9b60f00f1d8f838d540e325 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e09cbe017311508c21e0739e97198a8388b98981 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.6.26 6.6.163 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.4.285 5.5 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.10.227 5.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15.168 5.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.1.85 6.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.8.5 6.9 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.9","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.9 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc3 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/ipv4/inet_fragment.c","net/ipv4/ip_fragment.c","net/ipv6/netfilter/nf_conntrack_reasm.c","net/ipv6/reassembly.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"2970a56311e4b26e12acdc9c53887243283e8b02","status":"affected","version":"f4877225313d474659ee53150ccc3d553a978727","versionType":"git"},{"lessThan":"6ee928d489fae99aa2108dff346b5afa142b9d3d","status":"affected","version":"18685451fc4e546fc0e718580d32df3c0e5c8272","versionType":"git"},{"lessThan":"dad6663a5dbf5f23c5921f0e2d0709560d388fa6","status":"affected","version":"18685451fc4e546fc0e718580d32df3c0e5c8272","versionType":"git"},{"lessThan":"38f0414192e7ed0a7f250a64d5dfacd6d6139098","status":"affected","version":"18685451fc4e546fc0e718580d32df3c0e5c8272","versionType":"git"},{"lessThan":"b71c101bbb9814d163c00234d43c41f0a17907d4","status":"affected","version":"18685451fc4e546fc0e718580d32df3c0e5c8272","versionType":"git"},{"status":"affected","version":"1b6de5e6575b56502665c65cf93b0ae6aa0f51ab","versionType":"git"},{"status":"affected","version":"9705f447bf9a6cd088300ad2c407b5e1c6591091","versionType":"git"},{"status":"affected","version":"4318608dc28ef184158b4045896740716bea23f0","versionType":"git"},{"status":"affected","version":"7d0567842b78390dd9b60f00f1d8f838d540e325","versionType":"git"},{"status":"affected","version":"e09cbe017311508c21e0739e97198a8388b98981","versionType":"git"},{"lessThan":"6.6.163","status":"affected","version":"6.6.26","versionType":"semver"},{"lessThan":"5.5","status":"affected","version":"5.4.285","versionType":"semver"},{"lessThan":"5.11","status":"affected","version":"5.10.227","versionType":"semver"},{"lessThan":"5.16","status":"affected","version":"5.15.168","versionType":"semver"},{"lessThan":"6.2","status":"affected","version":"6.1.85","versionType":"semver"},{"lessThan":"6.9","status":"affected","version":"6.8.5","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/ipv4/inet_fragment.c","net/ipv4/ip_fragment.c","net/ipv6/netfilter/nf_conntrack_reasm.c","net/ipv6/reassembly.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.9"},{"lessThan":"6.9","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc3","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"6.6.26","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc3","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4.285","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.227","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.168","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.85","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8.5","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ninet: frags: bound the wmem charge of the socket completing a reassembly\n\nWhen a socket owned fragment completes a reassembly queue,\ninet_frag_reasm_prepare() and inet_frag_reasm_finish() charge the\ntruesize of all other fragments to its sk_wmem_alloc. These fragments\nwere orphaned when queued, and might have been sent by someone else,\nfor instance padded TUN packets.\n\nCommit 3ae20e4697eb (\"inet: frags: limit the truesize of a reassembly\nqueue\") bounds this charge to INT_MAX / 2 per queue, but a socket can\ncomplete several queues while the reassembled skbs are still alive,\nfor instance held in a qdisc. sk_wmem_alloc can then go past INT_MAX,\nrefcount_add() saturates it with a WARN, and the socket is leaked.\n\nThis is reachable from an unprivileged user/network namespace, by\nraising ipfrag_high_thresh.\n\nRefuse the reassembly if the charge would push sk_wmem_alloc above\n2 * sk_sndbuf, the bound ip_append_data() uses, plus 4MB of slack for\nfragments inflated by a refragmentation with a small MTU, and never\nabove INT_MAX / 2. The cap matters for tun sockets, which use\nsk_sndbuf = INT_MAX, and whose skbs are still owned when act_ct or\nopenvswitch reassemble them at ingress.\n\nSeveral queues can complete at the same time on different cpus for\nthe same socket, so the charge is reserved with a cmpxchg() loop in\ninet_frag_reasm_prepare(), before it modifies the queue, and settled\nin inet_frag_reasm_finish(). Move the size checks of ip_frag_reasm(),\nip6_frag_reasm() and nf_ct_frag6_reasm() before\ninet_frag_reasm_prepare(), using the first fragment which becomes the\nhead, so that a successful inet_frag_reasm_prepare() is always followed\nby inet_frag_reasm_finish(). All callers already kill the queue when\ninet_frag_reasm_prepare() returns NULL.\n\nFound by code inspection (AI review), not reproduced."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:38:03.174Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/2970a56311e4b26e12acdc9c53887243283e8b02"},{"url":"https://git.kernel.org/stable/c/6ee928d489fae99aa2108dff346b5afa142b9d3d"},{"url":"https://git.kernel.org/stable/c/dad6663a5dbf5f23c5921f0e2d0709560d388fa6"},{"url":"https://git.kernel.org/stable/c/38f0414192e7ed0a7f250a64d5dfacd6d6139098"},{"url":"https://git.kernel.org/stable/c/b71c101bbb9814d163c00234d43c41f0a17907d4"}],"title":"inet: frags: bound the wmem charge of the socket completing a reassembly","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139793","datePublished":"2026-11-30T13:38:03.174Z","dateReserved":"2026-11-30T13:22:15.953Z","dateUpdated":"2026-11-30T13:38:03.174Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:20:13","lastModifiedDate":"2026-11-30 14:20:13","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139793","Ordinal":"1","Title":"inet: frags: bound the wmem charge of the socket completing a re","CVE":"CVE-2026-139793","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139793","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ninet: frags: bound the wmem charge of the socket completing a reassembly\n\nWhen a socket owned fragment completes a reassembly queue,\ninet_frag_reasm_prepare() and inet_frag_reasm_finish() charge the\ntruesize of all other fragments to its sk_wmem_alloc. These fragments\nwere orphaned when queued, and might have been sent by someone else,\nfor instance padded TUN packets.\n\nCommit 3ae20e4697eb (\"inet: frags: limit the truesize of a reassembly\nqueue\") bounds this charge to INT_MAX / 2 per queue, but a socket can\ncomplete several queues while the reassembled skbs are still alive,\nfor instance held in a qdisc. sk_wmem_alloc can then go past INT_MAX,\nrefcount_add() saturates it with a WARN, and the socket is leaked.\n\nThis is reachable from an unprivileged user/network namespace, by\nraising ipfrag_high_thresh.\n\nRefuse the reassembly if the charge would push sk_wmem_alloc above\n2 * sk_sndbuf, the bound ip_append_data() uses, plus 4MB of slack for\nfragments inflated by a refragmentation with a small MTU, and never\nabove INT_MAX / 2. The cap matters for tun sockets, which use\nsk_sndbuf = INT_MAX, and whose skbs are still owned when act_ct or\nopenvswitch reassemble them at ingress.\n\nSeveral queues can complete at the same time on different cpus for\nthe same socket, so the charge is reserved with a cmpxchg() loop in\ninet_frag_reasm_prepare(), before it modifies the queue, and settled\nin inet_frag_reasm_finish(). Move the size checks of ip_frag_reasm(),\nip6_frag_reasm() and nf_ct_frag6_reasm() before\ninet_frag_reasm_prepare(), using the first fragment which becomes the\nhead, so that a successful inet_frag_reasm_prepare() is always followed\nby inet_frag_reasm_finish(). All callers already kill the queue when\ninet_frag_reasm_prepare() returns NULL.\n\nFound by code inspection (AI review), not reproduced.","Type":"Description","Title":"inet: frags: bound the wmem charge of the socket completing a re"}]}}}