Skip to contentSkip to conversation

CVE-2026-72263: ASoC: SOF: topology: fix memory leak in snd_sof_load_topology

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

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: SOF: topology: fix memory leak in snd_sof_load_topology

When the topology filename contains "dummy" and tplg_cnt is 0, the function returns -EINVAL directly without freeing the tplg_files allocated by kcalloc() at line 2497. This leaks memory on every such topology load attempt.

Fix this by setting ret = -EINVAL and jumping to the out: label, which already handles the kfree(tplg_files) cleanup.

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

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

	Issue introduced in 6.19 with commit 99c159279c6dfa2c4867c7f76875f58263f8f43b and fixed in 7.1.5 with commit 6ed7787c43ecf4ae27a3e700cab53a1ed646c7f8
	Issue introduced in 6.19 with commit 99c159279c6dfa2c4867c7f76875f58263f8f43b and fixed in 7.2-rc1 with commit d46f9f23897261da53ffbeb89d48a13982ba7d28

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

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/sof/topology.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/6ed7787c43ecf4ae27a3e700cab53a1ed646c7f8
	https://git.kernel.org/stable/c/d46f9f23897261da53ffbeb89d48a13982ba7d28