ALSA: dummy: Check card index validity at probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6e65c1cc4458b2784224759b6137a50d4f65e610 · < 3dba0e92e18980cb5a4d70a9a263539ae4f0c7ec| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: dummy: Check card index validity at probe
snd_dummy_probe() blindly trusts that the given devptr->id value is within the proper card index range. It's OK for the devices the driver itself creates at the module probe time, but if the device is bound manually via sysfs interface, this could be -1 as "none", and this leads to OOB access for index[] and other parameters.
Add a sanity check for the card index and warn/correct it if it's a value out of the range.
From the CVE record · Linux
The Linux kernel ALSA dummy driver does not validate the card index during probe. If a device is manually bound through sysfs with an out-of-range index, it can access parameter arrays out of bounds. This requires local interaction with the sysfs binding interface; the input does not specify authentication requirements.
Engineers running Linux systems with the ALSA dummy driver should check their kernel versions; affected versions were not provided.