Vulnerability · Published Jul 12, 2024 · Assigned by Linux

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

Medium 5.5

In plain English

A medium-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)0.3%top 78.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9bpftool7.3.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-debug5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-debug-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-debug-devel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-debug-devel-matched5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-debug-modules5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-debug-modules-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-debug-modules-extra5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-devel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-devel-matched5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-modules5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-modules-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-modules-extra5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-abi-stablelists5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-cross-headers5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-debug5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-debug-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-debug-devel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-debug-devel-matched5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-debug-modules5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-debug-modules-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-debug-modules-extra5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-debug-uki-virt5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-devel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-devel-matched5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-doc5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-headers5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-modules5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-modules-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-modules-extra5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-rt5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-rt-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-rt-debug5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-rt-debug-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-rt-debug-devel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-rt-debug-modules5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-rt-debug-modules-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-rt-debug-modules-extra5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-rt-devel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-rt-modules5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-rt-modules-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-rt-modules-extra5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-tools5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-tools-libs5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-tools-libs-devel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-uki-virt5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-zfcpdump5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-zfcpdump-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-zfcpdump-devel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-zfcpdump-devel-matched5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-zfcpdump-modules5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-zfcpdump-modules-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-zfcpdump-modules-extra5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9libperf5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9perf5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9python3-perf5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9rtla5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9rv5.14.0-427.42.1.el9_4ALSA-2024:8617
Debian:12linux6.1.99-1DSA-5731-1
Debian:12linux6.1.99-1DEBIAN-CVE-2024-40904
Debian:13linux6.9.7-1DEBIAN-CVE-2024-40904
Debian:14linux6.9.7-1DEBIAN-CVE-2024-40904
Rocky Linux:9kernel0:5.14.0-427.42.1.el9_4RLSA-2024:8617
Ubuntu:22.04:LTSlinux5.15.0-121.131UBUNTU-CVE-2024-40904
Ubuntu:24.04:LTSlinux6.8.0-44.44UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-aws5.15.0-1069.75UBUNTU-CVE-2024-40904
Ubuntu:24.04:LTSlinux-aws6.8.0-1015.16UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-aws-6.86.8.0-1015.16~22.04.1UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-azure5.15.0-1072.81UBUNTU-CVE-2024-40904
Ubuntu:24.04:LTSlinux-azure6.8.0-1014.16UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-azure-6.5no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-azure-6.86.8.0-1014.16~22.04.1UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1072.81.1UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-gcp5.15.0-1068.76UBUNTU-CVE-2024-40904
Ubuntu:24.04:LTSlinux-gcp6.8.0-1014.16UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-gcp-6.5no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-gcp-6.86.8.0-1014.16~22.04.1UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-gke5.15.0-1066.72UBUNTU-CVE-2024-40904
Ubuntu:24.04:LTSlinux-gke6.8.0-1010.13UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1052.59UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-hwe-6.5no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-hwe-6.86.8.0-45.45~22.04.1UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-ibm5.15.0-1062.65UBUNTU-CVE-2024-40904
Ubuntu:24.04:LTSlinux-ibm6.8.0-1012.12UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-ibm-6.86.8.0-1012.12~22.04.1UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1064.70UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-kvm5.15.0-1066.71UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-121.131UBUNTU-CVE-2024-40904
Ubuntu:24.04:LTSlinux-lowlatency6.8.0-44.44.1UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.5no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.86.8.0-44.44.1~22.04.1UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1064.65UBUNTU-CVE-2024-40904
Ubuntu:24.04:LTSlinux-nvidia6.8.0-1013.14UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-nvidia-6.5no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-nvidia-6.86.8.0-1013.14~22.04.1UBUNTU-CVE-2024-40904
Ubuntu:24.04:LTSlinux-nvidia-lowlatency6.8.0-1013.14.1UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-nvidia-tegra5.15.0-1028.28UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-nvidia-tegra-igx5.15.0-1016.16UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-oem-6.5no fix listedUBUNTU-CVE-2024-40904
Ubuntu:24.04:LTSlinux-oem-6.86.8.0-1012.12UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-oracle5.15.0-1067.73UBUNTU-CVE-2024-40904
Ubuntu:24.04:LTSlinux-oracle6.8.0-1012.12UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-oracle-6.5no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-oracle-6.86.8.0-1012.12~22.04.1UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-raspi5.15.0-1062.65UBUNTU-CVE-2024-40904
Ubuntu:24.04:LTSlinux-raspi6.8.0-1011.12UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2024-40904
Ubuntu:24.04:LTSlinux-riscv6.8.0-44.44.1UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-riscv-6.5no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-riscv-6.86.8.0-44.44.1~22.04.1UBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-starfive-6.5no fix listedUBUNTU-CVE-2024-40904
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1035.39UBUNTU-CVE-2024-40904

Affected products (as reported)

VendorProductVersions
Linux Linux 9908a32e94de2141463e104c9924279ed3509447 – before 217d1f44fff560b3995a685a60aa66e55a7f0f569908a32e94de2141463e104c9924279ed3509447 – before 05b2cd6d33f700597e6f081b53c668a226a96d289908a32e94de2141463e104c9924279ed3509447 – before c0747d76eb05542b5d49f67069b64ef5ff732c6c9908a32e94de2141463e104c9924279ed3509447 – before 53250b54c92fe087fd4b0c48f85529efe1ebd8799908a32e94de2141463e104c9924279ed3509447 – before 02a4c0499fc3a02e992b4c69a9809912af372d949908a32e94de2141463e104c9924279ed3509447 – before 72a3fe36cf9f0d030865e571f45a40f9c1e07e8a9908a32e94de2141463e104c9924279ed3509447 – before 82075aff7ffccb1e72b0ac8aa349e473624d857c9908a32e94de2141463e104c9924279ed3509447 – before 22f00812862564b314784167a89f27b444f82a46
Linux Linux 2.6.28

References