CVE-2025-40275

ALSA: usb-audio: Fix NULL pointer dereference in snd_usb_mixer_controls_badd

No CVSS score yet EPSS 0.21%

Published 6 Dec 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2025-40275

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-40275 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 dereference in snd_usb_mixer_controls_badd

In snd_usb_create_streams(), for UAC version 3 devices, the Interface Association Descriptor (IAD) is retrieved via usb_ifnum_to_if(). If this call fails, a fallback routine attempts to obtain the IAD from the next interface and sets a BADD profile. However, snd_usb_mixer_controls_badd() assumes that the IAD retrieved from usb_ifnum_to_if() is always valid, without performing a NULL check. This can lead to a NULL pointer dereference when usb_ifnum_to_if() fails to find the interface descriptor.

This patch adds a NULL pointer check after calling usb_ifnum_to_if() in snd_usb_mixer_controls_badd() to prevent the dereference.

This issue was discovered by syzkaller, which triggered the bug by sending a crafted USB device descriptor.

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.7% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 17156f23e93c0f59e06dd2aaffd06221341caaee, before 23aea9c74aeea2625aaf4fbcc6beb9d09e30f9e4
affected from 17156f23e93c0f59e06dd2aaffd06221341caaee, before c5c08965ab96b16361e69a1e2a0e89dbcb99b5a6
affected from 17156f23e93c0f59e06dd2aaffd06221341caaee, before 9f282104627be5fbded3102ff9004f753c55a063
affected from 17156f23e93c0f59e06dd2aaffd06221341caaee, before 2762d3ea9c929ca4094541ca517c317ffa94625b
affected from 17156f23e93c0f59e06dd2aaffd06221341caaee, before 57f607c112966c21240c424b33e2cb71e121dcf0
affected from 17156f23e93c0f59e06dd2aaffd06221341caaee, before cbdbfc756f2990942138ed0138da9303b4dbf9ff
affected from 17156f23e93c0f59e06dd2aaffd06221341caaee, before 85568535893600024d7d8794f4f8b6428b521e0c
affected from 17156f23e93c0f59e06dd2aaffd06221341caaee, before 632108ec072ad64c8c83db6e16a7efee29ebfb74
Other versions: unaffected
Linux
affected 4.18
unaffected before 4.18
unaffected from 5.4.302 up to and including 5.4.*
unaffected from 5.10.247 up to and including 5.10.*
unaffected from 5.15.197 up to and including 5.15.*
unaffected from 6.1.159 up to and including 6.1.*
unaffected from 6.6.117 up to and including 6.6.*
unaffected from 6.12.59 up to and including 6.12.*
unaffected from 6.17.9 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-40275 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40275

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-40275
trivy image --scanners vuln IMAGE | grep CVE-2025-40275

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-40275 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.