{"id":"CVE-2026-99315","aliases":["CVE-2026-99315"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: us122l: Fix NULL dereference at hwdep open and release","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-18T08:42:07.946Z","modified":"2026-11-23T08:17:36.670Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"030a07e441296c372f946cd4065b5d831d8dc40c","fixed":"92d766c3d2b5d2fb45f4e0215dfab944f23c1bbc","status":"affected"},{"type":"git","introduced":"030a07e441296c372f946cd4065b5d831d8dc40c","fixed":"c290616fbb7a4abb40ce4df0d53a1815e6442784","status":"affected"},{"type":"git","introduced":"030a07e441296c372f946cd4065b5d831d8dc40c","fixed":"ab9b4ed047713411dcb354c37a0aad54d06441db","status":"affected"},{"type":"git","introduced":"030a07e441296c372f946cd4065b5d831d8dc40c","fixed":"ba9a21ab9a6bf37a6b40b8dc4df651daae9ee758","status":"affected"},{"type":"git","introduced":"030a07e441296c372f946cd4065b5d831d8dc40c","fixed":"3be1ac0b73e9bf73eec0000197d0177ebeb3cc79","status":"affected"},{"type":"git","introduced":"030a07e441296c372f946cd4065b5d831d8dc40c","fixed":"57dc5db514ab188a24cb300bda70a1ead3c9e479","status":"affected"},{"type":"git","introduced":"030a07e441296c372f946cd4065b5d831d8dc40c","fixed":"b21aa212c9ba4536e66d65783cc883951c95ba01","status":"affected"},{"type":"git","introduced":"030a07e441296c372f946cd4065b5d831d8dc40c","fixed":"820e0050866942b5498488496462d12c6ce1c7a9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.28","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.28","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.118","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.64","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.5","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/92d766c3d2b5d2fb45f4e0215dfab944f23c1bbc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c290616fbb7a4abb40ce4df0d53a1815e6442784","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ab9b4ed047713411dcb354c37a0aad54d06441db","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ba9a21ab9a6bf37a6b40b8dc4df651daae9ee758","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3be1ac0b73e9bf73eec0000197d0177ebeb3cc79","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/57dc5db514ab188a24cb300bda70a1ead3c9e479","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b21aa212c9ba4536e66d65783cc883951c95ba01","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/820e0050866942b5498488496462d12c6ce1c7a9","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99315","url":"https://www.cve.org/CVERecord?id=CVE-2026-99315","licence":"CVE Terms of Use","modified":"2026-11-23T08:01:19.635Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99315","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99315","licence":"Public domain","modified":"2026-11-23T08:17:36.670Z"}],"updatedAt":"2026-11-25T22:59:51.771Z","epss":{"score":0.00223,"percentile":0.13853,"date":"2026-12-01T12:00:22.000Z"}}