# CVE-2025-40085: ALSA: usb-audio: Fix NULL pointer deference in try\_to\_register\_card

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-10-29T13:37:04.707Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 28787ff9fbeaf57684eb64cc33e2ec8ceedf21b5, \< 736159f7b296d7a95f7208eb4799639b1f8b16a0; \>= 39efc9c8a973ddff5918191525d1679d0fb368ea, \< 8d19a7ab28c7b9c207db5c5282afa8cc8595bcdb; \>= 39efc9c8a973ddff5918191525d1679d0fb368ea, \< 576312eb436326b44b7010f4d9ae2b698df075ea; \>= 39efc9c8a973ddff5918191525d1679d0fb368ea, \< bba7208765d26e5e36b87f21dacc2780b064f41f; \>= 39efc9c8a973ddff5918191525d1679d0fb368ea, \< 8503ac1a62075a085402e42a386b5c627c821a51; \>= 39efc9c8a973ddff5918191525d1679d0fb368ea, \< 28412b489b088fb88dff488305fd4e56bd47f6e4; 9d4f4dc3cd38e412c29a7626489fe48b79ebbf6c; 52076a41c128146c9df4a157e972cb17019313b1; \>= 5.15.75, \< 5.15.196; \>= 5.19.17, \< 5.20; …
- Anyone running Linux 6.1

## 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().

## Affected and fixed versions

- Linux: \>= 28787ff9fbeaf57684eb64cc33e2ec8ceedf21b5, \< 736159f7b296d7a95f7208eb4799639b1f8b16a0; \>= 39efc9c8a973ddff5918191525d1679d0fb368ea, \< 8d19a7ab28c7b9c207db5c5282afa8cc8595bcdb; \>= 39efc9c8a973ddff5918191525d1679d0fb368ea, \< 576312eb436326b44b7010f4d9ae2b698df075ea; \>= 39efc9c8a973ddff5918191525d1679d0fb368ea, \< bba7208765d26e5e36b87f21dacc2780b064f41f; \>= 39efc9c8a973ddff5918191525d1679d0fb368ea, \< 8503ac1a62075a085402e42a386b5c627c821a51; \>= 39efc9c8a973ddff5918191525d1679d0fb368ea, \< 28412b489b088fb88dff488305fd4e56bd47f6e4; 9d4f4dc3cd38e412c29a7626489fe48b79ebbf6c; 52076a41c128146c9df4a157e972cb17019313b1; \>= 5.15.75, \< 5.15.196; \>= 5.19.17, \< 5.20; … (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40085. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40085.md
Affected: Linux >= 28787ff9fbeaf57684eb64cc33e2ec8ceedf21b5, < 736159f7b296d7a95f7208eb4799639b1f8b16a0; >= 39efc9c8a973ddff5918191525d1679d0fb368ea, < 8d19a7ab28c7b9c207db5c5282afa8cc8595bcdb; >= 39efc9c8a973ddff5918191525d1679d0fb368ea, < 576312eb436326b44b7010f4d9ae2b698df075ea; >= 39efc9c8a973ddff5918191…
Fixed in: Linux 736159f7b296d7a95f7208eb4799639b1f8b16a0, Linux 8d19a7ab28c7b9c207db5c5282afa8cc8595bcdb, Linux 576312eb436326b44b7010f4d9ae2b698df075ea, Linux 8503ac1a62075a085402e42a386b5c627c821a51, Linux 28412b489b088fb88dff488305fd4e56bd47f6e4, Linux 5.15.196, Linux 5.20

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40085 being exploited?

There is no confirmed exploitation: CVE-2025-40085 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40085?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40085?

Linux \>= 28787ff9fbeaf57684eb64cc33e2ec8ceedf21b5, \< 736159f7b296d7a95f7208eb4799639b1f8b16a0; \>= 39efc9c8a973ddff5918191525d1679d0fb368ea, \< 8d19a7ab28c7b9c207db5c5282afa8cc8595bcdb; \>= 39efc9c8a973ddff5918191525d1679d0fb368ea, \< 576312eb436326b44b7010f4d9ae2b698df075ea; \>= 39efc9c8a973ddff5918191525d1679d0fb368ea, \< bba7208765d26e5e36b87f21dacc2780b064f41f; \>= 39efc9c8a973ddff5918191525d1679d0fb368ea, \< 8503ac1a62075a085402e42a386b5c627c821a51; \>= 39efc9c8a973ddff5918191525d1679d0fb368ea, \< 28412b489b088fb88dff488305fd4e56bd47f6e4; 9d4f4dc3cd38e412c29a7626489fe48b79ebbf6c; 52076a41c128146c9df4a157e972cb17019313b1; \>= 5.15.75, \< 5.15.196; \>= 5.19.17, \< 5.20; …; Linux 6.1.

### Is there a fix for CVE-2025-40085?

Yes. Fixed in Linux 736159f7b296d7a95f7208eb4799639b1f8b16a0, Linux 8d19a7ab28c7b9c207db5c5282afa8cc8595bcdb, Linux 576312eb436326b44b7010f4d9ae2b698df075ea, Linux 8503ac1a62075a085402e42a386b5c627c821a51, Linux 28412b489b088fb88dff488305fd4e56bd47f6e4, Linux 5.15.196, Linux 5.20. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-40085?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40085>

HTML: <https://flawdb.com/CVE-2025-40085> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40085>
