{"id":"CVE-2025-40085","summary":"ALSA: usb-audio: Fix NULL pointer deference in try_to_register_card","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: usb-audio: Fix NULL pointer deference in try_to_register_card\n\nIn try_to_register_card(), the return value of usb_ifnum_to_if() is\npassed directly to usb_interface_claimed() without a NULL check, which\nwill lead to a NULL pointer dereference when creating an invalid\nUSB audio device. Fix this by adding a check to ensure the interface\npointer is valid before passing it to usb_interface_claimed().","modified":"2026-04-16T04:36:33.724140689Z","published":"2025-10-29T13:37:04.707Z","related":["SUSE-SU-2025:21040-1","SUSE-SU-2025:21052-1","SUSE-SU-2025:21056-1","SUSE-SU-2025:21064-1","SUSE-SU-2025:21080-1","SUSE-SU-2025:21147-1","SUSE-SU-2025:21180-1","SUSE-SU-2025:4057-1","SUSE-SU-2025:4128-1","SUSE-SU-2025:4132-1","SUSE-SU-2025:4140-1","SUSE-SU-2025:4141-1","SUSE-SU-2025:4301-1","openSUSE-SU-2025:15702-1","openSUSE-SU-2025:20091-1","openSUSE-SU-2026:10301-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40085.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/28412b489b088fb88dff488305fd4e56bd47f6e4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/576312eb436326b44b7010f4d9ae2b698df075ea"},{"type":"WEB","url":"https://git.kernel.org/stable/c/736159f7b296d7a95f7208eb4799639b1f8b16a0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8503ac1a62075a085402e42a386b5c627c821a51"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8d19a7ab28c7b9c207db5c5282afa8cc8595bcdb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bba7208765d26e5e36b87f21dacc2780b064f41f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40085.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40085"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"28787ff9fbeaf57684eb64cc33e2ec8ceedf21b5"},{"fixed":"736159f7b296d7a95f7208eb4799639b1f8b16a0"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"39efc9c8a973ddff5918191525d1679d0fb368ea"},{"fixed":"8d19a7ab28c7b9c207db5c5282afa8cc8595bcdb"},{"fixed":"576312eb436326b44b7010f4d9ae2b698df075ea"},{"fixed":"bba7208765d26e5e36b87f21dacc2780b064f41f"},{"fixed":"8503ac1a62075a085402e42a386b5c627c821a51"},{"fixed":"28412b489b088fb88dff488305fd4e56bd47f6e4"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"9d4f4dc3cd38e412c29a7626489fe48b79ebbf6c"},{"last_affected":"52076a41c128146c9df4a157e972cb17019313b1"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40085.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.15.196"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.158"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.0"},{"fixed":"6.6.114"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.12.55"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.17.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40085.json"}}],"schema_version":"1.7.5"}