{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "f4877225313d474659ee53150ccc3d553a978727"
            },
            {
              "fixed": "2970a56311e4b26e12acdc9c53887243283e8b02"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "18685451fc4e546fc0e718580d32df3c0e5c8272"
            },
            {
              "fixed": "6ee928d489fae99aa2108dff346b5afa142b9d3d"
            },
            {
              "fixed": "dad6663a5dbf5f23c5921f0e2d0709560d388fa6"
            },
            {
              "fixed": "38f0414192e7ed0a7f250a64d5dfacd6d6139098"
            },
            {
              "fixed": "b71c101bbb9814d163c00234d43c41f0a17907d4"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "1b6de5e6575b56502665c65cf93b0ae6aa0f51ab"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "9705f447bf9a6cd088300ad2c407b5e1c6591091"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "4318608dc28ef184158b4045896740716bea23f0"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "7d0567842b78390dd9b60f00f1d8f838d540e325"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "e09cbe017311508c21e0739e97198a8388b98981"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.4.285"
            },
            {
              "fixed": "5.5"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.10.227"
            },
            {
              "fixed": "5.11"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.15.168"
            },
            {
              "fixed": "5.16"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.1.85"
            },
            {
              "fixed": "6.2"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.6.26"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.8.5"
            },
            {
              "fixed": "6.9"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.9.0"
            },
            {
              "fixed": "6.12.119"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139793.json"
  },
  "details": "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.",
  "id": "CVE-2026-139793",
  "modified": "2026-12-01T20:45:48.849466866Z",
  "published": "2026-11-30T13:38:03.174Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2970a56311e4b26e12acdc9c53887243283e8b02"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/38f0414192e7ed0a7f250a64d5dfacd6d6139098"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6ee928d489fae99aa2108dff346b5afa142b9d3d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b71c101bbb9814d163c00234d43c41f0a17907d4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/dad6663a5dbf5f23c5921f0e2d0709560d388fa6"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139793.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139793"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "inet: frags: bound the wmem charge of the socket completing a reassembly"
}