CVE-2026-139476

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

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In 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.

Analysis

AI-generated

Technical impact

During audio driver initialization, the VGA switcheroo handler can release the sound card object while the mutex that protects its state is still held, causing a deadlock. This same release path also makes the card object available for a use‑after‑free error when error handling logs a message. The result is a kernel crash or a hung process, which effectively creates a denial of service and potentially a memory safety fault.

Affected Systems

The flaw resides in the Linux kernel’s ALSA HDA audio driver when it is coupled with the vga_switcheroo GPU power‑management feature. Any Linux system that loads the hda driver and enables vga_switcheroo is vulnerable. No specific kernel version is listed in the data, so the issue applies to any kernel that contains the current unaudited implementation of azx_vs_set_state and azx_probe_continue.

Risk and Exploitability

The EPSS score is not available and the CVE is not listed in CISA’s KEV catalogue, so no publicly confirmed active exploitation is known. Because the flaw requires a probe‑error condition in kernel space, exploitation would likely require local or kernel‑privileged access. The deadlock can cause a system hang, and the potential use‑after‑free could enable more serious attacks if an attacker can reuse the freed object. The actual severity cannot be quantified without a CVSS score, but the impact is significant for reliability and security of systems using vga_switcheroo.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the patch resolving the probe error handling in vga_switcheroo.
  • If a kernel update is not yet available, disable vga_switcheroo on affected hosts to prevent the vulnerable code path from executing.
  • Reboot or restart affected services after disabling vga_switcheroo so the changes take effect.
  • Continuously monitor system logs (e.g., dmesg) for hda init failures or references to vga_switcheroo deadlock events.

Generated by OpenCVE AI on November 30, 2026 at 22:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
CWE-754
Type Values Removed Values Added
Description In 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.
Title ALSA: hda: Don't free card at probe error in vga_switcheroo handler
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-416

    Use After Free

  • CWE-754

    Improper Check for Unusual or Exceptional Conditions

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM