CVE-2025-40085

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

No CVSS score yet EPSS 0.21%

Published 29 Oct 2025 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2025-40085

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40085 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.0% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 28787ff9fbeaf57684eb64cc33e2ec8ceedf21b5, before 736159f7b296d7a95f7208eb4799639b1f8b16a0
affected from 39efc9c8a973ddff5918191525d1679d0fb368ea, before 8d19a7ab28c7b9c207db5c5282afa8cc8595bcdb
affected from 39efc9c8a973ddff5918191525d1679d0fb368ea, before 576312eb436326b44b7010f4d9ae2b698df075ea
affected from 39efc9c8a973ddff5918191525d1679d0fb368ea, before bba7208765d26e5e36b87f21dacc2780b064f41f
affected from 39efc9c8a973ddff5918191525d1679d0fb368ea, before 8503ac1a62075a085402e42a386b5c627c821a51
affected from 39efc9c8a973ddff5918191525d1679d0fb368ea, before 28412b489b088fb88dff488305fd4e56bd47f6e4
affected 9d4f4dc3cd38e412c29a7626489fe48b79ebbf6c
affected 52076a41c128146c9df4a157e972cb17019313b1
affected from 5.15.75, before 5.15.196
affected from 5.19.17, before 5.20
affected from 6.0.3, before 6.1
Other versions: unaffected
Linux
affected 6.1
unaffected before 6.1
unaffected from 5.15.196 up to and including 5.15.*
unaffected from 6.1.158 up to and including 6.1.*
unaffected from 6.6.114 up to and including 6.6.*
unaffected from 6.12.55 up to and including 6.12.*
unaffected from 6.17.5 up to and including 6.17.*
unaffected 6.18 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40085 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40085

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-40085
trivy image --scanners vuln IMAGE | grep CVE-2025-40085

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-40085 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.