{"id":"CVE-2026-139476","state":"PUBLISHED","title":"ALSA: hda: Don't free card at probe error in vga_switcheroo handler","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hda: Don't free card at probe error in vga_switcheroo handler\n\nThe vga_switcheroo handler azx_vs_set_state() calls\nazx_probe_contine() for enabling the audio, and if an error happens\nduring the probe, azx_probe_continue() releases its associated sound\ncard object at the error path.  The card release procedure includes\nthe call of vga_switcheroo_unregister_client(), and this triggers the\nvgasr_mutex lock again that had been already held by the caller\n(vga_switcheroo_process_delayed_switch()) -- leading to a deadlock.\n\n(Moreover, the card release will cause a potential UAF at the error\nmessage in azx_vs_set_state() since the card object is already gone;\nthis was the original report by Sashiko.)\n\nFor avoiding the unneeded crash, it's better to avoid the card release\nin this error path, so we make azx_probe_continue() behaving\nconditionally.  In return, set hda->init_failed flag, so that any\nfurther (re-)attempts will be filtered after that point.\n\nThe check of hda->init_failed is dropped from azx_vs_can_switch().\nIt's because otherwise vga_switcheroo can't be switched to turn off\nGPU once when a probe error happens at the audio side.","publishedAt":"2026-11-30T13:35:06.311Z","updatedAt":"2026-11-30T13:35:06.311Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"39173303c83859723dab32c2abfb97296d6af3bf","status":"affected","lessThan":"78ad572331d84e9cba816e1feda1b177bc3cbfa4","versionType":"git"},{"version":"39173303c83859723dab32c2abfb97296d6af3bf","status":"affected","lessThan":"4acca8f8fb5bd836081c1dcc710daaaf3caab0f5","versionType":"git"},{"version":"39173303c83859723dab32c2abfb97296d6af3bf","status":"affected","lessThan":"9634a8b99b2651b9708f3137820d1c7beb3edba1","versionType":"git"},{"version":"39173303c83859723dab32c2abfb97296d6af3bf","status":"affected","lessThan":"7e1ad3c55baa80399f1727dfd2303fa4d1558d9a","versionType":"git"},{"version":"ecd536c57ab71ed1b06ebbc6231101545127cc0b","status":"affected","versionType":"git"},{"version":"b6cb248aaa9acc6ac603331b05289bc04ef1530f","status":"affected","versionType":"git"},{"version":"b875f9be6275a53c4532a3a649953cebb2722118","status":"affected","versionType":"git"},{"version":"5.10.80","status":"affected","lessThan":"5.11","versionType":"semver"},{"version":"5.14.19","status":"affected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.3","status":"affected","lessThan":"5.16","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/hda/controllers/intel.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/hda/controllers/intel.c"]}],"references":["https://git.kernel.org/stable/c/78ad572331d84e9cba816e1feda1b177bc3cbfa4","https://git.kernel.org/stable/c/4acca8f8fb5bd836081c1dcc710daaaf3caab0f5","https://git.kernel.org/stable/c/9634a8b99b2651b9708f3137820d1c7beb3edba1","https://git.kernel.org/stable/c/7e1ad3c55baa80399f1727dfd2303fa4d1558d9a"],"weaknesses":[],"ingestedAt":"2026-11-30T13:50:04.417Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139476.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139476","state":"PUBLISHED","datePublished":"2026-11-30T13:35:06.311Z","dateUpdated":"2026-11-30T13:35:06.311Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.936Z"},"containers":{"cna":{"title":"ALSA: hda: Don't free card at probe error in vga_switcheroo handler","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hda: Don't free card at probe error in vga_switcheroo handler\n\nThe vga_switcheroo handler azx_vs_set_state() calls\nazx_probe_contine() for enabling the audio, and if an error happens\nduring the probe, azx_probe_continue() releases its associated sound\ncard object at the error path.  The card release procedure includes\nthe call of vga_switcheroo_unregister_client(), and this triggers the\nvgasr_mutex lock again that had been already held by the caller\n(vga_switcheroo_process_delayed_switch()) -- leading to a deadlock.\n\n(Moreover, the card release will cause a potential UAF at the error\nmessage in azx_vs_set_state() since the card object is already gone;\nthis was the original report by Sashiko.)\n\nFor avoiding the unneeded crash, it's better to avoid the card release\nin this error path, so we make azx_probe_continue() behaving\nconditionally.  In return, set hda->init_failed flag, so that any\nfurther (re-)attempts will be filtered after that point.\n\nThe check of hda->init_failed is dropped from azx_vs_can_switch().\nIt's because otherwise vga_switcheroo can't be switched to turn off\nGPU once when a probe error happens at the audio side."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"39173303c83859723dab32c2abfb97296d6af3bf","status":"affected","lessThan":"78ad572331d84e9cba816e1feda1b177bc3cbfa4","versionType":"git"},{"version":"39173303c83859723dab32c2abfb97296d6af3bf","status":"affected","lessThan":"4acca8f8fb5bd836081c1dcc710daaaf3caab0f5","versionType":"git"},{"version":"39173303c83859723dab32c2abfb97296d6af3bf","status":"affected","lessThan":"9634a8b99b2651b9708f3137820d1c7beb3edba1","versionType":"git"},{"version":"39173303c83859723dab32c2abfb97296d6af3bf","status":"affected","lessThan":"7e1ad3c55baa80399f1727dfd2303fa4d1558d9a","versionType":"git"},{"version":"ecd536c57ab71ed1b06ebbc6231101545127cc0b","status":"affected","versionType":"git"},{"version":"b6cb248aaa9acc6ac603331b05289bc04ef1530f","status":"affected","versionType":"git"},{"version":"b875f9be6275a53c4532a3a649953cebb2722118","status":"affected","versionType":"git"},{"version":"5.10.80","status":"affected","lessThan":"5.11","versionType":"semver"},{"version":"5.14.19","status":"affected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.3","status":"affected","lessThan":"5.16","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/hda/controllers/intel.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/hda/controllers/intel.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/78ad572331d84e9cba816e1feda1b177bc3cbfa4"},{"url":"https://git.kernel.org/stable/c/4acca8f8fb5bd836081c1dcc710daaaf3caab0f5"},{"url":"https://git.kernel.org/stable/c/9634a8b99b2651b9708f3137820d1c7beb3edba1"},{"url":"https://git.kernel.org/stable/c/7e1ad3c55baa80399f1727dfd2303fa4d1558d9a"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:35:06.311Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.80"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14.19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}