# CVE-2024-40904: USB: class: cdc-wdm: Fix CPU lockup caused by excessive log messages

> 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, NVD) `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.31% (percentile 17, 2026-11-26)
- **Published:** 2024-07-12T12:20:45.173Z
- **Modified:** 2026-06-17T07:46:49.980Z

## Who should check

- Anyone running Linux \>= 9908a32e94de2141463e104c9924279ed3509447, \< 217d1f44fff560b3995a685a60aa66e55a7f0f56; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 05b2cd6d33f700597e6f081b53c668a226a96d28; \>= 9908a32e94de2141463e104c9924279ed3509447, \< c0747d76eb05542b5d49f67069b64ef5ff732c6c; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 53250b54c92fe087fd4b0c48f85529efe1ebd879; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 02a4c0499fc3a02e992b4c69a9809912af372d94; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 72a3fe36cf9f0d030865e571f45a40f9c1e07e8a; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 82075aff7ffccb1e72b0ac8aa349e473624d857c; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 22f00812862564b314784167a89f27b444f82a46
- Anyone running Linux 2.6.28

## Description

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

USB: class: cdc-wdm: Fix CPU lockup caused by excessive log messages

The syzbot fuzzer found that the interrupt-URB completion callback in
the cdc-wdm driver was taking too long, and the driver's immediate
resubmission of interrupt URBs with -EPROTO status combined with the
dummy-hcd emulation to cause a CPU lockup:

cdc\_wdm 1-1:1.0: nonzero urb status received: -71
cdc\_wdm 1-1:1.0: wdm\_int\_callback - 0 bytes
watchdog: BUG: soft lockup - CPU\#0 stuck for 26s! \[syz-executor782:6625\]
CPU\#0 Utilization every 4s during lockup:
	\#1:  98% system,	  0% softirq,	  3% hardirq,	  0% idle
	\#2:  98% system,	  0% softirq,	  3% hardirq,	  0% idle
	\#3:  98% system,	  0% softirq,	  3% hardirq,	  0% idle
	\#4:  98% system,	  0% softirq,	  3% hardirq,	  0% idle
	\#5:  98% system,	  1% softirq,	  3% hardirq,	  0% idle
Modules linked in:
irq event stamp: 73096
hardirqs last  enabled at (73095): \[\<ffff80008037bc00\>\] console\_emit\_next\_record kernel/printk/printk.c:2935 \[inline\]
hardirqs last  enabled at (73095): \[\<ffff80008037bc00\>\] console\_flush\_all+0x650/0xb74 kernel/printk/printk.c:2994
hardirqs last disabled at (73096): \[\<ffff80008af10b00\>\] \_\_el1\_irq arch/arm64/kernel/entry-common.c:533 \[inline\]
hardirqs last disabled at (73096): \[\<ffff80008af10b00\>\] el1\_interrupt+0x24/0x68 arch/arm64/kernel/entry-common.c:551
softirqs last  enabled at (73048): \[\<ffff8000801ea530\>\] softirq\_handle\_end kernel/softirq.c:400 \[inline\]
softirqs last  enabled at (73048): \[\<ffff8000801ea530\>\] handle\_softirqs+0xa60/0xc34 kernel/softirq.c:582
softirqs last disabled at (73043): \[\<ffff800080020de8\>\] \_\_do\_softirq+0x14/0x20 kernel/softirq.c:588
CPU: 0 PID: 6625 Comm: syz-executor782 Tainted: G        W          6.10.0-rc2-syzkaller-g8867bbd4a056 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024

Testing showed that the problem did not occur if the two error
messages -- the first two lines above -- were removed; apparently adding
material to the kernel log takes a surprisingly large amount of time.

In any case, the best approach for preventing these lockups and to
avoid spamming the log with thousands of error messages per second is
to ratelimit the two dev\_err() calls.  Therefore we replace them with
dev\_err\_ratelimited().

## Affected and fixed versions

- Linux: \>= 9908a32e94de2141463e104c9924279ed3509447, \< 217d1f44fff560b3995a685a60aa66e55a7f0f56; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 05b2cd6d33f700597e6f081b53c668a226a96d28; \>= 9908a32e94de2141463e104c9924279ed3509447, \< c0747d76eb05542b5d49f67069b64ef5ff732c6c; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 53250b54c92fe087fd4b0c48f85529efe1ebd879; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 02a4c0499fc3a02e992b4c69a9809912af372d94; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 72a3fe36cf9f0d030865e571f45a40f9c1e07e8a; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 82075aff7ffccb1e72b0ac8aa349e473624d857c; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 22f00812862564b314784167a89f27b444f82a46 (cvelist)
- Linux: 2.6.28 (cvelist)

## Mitigation

- Upgrade Linux to 22f00812862564b314784167a89f27b444f82a46 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-40904.md
Affected: Linux >= 9908a32e94de2141463e104c9924279ed3509447, < 217d1f44fff560b3995a685a60aa66e55a7f0f56; >= 9908a32e94de2141463e104c9924279ed3509447, < 05b2cd6d33f700597e6f081b53c668a226a96d28; >= 9908a32e94de2141463e104c9924279ed3509447, < c0747d76eb05542b5d49f67069b64ef5ff732c6c; >= 9908a32e94de2141463e104…
Fixed in: Linux 217d1f44fff560b3995a685a60aa66e55a7f0f56, Linux 05b2cd6d33f700597e6f081b53c668a226a96d28, Linux 53250b54c92fe087fd4b0c48f85529efe1ebd879, Linux 02a4c0499fc3a02e992b4c69a9809912af372d94, Linux 72a3fe36cf9f0d030865e571f45a40f9c1e07e8a, Linux 82075aff7ffccb1e72b0ac8aa349e473624d857c, Linux 22f00…

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-2024-40904 being exploited?

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

### How serious is CVE-2024-40904?

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

### Which versions are affected by CVE-2024-40904?

Linux \>= 9908a32e94de2141463e104c9924279ed3509447, \< 217d1f44fff560b3995a685a60aa66e55a7f0f56; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 05b2cd6d33f700597e6f081b53c668a226a96d28; \>= 9908a32e94de2141463e104c9924279ed3509447, \< c0747d76eb05542b5d49f67069b64ef5ff732c6c; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 53250b54c92fe087fd4b0c48f85529efe1ebd879; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 02a4c0499fc3a02e992b4c69a9809912af372d94; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 72a3fe36cf9f0d030865e571f45a40f9c1e07e8a; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 82075aff7ffccb1e72b0ac8aa349e473624d857c; \>= 9908a32e94de2141463e104c9924279ed3509447, \< 22f00812862564b314784167a89f27b444f82a46; Linux 2.6.28.

### Is there a fix for CVE-2024-40904?

Yes. Fixed in Linux 217d1f44fff560b3995a685a60aa66e55a7f0f56, Linux 05b2cd6d33f700597e6f081b53c668a226a96d28, Linux 53250b54c92fe087fd4b0c48f85529efe1ebd879, Linux 02a4c0499fc3a02e992b4c69a9809912af372d94, Linux 72a3fe36cf9f0d030865e571f45a40f9c1e07e8a, Linux 82075aff7ffccb1e72b0ac8aa349e473624d857c, Linux 22f00812862564b314784167a89f27b444f82a46. Upgrade Linux to 22f00812862564b314784167a89f27b444f82a46 or later.

### How do I check if I'm affected by CVE-2024-40904?

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/217d1f44fff560b3995a685a60aa66e55a7f0f56>
- patch: <https://git.kernel.org/stable/c/05b2cd6d33f700597e6f081b53c668a226a96d28>
- patch: <https://git.kernel.org/stable/c/c0747d76eb05542b5d49f67069b64ef5ff732c6c>
- patch: <https://git.kernel.org/stable/c/53250b54c92fe087fd4b0c48f85529efe1ebd879>
- patch: <https://git.kernel.org/stable/c/02a4c0499fc3a02e992b4c69a9809912af372d94>
- patch: <https://git.kernel.org/stable/c/72a3fe36cf9f0d030865e571f45a40f9c1e07e8a>
- patch: <https://git.kernel.org/stable/c/82075aff7ffccb1e72b0ac8aa349e473624d857c>
- patch: <https://git.kernel.org/stable/c/22f00812862564b314784167a89f27b444f82a46>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## 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-2024-40904>

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