ALSA: virmidi: Check card index validity at probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 3564fbb880f9a62ddbb81b7440c32e0e6619c52d · < f48c5f3b03afdb795e5f448a1d53d912d5b09f2e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: virmidi: Check card index validity at probe
virmidi driver blindly trusts that the given devptr->id value is within the proper card index range at probe. 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 ALSA virmidi driver does not validate the card index when a device is bound manually through sysfs. An out-of-range value can cause out-of-bounds access; the input does not specify the permissions needed to perform the binding.
Engineers running Linux kernels with the ALSA virmidi driver should check their versions; affected versions are not specified.