VDB

CVE-2024-40904

CVE-2024-40904 PUBLISHED

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

Reported by linux · Published July 12, 2024

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().

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-tools-develAmazon Linux6.1.96-102.177.amzn2023, 4.14.350-266.564.amzn2
bpftoolAmazon Linux6.1.96-102.177.amzn2023
kernel-headersAmazon Linux6.1.96-102.177.amzn2023, 4.14.350-266.564.amzn2
kernel-livepatch-4.14.350-266.564Amazon Linux1.0-0.amzn2
kernel-libbpf-develAmazon Linux6.1.96-102.177.amzn2023
kernelAmazon Linux4.14.350-266.564.amzn2
python3-perfAmazon Linux6.1.96-102.177.amzn2023
linux_kernellinux6.9.6, 6.6.35, 6.1.95, 5.15.162, 5.10.221, 5.4.279, 4.19.317

Affected products

VendorProductVersions
LinuxLinux9908a32e94de2141463e104c9924279ed3509447, 9908a32e94de2141463e104c9924279ed3509447, 9908a32e94de2141463e104c9924279ed3509447
LinuxLinux2.6.28, 0, 4.19.317
amazon:2023kernel-tools-devel0
amazon:2023bpftool0
amazon:2kernel-headers0
amazon:2023kernel-headers0
amazon:2kernel-livepatch-4.14.350-266.5640
amazon:2023kernel-libbpf-devel0
amazon:2kernel0
amazon:2023python3-perf0
amazon:2kernel-tools-devel0
linuxlinux_kernel2.6.28, 2.6.28, 2.6.28
amazon:2perf0
amazon:2kernel-tools0
amazon:2kernel-devel0
amazon:2023kernel-livepatch-6.1.96-102.1770
LinuxLinux6.10, 2.6.28, 0
amazon:2023kernel0
amazon:2023kernel-tools0
amazon:2023kernel-modules-extra0

…and 6 more

Timeline

  • Jul 12, 2024 CVE Published
  • Jul 13, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (10 in total, the first dated here)
  • Jan 7, 2026 Security Advisory (281 in total, the first dated here)
  • Jan 7, 2026 CVE Updated
  • Apr 2, 2026 Distribution Patch (184 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-40904
vulnetix vdb fixes CVE-2024-40904

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-40904/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›