CVE-2026-139442

ALSA: control_led: Fix deadlock between sysfs writes and card disconnect

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: control_led: Fix deadlock between sysfs writes and card disconnect

snd_ctl_led_disconnect() removes the ctl-led sysfs files while
holding card->controls_rwsem. device_unregister() waits for running
sysfs callbacks which can deadlock when a concurrent write causes
the attach or detach callback to wait for controls_rwsem.

Break kernfs active protection in the attach, detach and list
callbacks and hold a module reference instead.

Analysis

AI-generated

Technical impact

A deadlock condition can arise in the ALSA subsystem when a device is disconnected while a sysfs write is in progress. The bug is triggered by the order in which locks are acquired between sysfs callbacks and the card disconnect handler. If a write to the LED control sysfs file coincides with a device detach, the kernel can become stuck waiting for a lock that is held by the disconnect operation, effectively freezing the associated processes. The resulting denial of service can degrade the audio subsystem and potentially affect other userspace components that rely on ALSA.

Affected Systems

All Linux kernel builds that contain the ALSA control_led module before the recent patch. No specific version range is available, but any releases prior to the commit implementing the deadlock fix are affected. The flaw applies to the standard Linux kernel, as denoted by the vendor and product listing.

Risk and Exploitability

The vulnerability is local in nature; it requires the ability to write to the card’s LED sysfs files, a capability normally granted only to privileged users. The absence of EPSS data and the lack of a KEV listing indicate that, while the defect is not widely exploited, a knowledgeable attacker could reproduce the deadlock if they can trigger a concurrent disconnect. The impact is primarily availability, with no direct compromise of confidentiality or integrity reported.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that contains the commit fixing the deadlock between sysfs writes and card disconnect.
  • If an immediate kernel upgrade is not possible, restrict write permissions to the LED control sysfs files or disable the sysfs interface for LED management to prevent concurrent writes during disconnect events.
  • As a short‑term workaround, ensure that any device drivers that unload or disconnect audio hardware complete their operations before performing sysfs writes to LED controls, or avoid writing to these sysfs files during periods of high device churn.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-523
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ALSA: control_led: Fix deadlock between sysfs writes and card disconnect snd_ctl_led_disconnect() removes the ctl-led sysfs files while holding card->controls_rwsem. device_unregister() waits for running sysfs callbacks which can deadlock when a concurrent write causes the attach or detach callback to wait for controls_rwsem. Break kernfs active protection in the attach, detach and list callbacks and hold a module reference instead.
Title ALSA: control_led: Fix deadlock between sysfs writes and card disconnect
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-523

    Unprotected Transport of Credentials

Sources

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