CVE-2026-80964: ALSA: virmidi: Check card index validity at probe
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-80964 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.109 with commit 43f161c53279adac0517cf1c443e531e738b54ce Fixed in 6.18.50 with commit 40ee4224e2fe24c05b92e4d37476adb6e83f10e9 Fixed in 7.2.4 with commit f48c5f3b03afdb795e5f448a1d53d912d5b09f2e Fixed in 7.3-rc1 with commit b65d5182ecd6b7a24a83d980a0d06e809ef876c5
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-80964
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/virmidi.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/43f161c53279adac0517cf1c443e531e738b54ce https://git.kernel.org/stable/c/40ee4224e2fe24c05b92e4d37476adb6e83f10e9 https://git.kernel.org/stable/c/f48c5f3b03afdb795e5f448a1d53d912d5b09f2e https://git.kernel.org/stable/c/b65d5182ecd6b7a24a83d980a0d06e809ef876c5