漏洞标题
USB:CDNS3:在使用NCM外设时修复死锁问题
漏洞描述信息
## 概述
在Linux内核中,`cdns3` 驱动中的一个死锁问题已得到解决。该问题与 `cdnsp` 驱动中已修复的相同问题类似,特别是在使用NCM gadget时容易发生死锁。
## 细节
死锁发生在中断处理程序被软中断抢占时,两者都受到同一自旋锁的保护。通过在中断处理程序中禁用软中断来防止死锁。
## 影响
此问题在PREEMPT_RT内核中更为明显,特别是在使用NCM以太网连接时,通过“iperf --bidir” 等网络流量密集型操作容易触发死锁。
CVSS信息
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
漏洞类别
加锁机制不恰当
漏洞标题
usb: cdns3: Fix deadlock when using NCM gadget
漏洞描述信息
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.
CVSS信息
N/A
漏洞类别
N/A