Not scored
ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails
- Severity
- Not scored
- Exploit likelihood
- 0.20% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails devm_kasprintf() may return NULL on memory allocation failure, but the debug message prints cpus->dai_name before checking it. Move the dev_dbg() call after the NULL check to prevent potential NULL pointer dereference.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from cb8ea62e6402067ba092d4c1d66a9440513a572b before 095d692e5997ece300c89f10d903d5230090e6a0, from cb8ea62e6402067ba092d4c1d66a9440513a572b before a1cccbd19676fc36854535a7118ba2c27d0b84b3, from cb8ea62e6402067ba092d4c1d66a9440513a572b before 5726b68473f7153a7f6294185e5998b7e2a230a2, 6.12 Not affected: before 6.12, from 6.12.55 up to 6.12.*, from 6.17.5 up to 6.17.*, from 6.18 up to * | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails devm_kasprintf() may return NULL on memory allocation failure, but the debug message prints cpus->dai_name before checking it. Move the dev_dbg() call after the NULL check to prevent potential NULL pointer dereference.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ASoC: amd/sdw_utils: evitar desreferencia NULL cuando devm_kasprintf() falla devm_kasprintf() puede devolver NULL en caso de fallo en la asignación de memoria, pero el mensaje de depuración imprime cpus->dai_name antes de comprobarlo. Mover la llamada a dev_dbg() después de la comprobación de NULL para evitar una posible desreferencia de puntero NULL.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-40162 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-40162 changed 2026-10-19 | Public domain |