{"id":"CVE-2026-99314","summary":"ALSA: us122l: Add missing NULL check in usb_stream_hwdep_mmap()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: us122l: Add missing NULL check in usb_stream_hwdep_mmap()\n\nusb_stream_hwdep_mmap() reads us122l-\u003esk.s and dereferences it without\nchecking for NULL.  The stream object is released by usb_stream_free(),\nwhich is reached through us122l_stop() both when the device is\ndisconnected and when us122l_start() fails, and it leaves us122l-\u003esk.s\nset to NULL.  The hwdep file stays usable after that, so a later mmap()\n\n\tKASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]\n\tRIP: 0010:usb_stream_hwdep_mmap+0x107/0x890 sound/usb/usx2y/us122l.c:182\n\ncrashes while reading s-\u003eread_size, which sits at offset 0x10.\n\nThat NULL is an expected state for this field: usb_stream_hwdep_vm_fault(),\nusb_stream_hwdep_poll(), usb_stream_hwdep_ioctl(), usb_stream_stop() and\nusb_stream_free() all test it before use.  Only the mmap callback misses\nthe check, so let it return -ENODEV, matching what the other hwdep mapping\nin usx2yhwdeppcm.c does when its shared buffer has not been allocated.","modified":"2026-11-18T10:00:25.225369450Z","published":"2026-11-18T08:42:07.299Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99314.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/03d3690ba06713358cd8c89bbec090040c272438"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0f128b326d3defab6bf5c33c09e55addd87e74ec"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6fdd96fa2f7a70d61eeed166e520a990c40ff223"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f5d3eb483fed59fc0f3b059b8b6a32cedc922360"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99314.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99314"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"030a07e441296c372f946cd4065b5d831d8dc40c"},{"fixed":"0f128b326d3defab6bf5c33c09e55addd87e74ec"},{"fixed":"03d3690ba06713358cd8c89bbec090040c272438"},{"fixed":"6fdd96fa2f7a70d61eeed166e520a990c40ff223"},{"fixed":"f5d3eb483fed59fc0f3b059b8b6a32cedc922360"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99314.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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-99314.json"}}],"schema_version":"1.9.2"}