{"id":"CVE-2026-99314","state":"PUBLISHED","title":"ALSA: us122l: Add missing NULL check in usb_stream_hwdep_mmap()","description":"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->sk.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->sk.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->read_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.","publishedAt":"2026-11-18T08:42:07.299Z","updatedAt":"2026-11-18T08:42:07.299Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"0f128b326d3defab6bf5c33c09e55addd87e74ec","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"03d3690ba06713358cd8c89bbec090040c272438","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"6fdd96fa2f7a70d61eeed166e520a990c40ff223","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"f5d3eb483fed59fc0f3b059b8b6a32cedc922360","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/usb/usx2y/us122l.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.28","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.28","versionType":"semver"},{"version":"6.12.118","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.64","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.5","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/usb/usx2y/us122l.c"]}],"references":["https://git.kernel.org/stable/c/0f128b326d3defab6bf5c33c09e55addd87e74ec","https://git.kernel.org/stable/c/03d3690ba06713358cd8c89bbec090040c272438","https://git.kernel.org/stable/c/6fdd96fa2f7a70d61eeed166e520a990c40ff223","https://git.kernel.org/stable/c/f5d3eb483fed59fc0f3b059b8b6a32cedc922360"],"weaknesses":[],"ingestedAt":"2026-11-18T08:50:06.114Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99314.json","commit":"8de78b04d0b061e79601bb9aa25ca1381ccc6385","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99314","state":"PUBLISHED","datePublished":"2026-11-18T08:42:07.299Z","dateUpdated":"2026-11-18T08:42:07.299Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.407Z"},"containers":{"cna":{"title":"ALSA: us122l: Add missing NULL check in usb_stream_hwdep_mmap()","descriptions":[{"lang":"en","value":"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->sk.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->sk.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->read_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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"0f128b326d3defab6bf5c33c09e55addd87e74ec","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"03d3690ba06713358cd8c89bbec090040c272438","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"6fdd96fa2f7a70d61eeed166e520a990c40ff223","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"f5d3eb483fed59fc0f3b059b8b6a32cedc922360","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/usb/usx2y/us122l.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.28","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.28","versionType":"semver"},{"version":"6.12.118","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.64","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.5","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/usb/usx2y/us122l.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0f128b326d3defab6bf5c33c09e55addd87e74ec"},{"url":"https://git.kernel.org/stable/c/03d3690ba06713358cd8c89bbec090040c272438"},{"url":"https://git.kernel.org/stable/c/6fdd96fa2f7a70d61eeed166e520a990c40ff223"},{"url":"https://git.kernel.org/stable/c/f5d3eb483fed59fc0f3b059b8b6a32cedc922360"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-18T08:42:07.299Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.28","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}