Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 3564fbb880f9a62ddbb81b7440c32e0e6619c52d before 3ee9cea821730805f232f1e4db0f95e7420477fc; affected 3564fbb880f9a62ddbb81b7440c32e0e6619c52d before ffefee7daf2362f534097422bb7f8894e798adfd; affected 3564fbb880f9a62ddbb81b7440c32e0e6619c52d before 368c521503e38e9bcfcf04c053eb1f85d22391b2; affected 3564fbb880f9a62ddbb81b7440c32e0e6619c52d before 43f161c53279adac0517cf1c443e531e738b54ce; affected 3564fbb880f9a62ddbb81b7440c32e0e6619c52d before 40ee4224e2fe24c05b92e4d37476adb6e83f10e9; affected 3564fbb880f9a62ddbb81b7440c32e0e6619c52d before f48c5f3b03afdb795e5f448a1d53d912d5b09f2e; affected 3564fbb880f9a62ddbb81b7440c32e0e6619c52d before b65d5182ecd6b7a24a83d980a0d06e809ef876c5 |
| Linux / Linux | affected 2.6.16; unaffected 0 before 2.6.16; unaffected 5.15.221 through 5.15.*; unaffected 6.1.188 through 6.1.*; unaffected 6.6.157 through 6.6.*; unaffected 6.12.109 through 6.12.*; unaffected 6.18.50 through 6.18.*; unaffected 7.2.4 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/3ee9cea821730805f232f1e4db0f95e7420477fc
- https://git.kernel.org/stable/c/ffefee7daf2362f534097422bb7f8894e798adfd
- https://git.kernel.org/stable/c/368c521503e38e9bcfcf04c053eb1f85d22391b2
- https://git.kernel.org/stable/c/43f161c53279adac0517cf1c443e531e738b54ce
- https://git.kernel.org/stable/c/40ee4224e2fe24c05b92e4d37476adb6e83f10e9
- https://git.kernel.org/stable/c/f48c5f3b03afdb795e5f448a1d53d912d5b09f2e
- https://git.kernel.org/stable/c/b65d5182ecd6b7a24a83d980a0d06e809ef876c5