{"id":"CVE-2025-40097","summary":"ALSA: hda: Fix missing pointer check in hda_component_manager_init function","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hda: Fix missing pointer check in hda_component_manager_init function\n\nThe __component_match_add function may assign the 'matchptr' pointer\nthe value ERR_PTR(-ENOMEM), which will subsequently be dereferenced.\n\nThe call stack leading to the error looks like this:\n\nhda_component_manager_init\n|-\u003e component_match_add\n    |-\u003e component_match_add_release\n        |-\u003e __component_match_add ( ... ,**matchptr, ... )\n            |-\u003e *matchptr = ERR_PTR(-ENOMEM);       // assign\n|-\u003e component_master_add_with_match( ...  match)\n    |-\u003e component_match_realloc(match, match-\u003enum); // dereference\n\nAdd IS_ERR() check to prevent the crash.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.","modified":"2026-05-07T04:18:40.623221Z","published":"2025-10-30T09:48:04.567Z","related":["SUSE-SU-2026:0447-1","SUSE-SU-2026:0471-1","SUSE-SU-2026:0472-1","SUSE-SU-2026:0587-1","SUSE-SU-2026:20477-1","SUSE-SU-2026:20498-1","SUSE-SU-2026:20555-1","SUSE-SU-2026:20599-1","SUSE-SU-2026:20615-1","SUSE-SU-2026:20845-1","SUSE-SU-2026:20876-1","openSUSE-SU-2025:15702-1","openSUSE-SU-2026:10301-1","openSUSE-SU-2026:20287-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40097.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1cf11d80db5df805b538c942269e05a65bcaf5bc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/218a8504e62fc2c8a1fd12523346b7a2b9bd2474"},{"type":"WEB","url":"https://git.kernel.org/stable/c/47d1b9ca923b55c3f407788f1f15b04957e0e027"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40097.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40097"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ae7abe36e352eddf8e30d3b1ea3fb402514ba13b"},{"fixed":"218a8504e62fc2c8a1fd12523346b7a2b9bd2474"},{"fixed":"47d1b9ca923b55c3f407788f1f15b04957e0e027"},{"fixed":"1cf11d80db5df805b538c942269e05a65bcaf5bc"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40097.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.17.0"},{"fixed":"6.12.59"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40097.json"}}],"schema_version":"1.7.5"}