{"id":"CVE-2026-139476","aliases":["CVE-2026-139476"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: hda: Don't free card at probe error in vga_switcheroo handler","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:35:06.311Z","modified":"2026-11-30T14:19:20.917Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"39173303c83859723dab32c2abfb97296d6af3bf","fixed":"78ad572331d84e9cba816e1feda1b177bc3cbfa4","status":"affected"},{"type":"git","introduced":"39173303c83859723dab32c2abfb97296d6af3bf","fixed":"4acca8f8fb5bd836081c1dcc710daaaf3caab0f5","status":"affected"},{"type":"git","introduced":"39173303c83859723dab32c2abfb97296d6af3bf","fixed":"9634a8b99b2651b9708f3137820d1c7beb3edba1","status":"affected"},{"type":"git","introduced":"39173303c83859723dab32c2abfb97296d6af3bf","fixed":"7e1ad3c55baa80399f1727dfd2303fa4d1558d9a","status":"affected"},{"type":"git","version":"ecd536c57ab71ed1b06ebbc6231101545127cc0b","status":"affected"},{"type":"git","version":"b6cb248aaa9acc6ac603331b05289bc04ef1530f","status":"affected"},{"type":"git","version":"b875f9be6275a53c4532a3a649953cebb2722118","status":"affected"},{"type":"semver","introduced":"5.10.80","fixed":"5.11","status":"affected"},{"type":"semver","introduced":"5.14.19","fixed":"5.15","status":"affected"},{"type":"semver","introduced":"5.15.3","fixed":"5.16","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.16","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/78ad572331d84e9cba816e1feda1b177bc3cbfa4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4acca8f8fb5bd836081c1dcc710daaaf3caab0f5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9634a8b99b2651b9708f3137820d1c7beb3edba1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7e1ad3c55baa80399f1727dfd2303fa4d1558d9a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139476","url":"https://www.cve.org/CVERecord?id=CVE-2026-139476","licence":"CVE Terms of Use","modified":"2026-11-30T13:35:06.311Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139476","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139476","licence":"Public domain","modified":"2026-11-30T14:19:20.917Z"}],"updatedAt":"2026-11-30T14:33:03.830Z","epss":{"score":0.00201,"percentile":0.10526,"date":"2026-12-01T12:00:22.000Z"}}