# CVE-2021-47271: usb: cdnsp: Fix deadlock issue in cdnsp\_thread\_irq\_handler

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-05-21T14:20:00.703Z
- **Modified:** 2026-06-17T04:17:04.120Z

## Who should check

- Anyone running Linux \>= 3d82904559f4f5a2622db1b21de3edf2eded7664, \< ae746b6f4ce619cf4032fd798a232b010907a397; \>= 3d82904559f4f5a2622db1b21de3edf2eded7664, \< a9aecef198faae3240921b707bc09b602e966fce
- Anyone running Linux 5.12

## Description

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

usb: cdnsp: Fix deadlock issue in cdnsp\_thread\_irq\_handler

Patch fixes the following critical issue caused by deadlock which has been
detected during testing NCM class:

smp: csd: Detected non-responsive CSD lock (\#1) on CPU\#0
smp:     csd: CSD lock (\#1) unresponsive.
....
RIP: 0010:native\_queued\_spin\_lock\_slowpath+0x61/0x1d0
RSP: 0018:ffffbc494011cde0 EFLAGS: 00000002
RAX: 0000000000000101 RBX: ffff9ee8116b4a68 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff9ee8116b4658
RBP: ffffbc494011cde0 R08: 0000000000000001 R09: 0000000000000000
R10: ffff9ee8116b4670 R11: 0000000000000000 R12: ffff9ee8116b4658
R13: ffff9ee8116b4670 R14: 0000000000000246 R15: ffff9ee8116b4658
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7bcc41a830 CR3: 000000007a612003 CR4: 00000000001706e0
Call Trace:
 \<IRQ\>
 do\_raw\_spin\_lock+0xc0/0xd0
 \_raw\_spin\_lock\_irqsave+0x95/0xa0
 cdnsp\_gadget\_ep\_queue.cold+0x88/0x107 \[cdnsp\_udc\_pci\]
 usb\_ep\_queue+0x35/0x110
 eth\_start\_xmit+0x220/0x3d0 \[u\_ether\]
 ncm\_tx\_timeout+0x34/0x40 \[usb\_f\_ncm\]
 ? ncm\_free\_inst+0x50/0x50 \[usb\_f\_ncm\]
 \_\_hrtimer\_run\_queues+0xac/0x440
 hrtimer\_run\_softirq+0x8c/0xb0
 \_\_do\_softirq+0xcf/0x428
 asm\_call\_irq\_on\_stack+0x12/0x20
 \</IRQ\>
 do\_softirq\_own\_stack+0x61/0x70
 irq\_exit\_rcu+0xc1/0xd0
 sysvec\_apic\_timer\_interrupt+0x52/0xb0
 asm\_sysvec\_apic\_timer\_interrupt+0x12/0x20
RIP: 0010:do\_raw\_spin\_trylock+0x18/0x40
RSP: 0018:ffffbc494138bda8 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff9ee8116b4658 RCX: 0000000000000000
RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffff9ee8116b4658
RBP: ffffbc494138bda8 R08: 0000000000000001 R09: 0000000000000000
R10: ffff9ee8116b4670 R11: 0000000000000000 R12: ffff9ee8116b4658
R13: ffff9ee8116b4670 R14: ffff9ee7b5c73d80 R15: ffff9ee8116b4000
 \_raw\_spin\_lock+0x3d/0x70
 ? cdnsp\_thread\_irq\_handler.cold+0x32/0x112c \[cdnsp\_udc\_pci\]
 cdnsp\_thread\_irq\_handler.cold+0x32/0x112c \[cdnsp\_udc\_pci\]
 ? cdnsp\_remove\_request+0x1f0/0x1f0 \[cdnsp\_udc\_pci\]
 ? cdnsp\_thread\_irq\_handler+0x5/0xa0 \[cdnsp\_udc\_pci\]
 ? irq\_thread+0xa0/0x1c0
 irq\_thread\_fn+0x28/0x60
 irq\_thread+0x105/0x1c0
 ? \_\_kthread\_parkme+0x42/0x90
 ? irq\_forced\_thread\_fn+0x90/0x90
 ? wake\_threads\_waitq+0x30/0x30
 ? irq\_thread\_check\_affinity+0xe0/0xe0
 kthread+0x12a/0x160
 ? kthread\_park+0x90/0x90
 ret\_from\_fork+0x22/0x30

The root cause of issue is spin\_lock/spin\_unlock instruction instead
spin\_lock\_irqsave/spin\_lock\_irqrestore in cdnsp\_thread\_irq\_handler
function.

## Affected and fixed versions

- Linux: \>= 3d82904559f4f5a2622db1b21de3edf2eded7664, \< ae746b6f4ce619cf4032fd798a232b010907a397; \>= 3d82904559f4f5a2622db1b21de3edf2eded7664, \< a9aecef198faae3240921b707bc09b602e966fce (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47271. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47271.md
Affected: Linux >= 3d82904559f4f5a2622db1b21de3edf2eded7664, < ae746b6f4ce619cf4032fd798a232b010907a397; >= 3d82904559f4f5a2622db1b21de3edf2eded7664, < a9aecef198faae3240921b707bc09b602e966fce; Linux 5.12
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47271 being exploited?

There is no confirmed exploitation: CVE-2021-47271 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47271?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47271?

Linux \>= 3d82904559f4f5a2622db1b21de3edf2eded7664, \< ae746b6f4ce619cf4032fd798a232b010907a397; \>= 3d82904559f4f5a2622db1b21de3edf2eded7664, \< a9aecef198faae3240921b707bc09b602e966fce; Linux 5.12.

### Is there a fix for CVE-2021-47271?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-47271?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/ae746b6f4ce619cf4032fd798a232b010907a397>
- patch: <https://git.kernel.org/stable/c/a9aecef198faae3240921b707bc09b602e966fce>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47271>

HTML: <https://flawdb.com/CVE-2021-47271> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47271>
