CVE-2026-139474

ASoC: mediatek: Don't keep a freed topology name in the static card

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ASoC: mediatek: Don't keep a freed topology name in the static card

The machine drivers pass a static snd_soc_card, which outlives any one
probe. With SOF, mtk_soundcard_common_probe() calls
snd_soc_card_set_topology_name(), which devm-allocates "sof-<name>",
stores it in card->topology_shortname and points card->name at it.

If the probe then fails or defers, devm frees the string, but the static
card keeps both pointers. The next probe does not allocate a new name,
because topology_shortname is already set, so the card registers with
whatever now occupies that memory:

input: \xc0cr\xc2 DP Jack as /devices/platform/sound/sound/card0/input10

UCM matches profiles by card name, so userspace then finds no profile and
the card is unusable until the next boot.

Save the original name before setting the topology name, and restore it
from a devm action that runs before the string is freed.

Analysis

AI-generated

Technical impact

The Mediatek ASoC driver in the Linux kernel incorrectly retains a pointer to a freed topology name string during card probe. If a probe fails or is deferred, the kernel frees the memory but the static card structure still holds the stale pointer. Subsequent probes reuse the stale memory content as the card name, causing the audio subsystem to register the card with a bogus name and preventing userspace from finding an audio profile. As a result, the sound card becomes unusable until the next system reboot.

Affected Systems

This flaw occurs in any Linux kernel that includes the Mediatek ASoC driver for the sound subsystem. Commonly affected systems are Android and embedded devices running recent kernel versions that ship this driver. The issue impacts the Linux kernel as a whole, regardless of distribution, because it is a bug in the kernel source that is compiled into the system.

Risk and Exploitability

The vulnerability does not provide a remote code execution path and is limited to the kernel driver during probe time, which requires the system to successfully load the driver. Because the flaw leads to a failure in card registration rather than data disclosure or code execution, the likelihood of exploitation is low. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog. Administrators should consider the risk as non‑critical, primarily causing device unavailability rather than compromise of confidentiality, integrity, or privilege.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the patch that restores the original topology name on probe failure.
  • Reboot the system to load the corrected driver and verify audio functionality.
  • If an immediate kernel update is not possible, refrain from loading the impacted Mediatek ASoC driver until the patch is applied, as a temporary workaround.

Generated by OpenCVE AI on November 30, 2026 at 22:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ASoC: mediatek: Don't keep a freed topology name in the static card The machine drivers pass a static snd_soc_card, which outlives any one probe. With SOF, mtk_soundcard_common_probe() calls snd_soc_card_set_topology_name(), which devm-allocates "sof-<name>", stores it in card->topology_shortname and points card->name at it. If the probe then fails or defers, devm frees the string, but the static card keeps both pointers. The next probe does not allocate a new name, because topology_shortname is already set, so the card registers with whatever now occupies that memory: input: \xc0cr\xc2 DP Jack as /devices/platform/sound/sound/card0/input10 UCM matches profiles by card name, so userspace then finds no profile and the card is unusable until the next boot. Save the original name before setting the topology name, and restore it from a devm action that runs before the string is freed.
Title ASoC: mediatek: Don't keep a freed topology name in the static card
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM