{"id":"CVE-2025-40097","aliases":["CVE-2025-40097"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: hda: Fix missing pointer check in hda_component_manager_init function","summary":"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|-> component_match_add\n    |-> component_match_add_release\n        |-> __component_match_add ( ... ,**matchptr, ... )\n            |-> *matchptr = ERR_PTR(-ENOMEM);       // assign\n|-> component_master_add_with_match( ...  match)\n    |-> component_match_realloc(match, match->num); // dereference\n\nAdd IS_ERR() check to prevent the crash.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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|-> component_match_add\n    |-> component_match_add_release\n        |-> __component_match_add ( ... ,**matchptr, ... )\n            |-> *matchptr = ERR_PTR(-ENOMEM);       // assign\n|-> component_master_add_with_match( ...  match)\n    |-> component_match_realloc(match, match->num); // dereference\n\nAdd IS_ERR() check to prevent the crash.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nALSA: hda: Corrección de la comprobación de puntero faltante en la función hda_component_manager_init\n\nLa función __component_match_add puede asignar al puntero 'matchptr' el valor ERR_PTR(-ENOMEM), el cual será desreferenciado posteriormente.\n\nLa pila de llamadas que conduce al error es la siguiente:\n\nhda_component_manager_init\n|-> component_match_add\n    |-> component_match_add_release\n        |-> __component_match_add ( ... ,**matchptr, ... )\n            |-> *matchptr = ERR_PTR(-ENOMEM);       // asignación\n|-> component_master_add_with_match( ...  match)\n    |-> component_match_realloc(match, match->num); // desreferenciación\n\nAñadir la comprobación IS_ERR() para prevenir el bloqueo.\n\nEncontrado por Linux Verification Center (linuxtesting.org) con SVACE.","source":"nvd"}],"published":"2025-10-30T09:48:04.567Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ae7abe36e352eddf8e30d3b1ea3fb402514ba13b","fixed":"b044aa6ae63391ba40c93ca5d476d276cb17db1b","status":"affected"},{"type":"git","introduced":"ae7abe36e352eddf8e30d3b1ea3fb402514ba13b","fixed":"1c3f4b15eb1850558d7d4da74b98cffbb8121721","status":"affected"},{"type":"git","introduced":"ae7abe36e352eddf8e30d3b1ea3fb402514ba13b","fixed":"218a8504e62fc2c8a1fd12523346b7a2b9bd2474","status":"affected"},{"type":"git","introduced":"ae7abe36e352eddf8e30d3b1ea3fb402514ba13b","fixed":"47d1b9ca923b55c3f407788f1f15b04957e0e027","status":"affected"},{"type":"git","introduced":"ae7abe36e352eddf8e30d3b1ea3fb402514ba13b","fixed":"1cf11d80db5df805b538c942269e05a65bcaf5bc","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.17","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.59","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.5","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/b044aa6ae63391ba40c93ca5d476d276cb17db1b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1c3f4b15eb1850558d7d4da74b98cffbb8121721","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/218a8504e62fc2c8a1fd12523346b7a2b9bd2474","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/47d1b9ca923b55c3f407788f1f15b04957e0e027","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1cf11d80db5df805b538c942269e05a65bcaf5bc","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40097","url":"https://www.cve.org/CVERecord?id=CVE-2025-40097","licence":"CVE Terms of Use","modified":"2026-10-03T10:55:28.438Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40097","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40097","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:07.035Z","epss":{"score":0.00199,"percentile":0.10243,"date":"2026-12-01T12:00:22.000Z"}}