CVE-2026-72415: ASoC: SDCA: Validate written enum value in ge_put_enum_double()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ASoC: SDCA: Validate written enum value in ge_put_enum_double()
ge_put_enum_double() passes the user-supplied enumeration index item[0] to snd_soc_enum_item_to_val() without checking it against the number of items in the enum:
ret = snd_soc_enum_item_to_val(e, item[0]);
snd_soc_enum_item_to_val() indexes the heap-allocated e->values[] array with that index (e->values is set from a devm_kcalloc() of e->items entries), so a control write with an out-of-range item[0] reads past the end of the values buffer. The bounds check in snd_soc_dapm_put_enum_double() only runs afterwards, so it does not prevent the read here.
Reject an out-of-range item before using it, matching the other enum put handlers.
This issue was pointed out by the Sashiko AI review bot while reviewing a related enum-validation series:
https://lore.kernel.org/all/[email protected]/
The Linux kernel CVE team has assigned CVE-2026-72415 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.0 with commit 812ff1baa764080ba37bb0729e0c23c0e869b542 and fixed in 7.1.5 with commit 33387bf9bb6116a0429f823f8dab3accf8f8e09c Issue introduced in 7.0 with commit 812ff1baa764080ba37bb0729e0c23c0e869b542 and fixed in 7.2-rc1 with commit 1ce42a11bed134903e352010a01fa53073a6b395
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-72415
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/sdca/sdca_asoc.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/33387bf9bb6116a0429f823f8dab3accf8f8e09c https://git.kernel.org/stable/c/1ce42a11bed134903e352010a01fa53073a6b395