{"api_version":"1","generated_at":"2026-11-30T19:18:01+00:00","cve":"CVE-2026-139474","urls":{"html":"https://cve.report/CVE-2026-139474","api":"https://cve.report/api/cve/CVE-2026-139474.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139474","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139474"},"summary":{"title":"ASoC: mediatek: Don't keep a freed topology name in the static card","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: mediatek: Don't keep a freed topology name in the static card\n\nThe machine drivers pass a static snd_soc_card, which outlives any one\nprobe. With SOF, mtk_soundcard_common_probe() calls\nsnd_soc_card_set_topology_name(), which devm-allocates \"sof-<name>\",\nstores it in card->topology_shortname and points card->name at it.\n\nIf the probe then fails or defers, devm frees the string, but the static\ncard keeps both pointers. The next probe does not allocate a new name,\nbecause topology_shortname is already set, so the card registers with\nwhatever now occupies that memory:\n\n  input: \\xc0cr\\xc2 DP Jack as /devices/platform/sound/sound/card0/input10\n\nUCM matches profiles by card name, so userspace then finds no profile and\nthe card is unusable until the next boot.\n\nSave the original name before setting the topology name, and restore it\nfrom a devm action that runs before the string is freed.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:20","updated_at":"2026-11-30 14:19:20"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/bf389db13cf825a50767cc1110034d15e55ec061","name":"https://git.kernel.org/stable/c/bf389db13cf825a50767cc1110034d15e55ec061","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/50c5d7f3a9b4d2a2baca40657e46a3508cdac2d1","name":"https://git.kernel.org/stable/c/50c5d7f3a9b4d2a2baca40657e46a3508cdac2d1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139474","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139474","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ec4489c43efe434a132f27ff9298345de1cfacd8 bf389db13cf825a50767cc1110034d15e55ec061 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ec4489c43efe434a132f27ff9298345de1cfacd8 50c5d7f3a9b4d2a2baca40657e46a3508cdac2d1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.2","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["sound/soc/mediatek/common/mtk-soundcard-driver.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"bf389db13cf825a50767cc1110034d15e55ec061","status":"affected","version":"ec4489c43efe434a132f27ff9298345de1cfacd8","versionType":"git"},{"lessThan":"50c5d7f3a9b4d2a2baca40657e46a3508cdac2d1","status":"affected","version":"ec4489c43efe434a132f27ff9298345de1cfacd8","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["sound/soc/mediatek/common/mtk-soundcard-driver.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.2"},{"lessThan":"7.2","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"7.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.2","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: mediatek: Don't keep a freed topology name in the static card\n\nThe machine drivers pass a static snd_soc_card, which outlives any one\nprobe. With SOF, mtk_soundcard_common_probe() calls\nsnd_soc_card_set_topology_name(), which devm-allocates \"sof-<name>\",\nstores it in card->topology_shortname and points card->name at it.\n\nIf the probe then fails or defers, devm frees the string, but the static\ncard keeps both pointers. The next probe does not allocate a new name,\nbecause topology_shortname is already set, so the card registers with\nwhatever now occupies that memory:\n\n  input: \\xc0cr\\xc2 DP Jack as /devices/platform/sound/sound/card0/input10\n\nUCM matches profiles by card name, so userspace then finds no profile and\nthe card is unusable until the next boot.\n\nSave the original name before setting the topology name, and restore it\nfrom a devm action that runs before the string is freed."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:35:05.205Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/bf389db13cf825a50767cc1110034d15e55ec061"},{"url":"https://git.kernel.org/stable/c/50c5d7f3a9b4d2a2baca40657e46a3508cdac2d1"}],"title":"ASoC: mediatek: Don't keep a freed topology name in the static card","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139474","datePublished":"2026-11-30T13:35:05.205Z","dateReserved":"2026-11-30T13:22:15.936Z","dateUpdated":"2026-11-30T13:35:05.205Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:20","lastModifiedDate":"2026-11-30 14:19:20","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139474","Ordinal":"1","Title":"ASoC: mediatek: Don't keep a freed topology name in the static c","CVE":"CVE-2026-139474","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139474","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: mediatek: Don't keep a freed topology name in the static card\n\nThe machine drivers pass a static snd_soc_card, which outlives any one\nprobe. With SOF, mtk_soundcard_common_probe() calls\nsnd_soc_card_set_topology_name(), which devm-allocates \"sof-<name>\",\nstores it in card->topology_shortname and points card->name at it.\n\nIf the probe then fails or defers, devm frees the string, but the static\ncard keeps both pointers. The next probe does not allocate a new name,\nbecause topology_shortname is already set, so the card registers with\nwhatever now occupies that memory:\n\n  input: \\xc0cr\\xc2 DP Jack as /devices/platform/sound/sound/card0/input10\n\nUCM matches profiles by card name, so userspace then finds no profile and\nthe card is unusable until the next boot.\n\nSave the original name before setting the topology name, and restore it\nfrom a devm action that runs before the string is freed.","Type":"Description","Title":"ASoC: mediatek: Don't keep a freed topology name in the static c"}]}}}