CVE-2026-139474: ASoC: mediatek: Don't keep a freed topology name in the static card

Published Nov 30, 2026
·
Updated

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 sndsoccard, which outlives any one probe. With SOF, mtksoundcardcommonprobe() calls sndsoccardsettopologyname(), which devm-allocates "sof-<name>", stores it in card->topologyshortname 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 topologyshortname 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.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In mtk_soundcard_common_probe(), save the original card name before calling snd_soc_card_set_topology_name(), then restore it with a devm action that runs before the topology name string is freed.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:35 PM
Data Sourced
via MITRE·01:35 PM
Description

Frequently Asked Questions

1

When can this issue occur?

It can occur when a MediaTek ASoC machine-driver probe using SOF fails or is deferred after setting the topology name. Because the sound card structure is static and survives the failed probe, a subsequent probe can reuse dangling name pointers.

2

What is the practical impact on an affected system?

The sound card may register with corrupted or unrelated memory as its name. Since UCM selects profiles by card name, userspace may not find a matching profile and the audio card can be unusable until the next reboot.

3

How can I identify a system that has encountered the problem?

Check whether the registered sound card has an unexpected or corrupted name, such as an input-device-style string, and whether UCM fails to locate a profile for that card. The example behavior includes a card appearing with a name like "input: … DP Jack".

4

Is a reboot an effective workaround?

A reboot can restore usability temporarily, because the described card-name corruption persists until the next boot. The resolved fix preserves and restores the original card name when the probe cleanup runs.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203