CVE-2026-139184: net: usb: cdc_ncm: don't enable BHs in tx_fixup under netpoll
In the Linux kernel, the following vulnerability has been resolved:
net: usb: cdcncm: don't enable BHs in txfixup under netpoll
netpoll holds the txq lock and calls ndostartxmit() with IRQs off but BHs on. The spinunlockbh() in cdcncmtxfixup() then runs pending softirqs. If one of them transmits, it spins on the txq lock that netpoll holds. With netconsole on a cdcncm device this ends in a soft or hard lockup.
Every caller of cdcncmtxfixup() holds the txq lock with BHs or IRQs off, so the softirq user of ctx->mtx cannot interrupt it. Use plain spinlock().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In Linux kernel cdc_ncm_tx_fixup(), use plain spin_lock() instead of spin_lock_bh() so the function does not enable BHs under netpoll.
Event History
Frequently Asked Questions
Which deployments are most likely to encounter this issue?
Systems using a CDC NCM USB network device with netpoll are exposed. The described lockup occurs specifically when netconsole is configured on that CDC NCM device.
What conditions trigger the lockup?
Netpoll calls the transmit path while holding the transmit-queue lock with interrupts disabled. The affected code enables bottom halves during transmit fixup, allowing a pending softirq to attempt transmission and spin on the lock already held by netpoll.
What is the practical impact?
A triggered condition can cause a soft or hard lockup, potentially making the affected system unresponsive.