ALSA: hda: Don't free card at probe error in vga_switcheroo handler

Summary

CVECVE-2026-139476
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:19:20 UTC
Updated2026-11-30 14:19:20 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: ALSA: hda: Don't free card at probe error in vga_switcheroo handler The vga_switcheroo handler azx_vs_set_state() calls azx_probe_contine() for enabling the audio, and if an error happens during the probe, azx_probe_continue() releases its associated sound card object at the error path. The card release procedure includes the call of vga_switcheroo_unregister_client(), and this triggers the vgasr_mutex lock again that had been already held by the caller (vga_switcheroo_process_delayed_switch()) -- leading to a deadlock. (Moreover, the card release will cause a potential UAF at the error message in azx_vs_set_state() since the card object is already gone; this was the original report by Sashiko.) For avoiding the unneeded crash, it's better to avoid the card release in this error path, so we make azx_probe_continue() behaving conditionally. In return, set hda->init_failed flag, so that any further (re-)attempts will be filtered after that point. The check of hda->init_failed is dropped from azx_vs_can_switch(). It's because otherwise vga_switcheroo can't be switched to turn off GPU once when a probe error happens at the audio side.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 39173303c83859723dab32c2abfb97296d6af3bf 78ad572331d84e9cba816e1feda1b177bc3cbfa4 git Not specified
CNA Linux Linux affected 39173303c83859723dab32c2abfb97296d6af3bf 4acca8f8fb5bd836081c1dcc710daaaf3caab0f5 git Not specified
CNA Linux Linux affected 39173303c83859723dab32c2abfb97296d6af3bf 9634a8b99b2651b9708f3137820d1c7beb3edba1 git Not specified
CNA Linux Linux affected 39173303c83859723dab32c2abfb97296d6af3bf 7e1ad3c55baa80399f1727dfd2303fa4d1558d9a git Not specified
CNA Linux Linux affected ecd536c57ab71ed1b06ebbc6231101545127cc0b git Not specified
CNA Linux Linux affected b6cb248aaa9acc6ac603331b05289bc04ef1530f git Not specified
CNA Linux Linux affected b875f9be6275a53c4532a3a649953cebb2722118 git Not specified
CNA Linux Linux affected 5.10.80 5.11 semver Not specified
CNA Linux Linux affected 5.14.19 5.15 semver Not specified
CNA Linux Linux affected 5.15.3 5.16 semver Not specified
CNA Linux Linux affected 5.16 Not specified
CNA Linux Linux unaffected 5.16 semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/9634a8b99b2651b9708f3137820d1c7beb3edba1 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7e1ad3c55baa80399f1727dfd2303fa4d1558d9a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/78ad572331d84e9cba816e1feda1b177bc3cbfa4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4acca8f8fb5bd836081c1dcc710daaaf3caab0f5 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report