CVE-2024-40904 Information
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 - CPU0 stuck for 26s! [syz-executor782:6625]
CPU0 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): [
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().
Reference
https://git.kernel.org/stable/c/217d1f44fff560b3995a685a60aa66e55a7f0f56 https://git.kernel.org/stable/c/05b2cd6d33f700597e6f081b53c668a226a96d28 https://git.kernel.org/stable/c/c0747d76eb05542b5d49f67069b64ef5ff732c6c https://git.kernel.org/stable/c/53250b54c92fe087fd4b0c48f85529efe1ebd879 https://git.kernel.org/stable/c/02a4c0499fc3a02e992b4c69a9809912af372d94 https://git.kernel.org/stable/c/72a3fe36cf9f0d030865e571f45a40f9c1e07e8a https://git.kernel.org/stable/c/82075aff7ffccb1e72b0ac8aa349e473624d857c https://git.kernel.org/stable/c/22f00812862564b314784167a89f27b444f82a46
Share on: