CVE-2024-53197·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ALSA: usb-audio: Fix potential out-of-bound accesses for Extigy and Mbox devices A bogus device can provide a bNumConfigurations value that exceeds the initial value used in usb_get_configuration for allocating dev->config. This can lead to out-of-bounds accesses later, e.g. in usb_destroy_configuration.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.12.2
- Published
- 2024-12-27
Affected versions
From: 6.12
Until: 6.12.2
Fixed in: 6.12.2
How to fix this CVE
Update the Linux kernel to a patched version. If USB audio devices are not used on the server, blacklist the snd-usb-audio module. Restrict physical USB access and use USBGuard to whitelist authorized devices.
sudo apt update && sudo apt install --only-upgrade linux-image-generic
sudo reboot
# Disable USB audio if not needed:
echo 'blacklist snd-usb-audio' | sudo tee /etc/modprobe.d/blacklist-usb-audio.conf
sudo update-initramfs -uDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
Physical access attack via malicious USB audio device. The attacker connects a crafted USB device identifying as an Extigy or Mbox audio interface with a bogus bNumConfigurations value. The kernel's USB audio driver trusts this value for array indexing, causing an out-of-bounds read/write in the configuration parsing code.WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
WAF cannot mitigate physical USB attacks. Compensating controls:
- Blacklist snd-usb-audio on servers that do not need USB audio
- Deploy USBGuard with a whitelist policy
- Disable USB ports in BIOS/UEFI on headless servers
- Restrict physical access to server hardware
- Enable kernel lockdown mode where supportedHow to check if you are affected
- Check if snd-usb-audio module is loaded: lsmod | grep snd_usb_audio
- Check kernel version against distribution security advisories
- Monitor USB device events: dmesg | grep -i 'usb.*audio\|extigy\|mbox'
- Check for USBGuard: systemctl status usbguard
- List connected USB devices: lsusb -v 2>/dev/null | grep -B5 -A5 'Audio'
- Verify USB authorization policy: cat /sys/bus/usb/devices/*/authorized
Indicators of compromise
- USB audio devices appearing with unusual bNumConfigurations values in dmesg
- Kernel oops or KASAN reports in snd-usb-audio or usb_audio_probe
- Unexpected snd-usb-audio module loads on headless servers
- Physical access events correlated with kernel crashes
FAQ
Are headless servers at risk?
Only if an attacker can physically connect a USB device. Headless servers in locked data centers have minimal risk. However, servers with USB ports exposed (colocation, edge deployments) or USB-over-IP setups could be targeted.
Can this be exploited remotely?
No. Physical USB access is required to connect the malicious device. Remote exploitation is not possible unless USB-over-IP or similar technology exposes USB ports to the network.
Does this affect virtual machines?
Only if USB passthrough is configured from host to guest. Standard virtualized environments without USB device passthrough are not affected.
Why are Extigy and Mbox specifically mentioned?
The vulnerable code has special handling for these specific USB audio devices (SB Extigy and Digidesign Mbox). The special parsing code for these devices does not validate the bNumConfigurations field, while generic USB audio device handling is not affected.
Should I blacklist snd-usb-audio on all servers?
Yes, for servers that do not use USB audio devices. This eliminates the entire attack surface. Almost no server workload requires USB audio.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0b4ea4bfe16566b84645ded1403756a2dc4e0f19
- https://git.kernel.org/stable/c/379d3b9799d9da953391e973b934764f01e03960
- https://git.kernel.org/stable/c/62dc01c83fa71e10446ee4c31e0e3d5d1291e865
- https://git.kernel.org/stable/c/920a369a9f014f10ec282fd298d0666129379f1b
- https://git.kernel.org/stable/c/9887d859cd60727432a01564e8f91302d361b72b
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-53197. Free for 1 server.
Get started free