CVE-2026-98316

ALSA: bcd2000: Fix race between rawmidi and disconnect

Published Oct 6, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ALSA: bcd2000: Fix race between rawmidi and disconnect

Although we tried to fix the potential UAF issues at USB disconnect on
bcd2000 driver, there is still an overlooked case -- namely, when a
rawmidi trigger callback has been already running at USB disconnect
handling, the in-flight function (e.g. bcd2000_midi_send()) could
still access the URB, because the previous URB NULL-check & clearance
was considered only for the URB complete callbacks, but not about the
parallel rawmidi operations.

For addressing the race, this patch introduced a new spinlock that
covers each rawmidi operation as well as the rawmidi handling in the
complete callback. The URB is cleared with the lock, so it guarantees
that the pending rawmidi task already finished or a NULL check is
effective.

Analysis

AI-generated

Technical impact

The vulnerability is a race condition between rawmidi operations and USB disconnect handling in the Linux ALSA bcd2000 driver. When a rawmidi trigger callback is executing while the device disconnects, the callback may still reference a USB Request Block that has been cleared or freed, potentially corrupting kernel memory or leading to undefined behaviour. A fix was introduced by adding a spinlock to serialize rawmidi calls and the disconnect routine.

Affected Systems

All Linux kernel releases that include the unchanged ALSA bcd2000 driver are affected. The patch that introduces a spinlock to protect rawmidi operations and the USB disconnect routine was applied to the stable kernel stream after the issue was discovered, but the advisory does not specify the precise kernel versions. Consequently any system running a kernel prior to the patch commit remains vulnerable until the kernel is updated.

Risk and Exploitability

The EPSS score of < 1% indicates a very low probability of exploitation. Based on the description, it is inferred that an attacker would need to initiate a USB audio device disconnect while a rawmidi callback is in progress, a scenario that might be achieved via local interaction with the device or an application that can trigger it. If the conditions are met, the race can cause kernel instability, potentially leading to a crash or other denial‑of‑service behaviour. The vulnerability is not listed in the CISA KEV catalog and no public exploitation evidence is known.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the ALSA bcd2000 race‑condition fix.
  • If an immediate upgrade is not feasible, blacklist or unload the bcd2000 module to prevent its loading.
  • As a temporary workaround, avoid using USB audio devices that rely on the bcd2000 driver, or ensure that all rawmidi operations are complete before disconnecting the device.

Generated by OpenCVE AI on October 6, 2026 at 20:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6568-1 linux security update
Ubuntu USN Ubuntu USN USN-9091-1 Linux kernel (NVIDIA Tegra) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ALSA: bcd2000: Fix race between rawmidi and disconnect Although we tried to fix the potential UAF issues at USB disconnect on bcd2000 driver, there is still an overlooked case -- namely, when a rawmidi trigger callback has been already running at USB disconnect handling, the in-flight function (e.g. bcd2000_midi_send()) could still access the URB, because the previous URB NULL-check & clearance was considered only for the URB complete callbacks, but not about the parallel rawmidi operations. For addressing the race, this patch introduced a new spinlock that covers each rawmidi operation as well as the rawmidi handling in the complete callback. The URB is cleared with the lock, so it guarantees that the pending rawmidi task already finished or a NULL check is effective.
Title ALSA: bcd2000: Fix race between rawmidi and 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-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-416

    Use After Free

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 23, 2026, 7:59 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 6, 2026, 9:18 AM
Modified
Nov 23, 2026, 8:17 AM