ALSA: us122l: Add missing NULL check in usb_stream_hwdep_mmap()

State
Published
Severity
Not Scored
Published
Nov 18, 2026
Updated
Nov 23, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

ALSA: us122l: Add missing NULL check in usb_stream_hwdep_mmap()

usb_stream_hwdep_mmap() reads us122l->sk.s and dereferences it without checking for NULL. The stream object is released by usb_stream_free(), which is reached through us122l_stop() both when the device is disconnected and when us122l_start() fails, and it leaves us122l->sk.s set to NULL. The hwdep file stays usable after that, so a later mmap()

KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] RIP: 0010:usb_stream_hwdep_mmap+0x107/0x890 sound/usb/usx2y/us122l.c:182

crashes while reading s->read_size, which sits at offset 0x10.

That NULL is an expected state for this field: usb_stream_hwdep_vm_fault(), usb_stream_hwdep_poll(), usb_stream_hwdep_ioctl(), usb_stream_stop() and usb_stream_free() all test it before use. Only the mmap callback misses the check, so let it return -ENODEV, matching what the other hwdep mapping in usx2yhwdeppcm.c does when its shared buffer has not been allocated.

ProductVersions
Linux Linux030a07e441296c372f946cd4065b5d831d8dc40c to before 683e063b0ed300d2c09e64b21509ec1ceb6d23c0 Affected030a07e441296c372f946cd4065b5d831d8dc40c to before a4e41eb6cd57b3e6e2d4c6f6753020b5700b2e22 Affected030a07e441296c372f946cd4065b5d831d8dc40c to before 6c63082368ea1094fc8a452d01e1f4de999e27e2 Affected030a07e441296c372f946cd4065b5d831d8dc40c to before 10dfcb5f0f989b88035c50c752f3e7acd62a6d81 Affected030a07e441296c372f946cd4065b5d831d8dc40c to before 0f128b326d3defab6bf5c33c09e55addd87e74ec Affected030a07e441296c372f946cd4065b5d831d8dc40c to before 03d3690ba06713358cd8c89bbec090040c272438 Affected030a07e441296c372f946cd4065b5d831d8dc40c to before 6fdd96fa2f7a70d61eeed166e520a990c40ff223 Affected030a07e441296c372f946cd4065b5d831d8dc40c to before f5d3eb483fed59fc0f3b059b8b6a32cedc922360 Affected
Linux Linux2.6.28 Affectedbefore 2.6.28 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.118 through 6.12.* Not Affected6.18.64 through 6.18.* Not Affected7.3.5 through 7.3.* Not Affected7.4-rc2 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.