CVE-2026-139474
publishedASoC: mediatek: Don't keep a freed topology name in the static card
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxec4489c43efe434a132f27ff9298345de1cfacd8 to < bf389db13cf825a50767cc1110034d15e55ec061 · ec4489c43efe434a132f27ff9298345de1cfacd8 to < 50c5d7f3a9b4d2a2baca40657e46a3508cdac2d1 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.2 (affected) · 0 to < 7.2 (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | ec4489c43efe434a132f27ff9298345de1cfacd8 to < bf389db13cf825a50767cc1110034d15e55ec061 (affected · git)ec4489c43efe434a132f27ff9298345de1cfacd8 to < 50c5d7f3a9b4d2a2baca40657e46a3508cdac2d1 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 7.2 (affected)0 to < 7.2 (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
ASoC: mediatek: Don't keep a freed topology name in the static card
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ed3b9d5229dc86c4919090edc3a573235be4a9421bfb40e1aee42a663da731e7
- Ingested
- 30 Nov 2026, 13:42:23 UTC
- Source record
- Official CVE record