CVE-2026-99315

ALSA: us122l: Fix NULL dereference at hwdep open and release

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: us122l: Fix NULL dereference at hwdep open and release

usb_stream_hwdep_open() and usb_stream_hwdep_release() pass the result of
usb_ifnum_to_if() straight to usb_autopm_get_interface() and
usb_autopm_put_interface(), without checking it for NULL.

usb_ifnum_to_if() returns NULL once the device is gone, since
usb_disable_device() clears udev->actconfig on disconnect. The hwdep file
can outlive the disconnect: the card is released with
snd_card_free_when_closed(), so a process that keeps the character device
open reaches the driver's release callback after the USB configuration has
been dropped, and interface_to_usbdev() then dereferences the NULL
interface at offsetof(struct device, parent). The open callback has the
same problem when it races with the disconnect.

Check both lookups and fail the open with -ENODEV; in release, skip the
runtime PM put when the interface is already gone and still run the rest
of the per-file cleanup. Move the us122l->first bookkeeping after the
checks so that a failed open no longer leaves a stale file pointer behind.

Analysis

AI-generated

Technical impact

The vulnerability is a NULL pointer dereference in the ALSA us122l driver during hardware-dependent device open and release. The driver passes a potentially NULL interface pointer to runtime power‑management functions after the USB device has been disconnected, causing a kernel panic. This crash results in loss of system availability and, if exploited by a local attacker, may provide a path to kernel‑level code execution. The race condition between device disconnection and the HID file remaining open creates the exploitable path.

Affected Systems

All Linux kernel releases that include the ALSA us122l driver are affected, with no specific version ranges provided. The vulnerability exists in the Linux kernel source tree, affecting any kernel that ships the us122l audio driver and does not yet contain the upstream fix.

Risk and Exploitability

The EPSS score is not available and the issue is not listed in the CISA KEV catalog. Although the official CVSS score is not supplied, the nature of a kernel null dereference suggests a high severity rating. The likely attack vector is local: an attacker with access to the machine can force a device disconnect while a related character device is still open, inducing the race condition and causing a crash. The exploit does not require network connectivity, remote code execution, or elevated privileges beyond local access to the affected USB audio device and the ability to keep the character device open during a disconnect.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel patch or upgrade to a latest stable release that contains the us122l NULL dereference fix.
  • If a patch is not immediately available, unload or disable the snd‑us122l module while the system is in operation to avoid the vulnerable code paths.
  • As a temporary workaround, ensure that no process keeps the us122l character device open while the USB audio device is disconnected; close the device handle before disconnecting the hardware.

Generated by OpenCVE AI on November 18, 2026 at 22:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-476
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: us122l: Fix NULL dereference at hwdep open and release usb_stream_hwdep_open() and usb_stream_hwdep_release() pass the result of usb_ifnum_to_if() straight to usb_autopm_get_interface() and usb_autopm_put_interface(), without checking it for NULL. usb_ifnum_to_if() returns NULL once the device is gone, since usb_disable_device() clears udev->actconfig on disconnect. The hwdep file can outlive the disconnect: the card is released with snd_card_free_when_closed(), so a process that keeps the character device open reaches the driver's release callback after the USB configuration has been dropped, and interface_to_usbdev() then dereferences the NULL interface at offsetof(struct device, parent). The open callback has the same problem when it races with the disconnect. Check both lookups and fail the open with -ENODEV; in release, skip the runtime PM put when the interface is already gone and still run the rest of the per-file cleanup. Move the us122l->first bookkeeping after the checks so that a failed open no longer leaves a stale file pointer behind.
Title ALSA: us122l: Fix NULL dereference at hwdep open and release
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

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