Executive brief
A vulnerability exists in the Linux kernel driver for certain Atheros USB wireless adapters. If a specially crafted or malicious USB device is connected to the system, it can trigger a kernel warning or crash by providing unexpected communication endpoints. This primarily impacts the availability of the system, potentially leading to a denial-of-service.
Technical details
The vulnerability is a missing check for USB endpoint types in the ar5523 Wi-Fi driver (drivers/net/wireless/ath/ar5523/ar5523.c). During the probe phase, the driver attempts to submit USB Request Blocks (URBs) to endpoints without verifying that the endpoints match the expected bulk transfer type. An attacker with the ability to connect a malicious USB device can trigger a 'BOGUS urb xfer' warning in the USB core (usb_submit_urb), potentially leading to a kernel panic or denial-of-service. The fix involves implementing proper endpoint verification using usb_check_bulk_endpoints() during the ar5523_probe function.
Affected products
- Linux Linux Kernel 3.8 to 4.19.316, 4.20 to 5.4.278, 5.5 to 5.10.219, 5.11 to 5.15.161, 5.16 to 6.1.93, 6.2 to 6.6.33, 6.7 to 6.8.12, 6.9 to 6.9.3
Timeline
- 2024-04-08: patched: Initial patch submitted by Nikita Zhandarovich
- 2024-06-19: advisory: CVE-2024-38565 published
References
- https://git.kernel.org/stable/c/34f7ebff1b9699e0b89fa58b693bc098c2f5ec72
- https://git.kernel.org/stable/c/68a5a00c5d38978a3f8460c6f182f7beec8688ff
- https://git.kernel.org/stable/c/79ddf5f2020fd593d50f1363bb5131283d74f78f
- https://git.kernel.org/stable/c/7bbf76c9bb2c58375e183074e44f9712483f0603
- https://git.kernel.org/stable/c/b33a81e4ecfb022b028cae37d1c1ce28ac1b359d
- https://git.kernel.org/stable/c/b4c24de37a6bb383394a6fef2b85a6db41d426f5
- https://git.kernel.org/stable/c/beeed260b92af158592f5e8d2dab65dae45c6f70