CVE-2024-40904: Linux kernel · USB: class: cdc-wdm: Fix CPU lockup caused by excessive log messages
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 5.5 Medium · fixed in 5.4.0-1132.142~18.04.1 : update Linux kernel when convenient.
Data as of 28 Oct 2026, 11:02 UTC
- Patch
- Available – fixed in 5.4.0-1132.142~18.04.1, 5.4.0-1137.144~18.04.1, 5.4.0-1136.145~18.04.1 +71
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 12 Jul 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
- ubuntu.com/security/notices/USN-6999-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7003-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7003-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7004-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7005-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7006-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7003-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7007-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7008-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7005-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7009-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7019-1 (opens in a new tab)
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlinuxpkg:deb/ubuntu/linux?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-gkepkg:deb/ubuntu/linux-gke?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-ibmpkg:deb/ubuntu/linux-ibm?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and has been released in multiple Linux kernel versions, including several 5.4.x and 5.15.x releases. Users should update to these fixed kernel versions to remediate the vulnerability. The fix involves ratelimiting error log messages in the CDC-WDM driver to prevent CPU lockups. No additional mitigation is required if the system is updated.
Description
CVE-2024-40904 is a vulnerability in the Linux kernel's USB CDC-WDM driver where excessive logging in the interrupt URB completion callback can cause a CPU lockup. The issue arises from the driver repeatedly resubmitting interrupt URBs with an error status, leading to a soft lockup due to excessive log message processing. The problem is mitigated by ratelimiting the error log messages to prevent CPU resource exhaustion.
References
- ubuntu.com/security/CVE-2024-40904 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-40904 (opens in a new tab)
- git.kernel.org/linus/22f00812862564b314784167a89f27b444f82a46 (opens in a new tab)
- git.kernel.org/stable/c/217d1f44fff560b3995a685a60aa66e55a7f0f56 (opens in a new tab)
- git.kernel.org/stable/c/05b2cd6d33f700597e6f081b53c668a226a96d28 (opens in a new tab)
- git.kernel.org/stable/c/c0747d76eb05542b5d49f67069b64ef5ff732c6c (opens in a new tab)
- git.kernel.org/stable/c/53250b54c92fe087fd4b0c48f85529efe1ebd879 (opens in a new tab)
- git.kernel.org/stable/c/02a4c0499fc3a02e992b4c69a9809912af372d94 (opens in a new tab)
- git.kernel.org/stable/c/72a3fe36cf9f0d030865e571f45a40f9c1e07e8a (opens in a new tab)
- git.kernel.org/stable/c/82075aff7ffccb1e72b0ac8aa349e473624d857c (opens in a new tab)
- git.kernel.org/stable/c/22f00812862564b314784167a89f27b444f82a46 (opens in a new tab)
- ubuntu.com/security/notices/USN-6999-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7003-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7003-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7004-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7005-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7006-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7003-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7007-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7008-1 (opens in a new tab)