# CVE-2025-40085: ALSA: usb-audio: Fix NULL pointer deference in try_to_register_card

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 14% of CVEs (2026-11-30)
- Published: 2025-10-29T13:37:04.707Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ALSA: usb-audio: Fix NULL pointer deference in try_to_register_card

In try_to_register_card(), the return value of usb_ifnum_to_if() is
passed directly to usb_interface_claimed() without a NULL check, which
will lead to a NULL pointer dereference when creating an invalid
USB audio device. Fix this by adding a check to ensure the interface
pointer is valid before passing it to usb_interface_claimed().

(As written by CVE List.)

## Affected

- Linux Linux: from 28787ff9fbeaf57684eb64cc33e2ec8ceedf21b5 before 736159f7b296d7a95f7208eb4799639b1f8b16a0; from 39efc9c8a973ddff5918191525d1679d0fb368ea before 8d19a7ab28c7b9c207db5c5282afa8cc8595bcdb; from 39efc9c8a973ddff5918191525d1679d0fb368ea before 576312eb436326b44b7010f4d9ae2b698df075ea; from 39efc9c8a973ddff5918191525d1679d0fb368ea before bba7208765d26e5e36b87f21dacc2780b064f41f; from 39efc9c8a973ddff5918191525d1679d0fb368ea before 8503ac1a62075a085402e42a386b5c627c821a51; from 39efc9c8a973ddff5918191525d1679d0fb368ea before 28412b489b088fb88dff488305fd4e56bd47f6e4; 9d4f4dc3cd38e412c29a7626489fe48b79ebbf6c; 52076a41c128146c9df4a157e972cb17019313b1; from 5.15.75 before 5.15.196; from 5.19.17 before 5.20; from 6.0.3 before 6.1; 6.1 (not affected: before 6.1; from 5.15.196 up to 5.15.*; from 6.1.158 up to 6.1.*; from 6.6.114 up to 6.6.*; from 6.12.55 up to 6.12.*; from 6.17.5 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/736159f7b296d7a95f7208eb4799639b1f8b16a0>
- <https://git.kernel.org/stable/c/8d19a7ab28c7b9c207db5c5282afa8cc8595bcdb>
- <https://git.kernel.org/stable/c/576312eb436326b44b7010f4d9ae2b698df075ea>
- <https://git.kernel.org/stable/c/bba7208765d26e5e36b87f21dacc2780b064f41f>
- <https://git.kernel.org/stable/c/8503ac1a62075a085402e42a386b5c627c821a51>
- <https://git.kernel.org/stable/c/28412b489b088fb88dff488305fd4e56bd47f6e4>

## Sources

- CVE List: [CVE-2025-40085](https://www.cve.org/CVERecord?id=CVE-2025-40085), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2025-40085](https://nvd.nist.gov/vuln/detail/CVE-2025-40085), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40085 · Whole record: https://cve.day/CVE-2025-40085.json · Rebuilt by cve.day 2026-11-25T22:59:06.990Z
