CVE-2025-40162Published Nov 12, 2025 · Nov 12Updated Oct 28
ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails
Linux
Unrated
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.12.556.17.56.18In 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.
From the CVE record · Linux
In the Linux kernel's ASoC amd/sdw_utils component, a debug message can dereference a NULL pointer if devm_kasprintf() fails to allocate memory. The input does not describe an attacker path, authentication requirement, or user interaction.
Engineers running the Linux kernel should check their version; affected versions are not specified.