CVE-2026-99317

ALSA: hwdep: Serialize DSP load requests

Published Nov 18, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ALSA: hwdep: Serialize DSP load requests

The check of the loaded DSP indices and the call of the driver's
dsp_load callback in snd_hwdep_dsp_load() are not serialized. A hwdep
file descriptor can be shared among threads, or inherited across fork,
so two SNDRV_HWDEP_IOCTL_DSP_LOAD requests for the same index can both
observe the index as unloaded and enter the driver's callback
concurrently, even though the device itself is opened exclusively.

This breaks the assumption behind hw->dsp_loaded that a firmware index
is loaded only once. For example, snd-usb-usx2y hits
WARN_ON(usx2y->as04.buffer) in usx2y_async_seq04_init() and may
allocate the US-428 sequence URBs twice.

Serialize the check, the callback invocation and the bookkeeping with a
per-hwdep mutex, so that the second request returns -EBUSY.

Analysis

AI-generated

Technical impact

The ALSA hardware dependency (hwdep) subsystem in the Linux kernel has a race condition where the check for loaded DSP firmware and the driver callback are not serialized. When a hwdep file descriptor is shared between threads or inherited across a fork, two concurrent SNDRV_HWDEP_IOCTL_DSP_LOAD requests for the same firmware index can both observe the index as unloaded and invoke the driver's callback simultaneously. This violates the assumption that each firmware index is loaded only once, potentially causing duplicate allocation of URBs and resulting in kernel instability or crash.

Affected Systems

All Linux kernel releases that include the ALSA hwdep subsystem are potentially affected, including common distributions such as Ubuntu, Debian, Fedora, and CentOS. The vulnerability is demonstrated in the snd-usb-usx2y driver, but it applies to any driver that loads DSP firmware via hwdep. Any kernel version prior to the commit that introduced serialization is vulnerable; no specific version range is listed in the advisory.

Risk and Exploitability

The EPSS score is not available in the advisory, and the vulnerability is not listed in the CISA KEV catalog. While no publicly disclosed exploit exists, it can be inferred that a local process with access to ALSA hwdep could trigger the race by issuing two concurrent load requests for the same firmware index. Achieving this concurrency is feasible when a hwdep file descriptor is shared across threads or child processes. The second request may succeed, causing duplicate firmware load and potentially leading to resource exhaustion or a kernel crash. The risk is moderate to high for unpatched systems, but exploitation requires local access to ALSA and is not a remote vulnerability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a kernel version that includes the patch which serializes DSP load requests.
  • If an upgrade is not immediately possible, ensure that applications do not share hwdep file descriptors across threads or processes, and avoid invoking SNDRV_HWDEP_IOCTL_DSP_LOAD on the same index concurrently.
  • Monitor system logs for WARN_ON messages related to duplicate URB allocation and consider restarting affected services or the host if such warnings appear.

Generated by OpenCVE AI on November 18, 2026 at 23:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-823
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ALSA: hwdep: Serialize DSP load requests The check of the loaded DSP indices and the call of the driver's dsp_load callback in snd_hwdep_dsp_load() are not serialized. A hwdep file descriptor can be shared among threads, or inherited across fork, so two SNDRV_HWDEP_IOCTL_DSP_LOAD requests for the same index can both observe the index as unloaded and enter the driver's callback concurrently, even though the device itself is opened exclusively. This breaks the assumption behind hw->dsp_loaded that a firmware index is loaded only once. For example, snd-usb-usx2y hits WARN_ON(usx2y->as04.buffer) in usx2y_async_seq04_init() and may allocate the US-428 sequence URBs twice. Serialize the check, the callback invocation and the bookkeeping with a per-hwdep mutex, so that the second request returns -EBUSY.
Title ALSA: hwdep: Serialize DSP load requests
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-823

    Use of Out-of-range Pointer Offset

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 18, 2026, 8:42 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 18, 2026, 9:17 AM
Modified
Nov 18, 2026, 9:17 AM