CVE-2026-99315
ALSA: us122l: Fix NULL dereference at hwdep open and release
What happened?
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.
Affected software and versions
| Software | Version information | Fixed version |
|---|---|---|
| LinuxLinux | affected: 030a07e441296c372f946cd4065b5d831d8dc40c to < 3be1ac0b73e9bf73eec0000197d0177ebeb3cc79; affected: 030a07e441296c372f946cd4065b5d831d8dc40c to < 57dc5db514ab188a24cb300bda70a1ead3c9e479; affected: 030a07e441296c372f946cd4065b5d831d8dc40c to < b21aa212c9ba4536e66d65783cc883951c95ba01; affected: 030a07e441296c372f946cd4065b5d831d8dc40c to < 820e0050866942b5498488496462d12c6ce1c7a9 | See vendor advisory |
| LinuxLinux | affected: 2.6.28; unaffected: 0 to < 2.6.28; unaffected: 6.12.118 to ≤ 6.12.*; unaffected: 6.18.64 to ≤ 6.18.*; unaffected: 7.3.5 to ≤ 7.3.*; unaffected: 7.4-rc2 to ≤ * | See vendor advisory |
Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.
Is it being exploited?
This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.
How to respond
- Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
- Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
- Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.
Sources and remediation references
- https://www.cve.org/CVERecord?id=CVE-2026-99315
- https://git.kernel.org/stable/c/3be1ac0b73e9bf73eec0000197d0177ebeb3cc79
- https://git.kernel.org/stable/c/57dc5db514ab188a24cb300bda70a1ead3c9e479
- https://git.kernel.org/stable/c/b21aa212c9ba4536e66d65783cc883951c95ba01
- https://git.kernel.org/stable/c/820e0050866942b5498488496462d12c6ce1c7a9