CVE-2026-31776: ALSA: ctxfi: Fix missing SPDIFI1 index handling
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ALSA: ctxfi: Fix missing SPDIFI1 index handling
SPDIF1 DAIO type isn't properly handled in daio_device_index() for hw20k2, and it returned -EINVAL, which ended up with the out-of-bounds array access. Follow the hw20k1 pattern and return the proper index for this type, too.
The Linux kernel CVE team has assigned CVE-2026-31776 to this issue.
Affected and fixed versions
===========================
Fixed in 5.10.253 with commit a3b0e5f84058a9c3d0542a71c2b3a7801e4ee26a Fixed in 5.15.203 with commit 28222e13666b5d26bf66563c056069ed32f87b33 Fixed in 6.1.168 with commit 5b39985303a639b159dea306a032c08ef22f029d Fixed in 6.6.134 with commit c8859675f1cf92fe2eb25ef525440702140a0b55 Fixed in 6.12.81 with commit a0b45bdfffce9894b39392d061c14fda24de8b67 Fixed in 6.18.22 with commit 57698f184e1afbe054b3cd30e2c43a67c11d7f5e Fixed in 6.19.12 with commit 950decf59d4e978b60a792ce0b3e1555a608f489 Fixed in 7.0 with commit b045ab3dff97edae6d538eeff900a34c098761f8
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-31776
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/pci/ctxfi/ctdaio.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/a3b0e5f84058a9c3d0542a71c2b3a7801e4ee26a https://git.kernel.org/stable/c/28222e13666b5d26bf66563c056069ed32f87b33 https://git.kernel.org/stable/c/5b39985303a639b159dea306a032c08ef22f029d https://git.kernel.org/stable/c/c8859675f1cf92fe2eb25ef525440702140a0b55 https://git.kernel.org/stable/c/a0b45bdfffce9894b39392d061c14fda24de8b67 https://git.kernel.org/stable/c/57698f184e1afbe054b3cd30e2c43a67c11d7f5e https://git.kernel.org/stable/c/950decf59d4e978b60a792ce0b3e1555a608f489 https://git.kernel.org/stable/c/b045ab3dff97edae6d538eeff900a34c098761f8