{"id":"CVE-2026-99315","state":"PUBLISHED","title":"ALSA: us122l: Fix NULL dereference at hwdep open and release","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: us122l: Fix NULL dereference at hwdep open and release\n\nusb_stream_hwdep_open() and usb_stream_hwdep_release() pass the result of\nusb_ifnum_to_if() straight to usb_autopm_get_interface() and\nusb_autopm_put_interface(), without checking it for NULL.\n\nusb_ifnum_to_if() returns NULL once the device is gone, since\nusb_disable_device() clears udev->actconfig on disconnect.  The hwdep file\ncan outlive the disconnect: the card is released with\nsnd_card_free_when_closed(), so a process that keeps the character device\nopen reaches the driver's release callback after the USB configuration has\nbeen dropped, and interface_to_usbdev() then dereferences the NULL\ninterface at offsetof(struct device, parent).  The open callback has the\nsame problem when it races with the disconnect.\n\nCheck both lookups and fail the open with -ENODEV; in release, skip the\nruntime PM put when the interface is already gone and still run the rest\nof the per-file cleanup.  Move the us122l->first bookkeeping after the\nchecks so that a failed open no longer leaves a stale file pointer behind.","publishedAt":"2026-11-18T08:42:07.946Z","updatedAt":"2026-11-18T08:42:07.946Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"3be1ac0b73e9bf73eec0000197d0177ebeb3cc79","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"57dc5db514ab188a24cb300bda70a1ead3c9e479","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"b21aa212c9ba4536e66d65783cc883951c95ba01","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"820e0050866942b5498488496462d12c6ce1c7a9","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/3be1ac0b73e9bf73eec0000197d0177ebeb3cc79","https://git.kernel.org/stable/c/57dc5db514ab188a24cb300bda70a1ead3c9e479","https://git.kernel.org/stable/c/b21aa212c9ba4536e66d65783cc883951c95ba01","https://git.kernel.org/stable/c/820e0050866942b5498488496462d12c6ce1c7a9"],"weaknesses":[],"ingestedAt":"2026-11-18T08:50:06.114Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99315.json","commit":"8de78b04d0b061e79601bb9aa25ca1381ccc6385","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99315","state":"PUBLISHED","datePublished":"2026-11-18T08:42:07.946Z","dateUpdated":"2026-11-18T08:42:07.946Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.407Z"},"containers":{"cna":{"title":"ALSA: us122l: Fix NULL dereference at hwdep open and release","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: us122l: Fix NULL dereference at hwdep open and release\n\nusb_stream_hwdep_open() and usb_stream_hwdep_release() pass the result of\nusb_ifnum_to_if() straight to usb_autopm_get_interface() and\nusb_autopm_put_interface(), without checking it for NULL.\n\nusb_ifnum_to_if() returns NULL once the device is gone, since\nusb_disable_device() clears udev->actconfig on disconnect.  The hwdep file\ncan outlive the disconnect: the card is released with\nsnd_card_free_when_closed(), so a process that keeps the character device\nopen reaches the driver's release callback after the USB configuration has\nbeen dropped, and interface_to_usbdev() then dereferences the NULL\ninterface at offsetof(struct device, parent).  The open callback has the\nsame problem when it races with the disconnect.\n\nCheck both lookups and fail the open with -ENODEV; in release, skip the\nruntime PM put when the interface is already gone and still run the rest\nof the per-file cleanup.  Move the us122l->first bookkeeping after the\nchecks so that a failed open no longer leaves a stale file pointer behind."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"3be1ac0b73e9bf73eec0000197d0177ebeb3cc79","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"57dc5db514ab188a24cb300bda70a1ead3c9e479","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"b21aa212c9ba4536e66d65783cc883951c95ba01","versionType":"git"},{"version":"030a07e441296c372f946cd4065b5d831d8dc40c","status":"affected","lessThan":"820e0050866942b5498488496462d12c6ce1c7a9","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/3be1ac0b73e9bf73eec0000197d0177ebeb3cc79"},{"url":"https://git.kernel.org/stable/c/57dc5db514ab188a24cb300bda70a1ead3c9e479"},{"url":"https://git.kernel.org/stable/c/b21aa212c9ba4536e66d65783cc883951c95ba01"},{"url":"https://git.kernel.org/stable/c/820e0050866942b5498488496462d12c6ce1c7a9"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-18T08:42:07.946Z"},"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"}}}}}