{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "c78b7c58665748aa775e86e0e49798b9f34a1dc9"
            },
            {
              "fixed": "dd4c15e44dcf3920c0b744dc6d4b5038b2dd350f"
            },
            {
              "fixed": "8c655ffc84fe7313d0f6e390135d21103ff1e28c"
            },
            {
              "fixed": "d7e4cdb84466e40e9b7db0dc2f8316e152f3c43e"
            },
            {
              "fixed": "953612cb0115c9ba505fed7ae1621b527f65588f"
            },
            {
              "fixed": "ea4a70ff13b0f53e674807fc24cafe3ec5d868e1"
            },
            {
              "fixed": "b507828c7b6135ff7a4b69eba6e33502b4839fb9"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "3.8.0"
            },
            {
              "fixed": "5.10.276"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.227"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.12.120"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143190.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: usb: cdc_ncm: don't underflow the NDP room check\n\ncdc_ncm_ndp16() and cdc_ncm_ndp32() verify that the new NDP and the\ndatagram fit into the NTB with an unsigned subtraction:\n\n\tif ((ctx-\u003etx_curr_size - skb-\u003elen - reserve) \u003c ctx-\u003emax_ndp_size)\n\t\treturn NULL;\n\nNothing guarantees that skb-\u003elen plus the reserve stays below\ntx_curr_size, and when it does not the subtraction wraps around to a\nhuge value, the check passes, and the skb_put_zero() of max_ndp_size\nbytes that follows overruns the NTB:\n\n  skbuff: skb_over_panic: text:ffff80000db33558 len:428 put:172\n  head:ffff0000c2c66100 tail:0x1ac end:0x140\n  kernel BUG at net/core/skbuff.c:200\n  skb_put_zero include/linux/skbuff.h:2595 [inline]\n  cdc_ncm_ndp16 drivers/net/usb/cdc_ncm.c:1132 [inline]\n  cdc_ncm_fill_tx_frame+0xdf0/0x30e0 drivers/net/usb/cdc_ncm.c:1309\n\nHere tx_curr_size is 0x140 = 320, skb-\u003elen is already 256 and the\nskb_put_zero() wants another 172 bytes.\n\nTwo device controlled settings make this reachable:\n\n  - dwNtbOutMaxSize = 320 caps tx_max at 320.  The lower bound computed\n    in cdc_ncm_check_tx_max() is max_datagram_size + max_ndp_size + the\n    NTH header, but cdc_ncm_setup() clamps tx_max before\n    cdc_ncm_set_dgram_size() runs, so max_datagram_size is still 0 and\n    the bound is only max_ndp_size + the NTH header.  It does not\n    reserve room for one datagram plus one NDP.\n\n  - wNdpOutAlignment = 256 is accepted by cdc_ncm_fix_modulus() as long\n    as it is smaller than tx_max, and cdc_ncm_align_tail() then pads the\n    12 byte NTH header up to 256 bytes right before this check.\n\nAn NDP can also be added to an NTB that already holds datagrams through\ncdc_mbim_tx_fixup(), which uses a different signature per MBIM session.\nOn plain cdc_ncm the chain lookup in cdc_ncm_ndp16() returns the\nexisting NDP for the single signature, so there the create path is\nnormally reached for the first datagram of each NTB.\n\nRewrite the test as an addition, which cannot underflow and gives the\nsame answer whenever the original subtraction did not wrap.",
  "id": "CVE-2026-143190",
  "modified": "2026-12-03T10:45:24.354852264Z",
  "published": "2026-12-03T09:20:19.246Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8c655ffc84fe7313d0f6e390135d21103ff1e28c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/953612cb0115c9ba505fed7ae1621b527f65588f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b507828c7b6135ff7a4b69eba6e33502b4839fb9"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d7e4cdb84466e40e9b7db0dc2f8316e152f3c43e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/dd4c15e44dcf3920c0b744dc6d4b5038b2dd350f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ea4a70ff13b0f53e674807fc24cafe3ec5d868e1"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143190.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143190"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "net: usb: cdc_ncm: don't underflow the NDP room check"
}