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

> 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.28% (percentile 13, 2026-11-26)
- **Published:** 2025-10-30T09:48:04.567Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, \< b044aa6ae63391ba40c93ca5d476d276cb17db1b; \>= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, \< 1c3f4b15eb1850558d7d4da74b98cffbb8121721; \>= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, \< 218a8504e62fc2c8a1fd12523346b7a2b9bd2474; \>= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, \< 47d1b9ca923b55c3f407788f1f15b04957e0e027; \>= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, \< 1cf11d80db5df805b538c942269e05a65bcaf5bc
- Anyone running Linux 5.17

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

## Affected and fixed versions

- Linux: \>= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, \< b044aa6ae63391ba40c93ca5d476d276cb17db1b; \>= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, \< 1c3f4b15eb1850558d7d4da74b98cffbb8121721; \>= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, \< 218a8504e62fc2c8a1fd12523346b7a2b9bd2474; \>= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, \< 47d1b9ca923b55c3f407788f1f15b04957e0e027; \>= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, \< 1cf11d80db5df805b538c942269e05a65bcaf5bc (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- Upgrade Linux to 1cf11d80db5df805b538c942269e05a65bcaf5bc 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-40097. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40097.md
Affected: Linux >= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, < b044aa6ae63391ba40c93ca5d476d276cb17db1b; >= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, < 1c3f4b15eb1850558d7d4da74b98cffbb8121721; >= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, < 218a8504e62fc2c8a1fd12523346b7a2b9bd2474; >= ae7abe36e352eddf8e30d3b…
Fixed in: Linux 1c3f4b15eb1850558d7d4da74b98cffbb8121721, Linux 218a8504e62fc2c8a1fd12523346b7a2b9bd2474, Linux 47d1b9ca923b55c3f407788f1f15b04957e0e027, Linux 1cf11d80db5df805b538c942269e05a65bcaf5bc

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, \< b044aa6ae63391ba40c93ca5d476d276cb17db1b; \>= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, \< 1c3f4b15eb1850558d7d4da74b98cffbb8121721; \>= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, \< 218a8504e62fc2c8a1fd12523346b7a2b9bd2474; \>= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, \< 47d1b9ca923b55c3f407788f1f15b04957e0e027; \>= ae7abe36e352eddf8e30d3b1ea3fb402514ba13b, \< 1cf11d80db5df805b538c942269e05a65bcaf5bc; Linux 5.17.

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

Yes. Fixed in Linux 1c3f4b15eb1850558d7d4da74b98cffbb8121721, Linux 218a8504e62fc2c8a1fd12523346b7a2b9bd2474, Linux 47d1b9ca923b55c3f407788f1f15b04957e0e027, Linux 1cf11d80db5df805b538c942269e05a65bcaf5bc. Upgrade Linux to 1cf11d80db5df805b538c942269e05a65bcaf5bc or later.

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

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/b044aa6ae63391ba40c93ca5d476d276cb17db1b>
- other: <https://git.kernel.org/stable/c/1c3f4b15eb1850558d7d4da74b98cffbb8121721>
- other: <https://git.kernel.org/stable/c/218a8504e62fc2c8a1fd12523346b7a2b9bd2474>
- other: <https://git.kernel.org/stable/c/47d1b9ca923b55c3f407788f1f15b04957e0e027>
- other: <https://git.kernel.org/stable/c/1cf11d80db5df805b538c942269e05a65bcaf5bc>

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

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