CVE-2026-143190: net: usb: cdc_ncm: don't underflow the NDP room check

Published Dec 3, 2026
·
Updated

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

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

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

if ((ctx->txcurrsize - skb->len - reserve) < ctx->maxndpsize) return NULL;

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

skbuff: skboverpanic: text:ffff80000db33558 len:428 put:172 head:ffff0000c2c66100 tail:0x1ac end:0x140 kernel BUG at net/core/skbuff.c:200 skbputzero include/linux/skbuff.h:2595 [inline] cdcncmndp16 drivers/net/usb/cdcncm.c:1132 [inline] cdcncmfilltxframe+0xdf0/0x30e0 drivers/net/usb/cdcncm.c:1309

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

Two device controlled settings make this reachable:

- dwNtbOutMaxSize = 320 caps txmax at 320. The lower bound computed in cdcncmchecktxmax() is maxdatagramsize + maxndpsize + the NTH header, but cdcncmsetup() clamps txmax before cdcncmsetdgramsize() runs, so maxdatagramsize is still 0 and the bound is only maxndpsize + the NTH header. It does not reserve room for one datagram plus one NDP.

- wNdpOutAlignment = 256 is accepted by cdcncmfixmodulus() as long as it is smaller than txmax, and cdcncmaligntail() 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 cdcmbimtxfixup(), which uses a different signature per MBIM session. On plain cdcncm the chain lookup in cdcncmndp16() 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.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In cdc_ncm_ndp16() and cdc_ncm_ndp32(), rewrite the NDP-room check as an addition rather than subtracting skb->len and reserve from tx_curr_size, to prevent unsigned underflow.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:20 AM
Data Sourced
via MITRE·09:20 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Linux systems using the USB CDC NCM network driver are exposed when communicating with a device that supplies the affected device-controlled transmission parameters. The vulnerable paths are cdc_ncm_ndp16() and cdc_ncm_ndp32().

2

What does an attacker need to control to trigger the flaw?

The attacker needs control of a CDC NCM USB device's advertised settings. One documented setting is dwNtbOutMaxSize set to 320, which can cap tx_max at 320; the description also identifies a second device-controlled setting as required for reachability.

3

How might an affected system manifest the problem?

The condition can cause skb_put_zero() to overrun the NTB buffer and trigger an skbuff skb_over_panic or kernel BUG. The reported stack includes cdc_ncm_ndp16(), cdc_ncm_fill_tx_frame(), and skb_put_zero().

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203