Security mailing lists by PureSourceCode

CVE-2026-143190

not scored yet

net: usb: cdc_ncm: don't underflow the NDP room check

In the Linux kernel, the following vulnerability has been resolved:

net: usb: cdc_ncm: don't underflow the NDP room check

cdc_ncm_ndp16() and cdc_ncm_ndp32() verify that the new NDP and the
datagram fit into the NTB with an unsigned subtraction:

if ((ctx->tx_curr_size - skb->len - reserve) < ctx->max_ndp_size)
	return NULL;

Nothing guarantees that skb->len plus the reserve stays below
tx_curr_size, and when it does not the subtraction wraps around to a
huge value, the check passes, and the skb_put_zero() of max_ndp_size
bytes that follows overruns the NTB:

skbuff: skb_over_panic: text:ffff80000db33558 len:428 put:172
head:ffff0000c2c66100 tail:0x1ac end:0x140
kernel BUG at net/core/skbuff.c:200
skb_put_zero include/linux/skbuff.h:2595 [inline]
cdc_ncm_ndp16 drivers/net/usb/cdc_ncm.c:1132 [inline]
cdc_ncm_fill_tx_frame+0xdf0/0x30e0 drivers/net/usb/cdc_ncm.c:1309

Here tx_curr_size is 0x140 = 320, skb->len is already 256 and the
skb_put_zero() wants another 172 bytes.

Two device controlled settings make this reachable:

  • dwNtbOutMaxSize = 320 caps tx_max at 320. The lower bound computed
    in cdc_ncm_check_tx_max() is max_datagram_size + max_ndp_size + the
    NTH header, but cdc_ncm_setup() clamps tx_max before
    cdc_ncm_set_dgram_size() runs, so max_datagram_size is still 0 and
    the bound is only max_ndp_size + the NTH header. It does not
    reserve room for one datagram plus one NDP.

  • wNdpOutAlignment = 256 is accepted by cdc_ncm_fix_modulus() as long
    as it is smaller than tx_max, and cdc_ncm_align_tail() then pads the
    12 byte NTH header up to 256 bytes right before this check.

An NDP can also be added to an NTB that already holds datagrams through
cdc_mbim_tx_fixup(), which uses a different signature per MBIM session.
On plain cdc_ncm the chain lookup in cdc_ncm_ndp16() returns the
existing NDP for the single signature, so there the create path is
normally reached for the first datagram of each NTB.

Rewrite the test as an addition, which cannot underflow and gives the
same answer whenever the original subtraction did not wrap.

Published
3 Dec 2026
Last modified
3 Dec 2026
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Received
Sources
NVDJSONCVE ListJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Linux Linux >= c78b7c58665748aa775e86e0e49798b9f34a1dc9, < dd4c15e44dcf3920c0b744dc6d4b5038b2dd350f; >= c78b7c58665748aa775e86e0e49798b9f34a1dc9, < 8c655ffc84fe7313d0f6e390135d21103ff1e28c; >= c78b7c58665748aa775e86e0e49798b9f34a1dc9, < d7e4cdb84466e40e9b7db0dc2f8316e152f3c43e; >= c78b7c58665748aa775e86e0e49798b9f34a1dc9, < 953612cb0115c9ba505fed7ae1621b527f65588f; >= c78b7c58665748aa775e86e0e49798b9f34a1dc9, < ea4a70ff13b0f53e674807fc24cafe3ec5d868e1; >= c78b7c58665748aa775e86e0e49798b9f34a1dc9, < b507828c7b6135ff7a4b69eba6e33502b4839fb9 dd4c15e44dcf3920c0b744dc6d4b5038b2dd350f, 8c655ffc84fe7313d0f6e390135d21103ff1e28c, d7e4cdb84466e40e9b7db0dc2f8316e152f3c43e, 953612cb0115c9ba505fed7ae1621b527f65588f, ea4a70ff13b0f53e674807fc24cafe3ec5d868e1, b507828c7b6135ff7a4b69eba6e33502b4839fb9
CVE List Linux Linux = 3.8

References

History

  • 3 Dec 2026 11:07 UTC · NVD: first stored (published 3 Dec 2026)
  • 3 Dec 2026 10:08 UTC · CVE List: first stored (published 3 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.