ALSA: hda: Fix missing pointer check in hda_component_manager_init function
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.189, 6.12.59, 6.17.5, 6.6.158
- CVEs
- CVE-2025-40097
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 01:19 UTC · Revision 1
Source evidence
ALSA: hda: Fix missing pointer check in hda_component_manager_init function
core-osv · Original sourcePublished 30 Oct 2025, 09:48 UTC
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.
osv:CVE-2025-40097
Kernel
Fixed versions: 6.1.189, 6.6.158, 6.12.59, 6.17.5
Complete source record
{
"id": "1190d57be2184de6a9eacd8892f78dc9c340c3fae0cb630d51a9eeb157170c0d",
"url": "https://osv.dev/vulnerability/CVE-2025-40097",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ALSA: hda: Fix missing pointer check in hda_component_manager_init function",
"summary": "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.",
"evidence": "osv:CVE-2025-40097",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.189",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.158",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.59",
"evidence": "/affected/1/ranges"
},
{
"value": "6.17.5",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2025-40097",
"aliases": [
"CVE-2025-40097"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "ae7abe36e352eddf8e30d3b1ea3fb402514ba13b"
},
{
"fixed": "b044aa6ae63391ba40c93ca5d476d276cb17db1b"
},
{
"fixed": "1c3f4b15eb1850558d7d4da74b98cffbb8121721"
},
{
"fixed": "218a8504e62fc2c8a1fd12523346b7a2b9bd2474"
},
{
"fixed": "47d1b9ca923b55c3f407788f1f15b04957e0e027"
},
{
"fixed": "1cf11d80db5df805b538c942269e05a65bcaf5bc"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40097.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.17.0"
},
{
"fixed": "6.1.189"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.158"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.59"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.17.5"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40097.json"
}
}
],
"modified": "2026-10-28T02:30:24.743772453Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/1c3f4b15eb1850558d7d4da74b98cffbb8121721",
"https://git.kernel.org/stable/c/1cf11d80db5df805b538c942269e05a65bcaf5bc",
"https://git.kernel.org/stable/c/218a8504e62fc2c8a1fd12523346b7a2b9bd2474",
"https://git.kernel.org/stable/c/47d1b9ca923b55c3f407788f1f15b04957e0e027",
"https://git.kernel.org/stable/c/b044aa6ae63391ba40c93ca5d476d276cb17db1b",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40097.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-40097",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40097.json"
}
},
"related_cves": [
{
"value": "CVE-2025-40097",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 491540,
"published_at": "2025-10-30T09:48:04.567+00:00"
}