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.
Published: 2026-10-06
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: Potential use-after-free leading to system instability
Action: Immediate patch
AI Analysis

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.

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

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
History

Tue, 06 Oct 2026 21:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416

Tue, 06 Oct 2026 17:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416

Tue, 06 Oct 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416

Tue, 06 Oct 2026 09:00:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:17:26.993Z

Reserved: 2026-09-25T10:25:14.339Z

Link: CVE-2026-98316

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-06T09:18:23.363

Modified: 2026-10-19T10:18:33.737

Link: CVE-2026-98316

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-06T20:45:06Z

Weaknesses
  • CWE-362

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

  • CWE-416

    Use After Free