PT-2026-167048
CVE-2026-143190
·
تاريخ النشر
2026-12-03
·
تاريخ التحديث
2026-12-03
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
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.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾