ALSA: usb-audio: Fix NULL pointer deference in try_to_register_card
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 39efc9c8a973ddff5918191525d1679d0fb368ea · < 28412b489b088fb88dff488305fd4e56bd47f6e4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: usb-audio: Fix NULL pointer deference in try_to_register_card
In try_to_register_card(), the return value of usb_ifnum_to_if() is passed directly to usb_interface_claimed() without a NULL check, which will lead to a NULL pointer dereference when creating an invalid USB audio device. Fix this by adding a check to ensure the interface pointer is valid before passing it to usb_interface_claimed().
From the CVE record · Linux
The Linux kernel’s ALSA USB audio code passes an unchecked interface pointer to usb_interface_claimed(). Creating an invalid USB audio device can trigger a NULL pointer dereference. The input does not specify an attacker access requirement or whether user interaction is needed.
Engineers running Linux kernels with ALSA USB audio should check their exposure; affected versions are not specified.