Skip to contentSkip to conversation

CVE-2022-50325: ASoC: Intel: avs: Fix potential RX buffer overflow

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 15, 2025

lore
Share & tools
lore
#0 lore raw

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

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

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

ASoC: Intel: avs: Fix potential RX buffer overflow

If an event caused firmware to return invalid RX size for LARGE_CONFIG_GET, memcpy_fromio() could end up copying too many bytes. Fix by utilizing min_t().

The Linux kernel CVE team has assigned CVE-2022-50325 to this issue.

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

	Issue introduced in 5.18 with commit f14a1c5a9f830025dc8638303ddefd5f731ae4bc and fixed in 6.0.16 with commit ec1f0c12cb2e614c3fa8e9402f7ffcf82166078a
	Issue introduced in 5.18 with commit f14a1c5a9f830025dc8638303ddefd5f731ae4bc and fixed in 6.1.2 with commit 0bad12fee5ae16ab439d97c66c4238f5f4cc7f68
	Issue introduced in 5.18 with commit f14a1c5a9f830025dc8638303ddefd5f731ae4bc and fixed in 6.2 with commit 23ae34e033b2c0e5e88237af82b163b296fd6aa9

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-2022-50325

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/intel/avs/ipc.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/ec1f0c12cb2e614c3fa8e9402f7ffcf82166078a
	https://git.kernel.org/stable/c/0bad12fee5ae16ab439d97c66c4238f5f4cc7f68
	https://git.kernel.org/stable/c/23ae34e033b2c0e5e88237af82b163b296fd6aa9