CVE-2026-99315

Source
https://cve.org/CVERecord?id=CVE-2026-99315
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99315.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-99315
Downstream
Published
2026-11-18T08:42:07Z
Modified
2026-11-18T10:00:25Z
Summary
ALSA: us122l: Fix NULL dereference at hwdep open and release
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99315.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
030a07e441296c372f946cd4065b5d831d8dc40c
Fixed
3be1ac0b73e9bf73eec0000197d0177ebeb3cc79
Fixed
57dc5db514ab188a24cb300bda70a1ead3c9e479
Fixed
b21aa212c9ba4536e66d65783cc883951c95ba01
Fixed
820e0050866942b5498488496462d12c6ce1c7a9

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99315.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.28
Fixed
6.12.118
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.64
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.5

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99315.json"