usb: cdns3: Fix deadlock when using NCM gadget
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7733f6c32e36ff9d7adadf40001039bf219b1cbe · < 74cd6e408a4c010e404832f0e4609d29bf1d0c41| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: cdns3: Fix deadlock when using NCM gadget
The cdns3 driver has the same NCM deadlock as fixed in cdnsp by commit 58f2fcb3a845 ("usb: cdnsp: Fix deadlock issue during using NCM gadget").
Under PREEMPT_RT the deadlock can be readily triggered by heavy network traffic, for example using "iperf --bidir" over NCM ethernet link.
The deadlock occurs because the threaded interrupt handler gets preempted by a softirq, but both are protected by the same spinlock. Prevent deadlock by disabling softirq during threaded irq handler.
From the CVE record · Linux
The Linux kernel’s cdns3 driver can deadlock when using an NCM gadget under PREEMPT_RT. Heavy traffic over an NCM Ethernet link can trigger the deadlock. The input does not specify whether authentication or user interaction is required.
Engineers running Linux kernels with the cdns3 driver, PREEMPT_RT, and an NCM gadget should check their kernel; affected versions are not specified.