ALSA: serial-u16550: Check card index validity at probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9caf6b5908e1e3b10478e9201ca1be809145253f · < 7555e83d7738e65dc83921e3c85bbdc081f08f2f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: serial-u16550: Check card index validity at probe
serial-u16550 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 Linux kernel’s ALSA serial-u16550 driver does not validate a card index when probing a device. If a device is bound manually through sysfs with an out-of-range index, the driver can access parameter arrays out of bounds. This requires local interaction with the sysfs interface; the input does not specify authentication requirements.
Engineers running Linux kernels with the ALSA serial-u16550 driver should check their kernel versions; affected versions are not specified.