# CVE-2025-40275: ALSA: usb-audio: Fix NULL pointer dereference in snd\_usb\_mixer\_controls\_badd

> 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-12-06T21:50:57.914Z
- **Modified:** 2026-10-15T19:10:00.173Z

## Who should check

- Anyone running Linux \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 23aea9c74aeea2625aaf4fbcc6beb9d09e30f9e4; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< c5c08965ab96b16361e69a1e2a0e89dbcb99b5a6; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 9f282104627be5fbded3102ff9004f753c55a063; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 2762d3ea9c929ca4094541ca517c317ffa94625b; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 57f607c112966c21240c424b33e2cb71e121dcf0; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< cbdbfc756f2990942138ed0138da9303b4dbf9ff; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 85568535893600024d7d8794f4f8b6428b521e0c; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 632108ec072ad64c8c83db6e16a7efee29ebfb74
- Anyone running Linux 4.18

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

## Affected and fixed versions

- Linux: \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 23aea9c74aeea2625aaf4fbcc6beb9d09e30f9e4; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< c5c08965ab96b16361e69a1e2a0e89dbcb99b5a6; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 9f282104627be5fbded3102ff9004f753c55a063; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 2762d3ea9c929ca4094541ca517c317ffa94625b; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 57f607c112966c21240c424b33e2cb71e121dcf0; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< cbdbfc756f2990942138ed0138da9303b4dbf9ff; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 85568535893600024d7d8794f4f8b6428b521e0c; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 632108ec072ad64c8c83db6e16a7efee29ebfb74 (cvelist)
- Linux: 4.18 (cvelist)

## Mitigation

- Upgrade Linux to 632108ec072ad64c8c83db6e16a7efee29ebfb74 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-40275.md
Affected: Linux >= 17156f23e93c0f59e06dd2aaffd06221341caaee, < 23aea9c74aeea2625aaf4fbcc6beb9d09e30f9e4; >= 17156f23e93c0f59e06dd2aaffd06221341caaee, < c5c08965ab96b16361e69a1e2a0e89dbcb99b5a6; >= 17156f23e93c0f59e06dd2aaffd06221341caaee, < 9f282104627be5fbded3102ff9004f753c55a063; >= 17156f23e93c0f59e06dd2a…
Fixed in: Linux 23aea9c74aeea2625aaf4fbcc6beb9d09e30f9e4, Linux 9f282104627be5fbded3102ff9004f753c55a063, Linux 2762d3ea9c929ca4094541ca517c317ffa94625b, Linux 57f607c112966c21240c424b33e2cb71e121dcf0, Linux 85568535893600024d7d8794f4f8b6428b521e0c, Linux 632108ec072ad64c8c83db6e16a7efee29ebfb74

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-40275 being exploited?

There is no confirmed exploitation: CVE-2025-40275 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-40275?

It has no CVSS score yet. Unknown.

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

Linux \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 23aea9c74aeea2625aaf4fbcc6beb9d09e30f9e4; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< c5c08965ab96b16361e69a1e2a0e89dbcb99b5a6; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 9f282104627be5fbded3102ff9004f753c55a063; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 2762d3ea9c929ca4094541ca517c317ffa94625b; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 57f607c112966c21240c424b33e2cb71e121dcf0; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< cbdbfc756f2990942138ed0138da9303b4dbf9ff; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 85568535893600024d7d8794f4f8b6428b521e0c; \>= 17156f23e93c0f59e06dd2aaffd06221341caaee, \< 632108ec072ad64c8c83db6e16a7efee29ebfb74; Linux 4.18.

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

Yes. Fixed in Linux 23aea9c74aeea2625aaf4fbcc6beb9d09e30f9e4, Linux 9f282104627be5fbded3102ff9004f753c55a063, Linux 2762d3ea9c929ca4094541ca517c317ffa94625b, Linux 57f607c112966c21240c424b33e2cb71e121dcf0, Linux 85568535893600024d7d8794f4f8b6428b521e0c, Linux 632108ec072ad64c8c83db6e16a7efee29ebfb74. Upgrade Linux to 632108ec072ad64c8c83db6e16a7efee29ebfb74 or later.

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

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/23aea9c74aeea2625aaf4fbcc6beb9d09e30f9e4>
- other: <https://git.kernel.org/stable/c/c5c08965ab96b16361e69a1e2a0e89dbcb99b5a6>
- other: <https://git.kernel.org/stable/c/9f282104627be5fbded3102ff9004f753c55a063>
- other: <https://git.kernel.org/stable/c/2762d3ea9c929ca4094541ca517c317ffa94625b>
- other: <https://git.kernel.org/stable/c/57f607c112966c21240c424b33e2cb71e121dcf0>
- other: <https://git.kernel.org/stable/c/cbdbfc756f2990942138ed0138da9303b4dbf9ff>
- other: <https://git.kernel.org/stable/c/85568535893600024d7d8794f4f8b6428b521e0c>
- other: <https://git.kernel.org/stable/c/632108ec072ad64c8c83db6e16a7efee29ebfb74>

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

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