CVE-2026-74295: ASoC: codecs: hdac_hdmi: Validate written enum value
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ASoC: codecs: hdac_hdmi: Validate written enum value
hdac_hdmi_set_pin_port_mux() uses the written enum value to index the texts array before calling snd_soc_dapm_put_enum_double(), which validates that the value is within the enum item range.
An out-of-range value can therefore make the driver read past the texts array before the helper rejects the write. Move the lookup after the helper has accepted the value.
The Linux kernel CVE team has assigned CVE-2026-74295 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.6 with commit 4a3478debf36c0aa0cf0860daec245b13cd4448f and fixed in 5.15.212 with commit 216336418c007c4b44c650acf2fd3d2de5bb81e8 Issue introduced in 4.6 with commit 4a3478debf36c0aa0cf0860daec245b13cd4448f and fixed in 6.1.178 with commit bc464a6a9e352daa17b1636c090cf3185710b9a0 Issue introduced in 4.6 with commit 4a3478debf36c0aa0cf0860daec245b13cd4448f and fixed in 6.6.145 with commit 8cbf24714d6b3f553fc959632c9781176a73a9a7 Issue introduced in 4.6 with commit 4a3478debf36c0aa0cf0860daec245b13cd4448f and fixed in 6.12.97 with commit 7f02e9064b6f84e7f93c72f134306271eb4f7de4 Issue introduced in 4.6 with commit 4a3478debf36c0aa0cf0860daec245b13cd4448f and fixed in 6.18.40 with commit 9131e4b023e0db5764680034bdc94aeae0b0f33d Issue introduced in 4.6 with commit 4a3478debf36c0aa0cf0860daec245b13cd4448f and fixed in 7.1.5 with commit d8961b5c7889b6ecc00f1409d36826df1665df27 Issue introduced in 4.6 with commit 4a3478debf36c0aa0cf0860daec245b13cd4448f and fixed in 7.2-rc1 with commit 0b08baeccdcf52fad328ad645f5b4fbee04eea34
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-74295
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/soc/codecs/hdac_hdmi.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/216336418c007c4b44c650acf2fd3d2de5bb81e8 https://git.kernel.org/stable/c/bc464a6a9e352daa17b1636c090cf3185710b9a0 https://git.kernel.org/stable/c/8cbf24714d6b3f553fc959632c9781176a73a9a7 https://git.kernel.org/stable/c/7f02e9064b6f84e7f93c72f134306271eb4f7de4 https://git.kernel.org/stable/c/9131e4b023e0db5764680034bdc94aeae0b0f33d https://git.kernel.org/stable/c/d8961b5c7889b6ecc00f1409d36826df1665df27 https://git.kernel.org/stable/c/0b08baeccdcf52fad328ad645f5b4fbee04eea34