CVE-2026-64243: ASoC: codecs: simple-mux: Fix enum control bounds check

Greg Kroah-Hartman <[email protected]> Fri, 24 Jul 2026 17:27:50 +0200
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026072442-CVE-2026-64243-3088@gregkh>
From: Greg Kroah-Hartman <[email protected]>

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

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

ASoC: codecs: simple-mux: Fix enum control bounds check

simple_mux_control_put() rejects values greater than e->items, but
enum control values are zero based. For the two-entry mux used by this
driver, valid values are 0 and 1, so value 2 must be rejected as well.

Accepting e->items can store an invalid mux state, pass it to the GPIO
setter, and pass it on to the DAPM mux update path where it is used as
an index into the enum text array.

Use the same >= e->items check used by the ASoC enum helpers.

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


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

	Issue introduced in 5.11 with commit 342fbb7578d1741ff646d7b08e14e8753267b9fa and fixed in 5.15.210 with commit 6fb653b62f169f6050fac45b56bf21ad097e19f6
	Issue introduced in 5.11 with commit 342fbb7578d1741ff646d7b08e14e8753267b9fa and fixed in 6.1.176 with commit d8cc3e747b002a8b965c529de79c0654675b9a1a
	Issue introduced in 5.11 with commit 342fbb7578d1741ff646d7b08e14e8753267b9fa and fixed in 6.6.143 with commit 5fe860af8630cf7c78523cbd68e5a234743585aa
	Issue introduced in 5.11 with commit 342fbb7578d1741ff646d7b08e14e8753267b9fa and fixed in 6.12.93 with commit 2ff3ac6f7664fe5639cad01712ac5e021fa7939c
	Issue introduced in 5.11 with commit 342fbb7578d1741ff646d7b08e14e8753267b9fa and fixed in 6.18.35 with commit 164dcbec9632ca93ae313e6da6e4e05584fa0f02
	Issue introduced in 5.11 with commit 342fbb7578d1741ff646d7b08e14e8753267b9fa and fixed in 7.0.12 with commit 05ef77f02607a3dc5d7f9762cb990f76843315d4
	Issue introduced in 5.11 with commit 342fbb7578d1741ff646d7b08e14e8753267b9fa and fixed in 7.1 with commit f63ad68e18d774a5d15cd7e405ead63f6b322679

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-64243
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/simple-mux.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/6fb653b62f169f6050fac45b56bf21ad097e19f6
	https://git.kernel.org/stable/c/d8cc3e747b002a8b965c529de79c0654675b9a1a
	https://git.kernel.org/stable/c/5fe860af8630cf7c78523cbd68e5a234743585aa
	https://git.kernel.org/stable/c/2ff3ac6f7664fe5639cad01712ac5e021fa7939c
	https://git.kernel.org/stable/c/164dcbec9632ca93ae313e6da6e4e05584fa0f02
	https://git.kernel.org/stable/c/05ef77f02607a3dc5d7f9762cb990f76843315d4
	https://git.kernel.org/stable/c/f63ad68e18d774a5d15cd7e405ead63f6b322679