CVE-2026-80812: ALSA: dummy: Check card index validity at probe
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-80812 to this issue.
Affected and fixed versions
===========================
Fixed in 5.15.218 with commit b7579e86afcec932e169d10e2d603abed8dd2fdf Fixed in 6.1.185 with commit 4d0892a90b57f0e89b274c3f3c51c2fa17937c88 Fixed in 6.6.154 with commit b20eb7ecbdaa3e649023fe41b177d90983ffb487 Fixed in 6.12.106 with commit c9f10a001c243d1f069ebb0e2f4999ad4043a254 Fixed in 6.18.47 with commit f20c2c32ec1c5c3526f29a03b487c55a5890996c Fixed in 7.1.11 with commit 3dba0e92e18980cb5a4d70a9a263539ae4f0c7ec Fixed in 7.2.1 with commit 690b721b9595f9a43395fd4047a832c42b5b6078 Fixed in 7.3-rc1 with commit 02442d5fe8ee365a084b055d4fa81a0c1abfc3fd
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-80812
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
sound/drivers/dummy.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/b7579e86afcec932e169d10e2d603abed8dd2fdf https://git.kernel.org/stable/c/4d0892a90b57f0e89b274c3f3c51c2fa17937c88 https://git.kernel.org/stable/c/b20eb7ecbdaa3e649023fe41b177d90983ffb487 https://git.kernel.org/stable/c/c9f10a001c243d1f069ebb0e2f4999ad4043a254 https://git.kernel.org/stable/c/f20c2c32ec1c5c3526f29a03b487c55a5890996c https://git.kernel.org/stable/c/3dba0e92e18980cb5a4d70a9a263539ae4f0c7ec https://git.kernel.org/stable/c/690b721b9595f9a43395fd4047a832c42b5b6078 https://git.kernel.org/stable/c/02442d5fe8ee365a084b055d4fa81a0c1abfc3fd