Skip to contentSkip to conversation

CVE-2026-31775: ALSA: ctxfi: Don't enumerate SPDIF1 at DAIO initialization

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

ALSA: ctxfi: Don't enumerate SPDIF1 at DAIO initialization

The recent refactoring of xfi driver changed the assignment of atc->daios[] at atc_get_resources(); now it loops over all enum DAIOTYP entries while it looped formerly only a part of them. The problem is that the last entry, SPDIF1, is a special type that is used only for hw20k1 CTSB073X model (as a replacement of SPDIFIO), and there is no corresponding definition for hw20k2. Due to the lack of the info, it caused a kernel crash on hw20k2, which was already worked around by the commit b045ab3dff97 ("ALSA: ctxfi: Fix missing SPDIFI1 index handling").

This patch addresses the root cause of the regression above properly, simply by skipping the incorrect SPDIF1 type in the parser loop.

For making the change clearer, the code is slightly arranged, too.

The Linux kernel CVE team has assigned CVE-2026-31775 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.19 with commit a2dbaeb5c61ef110ceefe0d48fe94d428d3bcf16 and fixed in 6.19.12 with commit a79c4c42057818bd9de45d2627464b4f0e02196a
	Issue introduced in 6.19 with commit a2dbaeb5c61ef110ceefe0d48fe94d428d3bcf16 and fixed in 7.0 with commit 75dc1980cf48826287e43dc7a49e310c6691f97e

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-31775

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/ctatc.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/a79c4c42057818bd9de45d2627464b4f0e02196a
	https://git.kernel.org/stable/c/75dc1980cf48826287e43dc7a49e310c6691f97e