{"id":"CVE-2025-40162","summary":"ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails\n\ndevm_kasprintf() may return NULL on memory allocation failure,\nbut the debug message prints cpus-\u003edai_name before checking it.\nMove the dev_dbg() call after the NULL check to prevent potential\nNULL pointer dereference.","modified":"2026-04-02T12:48:18.498845Z","published":"2025-11-12T10:26:22.883Z","related":["SUSE-SU-2026:20012-1","SUSE-SU-2026:20015-1","SUSE-SU-2026:20021-1","openSUSE-SU-2025:20172-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40162.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/095d692e5997ece300c89f10d903d5230090e6a0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5726b68473f7153a7f6294185e5998b7e2a230a2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a1cccbd19676fc36854535a7118ba2c27d0b84b3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40162.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40162"},{"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":"cb8ea62e6402067ba092d4c1d66a9440513a572b"},{"fixed":"095d692e5997ece300c89f10d903d5230090e6a0"},{"fixed":"a1cccbd19676fc36854535a7118ba2c27d0b84b3"},{"fixed":"5726b68473f7153a7f6294185e5998b7e2a230a2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40162.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.12.0"},{"fixed":"6.12.55"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40162.json"}}],"schema_version":"1.7.5"}