CVE-2025-40162 Details
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.
A vulnerability in the Linux kernel's ASoC SoundWire utilities can lead to a NULL pointer dereference. This issue arises because the function 'devm_kasprintf()' can return NULL if memory allocation fails. The vulnerability occurs in the file 'acp-sdw-sof-mach.c', where 'devm_kasprintf()' is called to allocate a string for the DAI name before checking if the allocation was successful. If the allocation fails, the subsequent debug message that prints the DAI name can cause a NULL pointer dereference. This vulnerability affects the Linux kernel stable tree.
The vulnerability has been addressed in the Linux kernel. Users can upgrade to the latest version to apply the fix.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 12, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/095d692e5997ece300c89f10d903d5230090e6a0 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/5726b68473f7153a7f6294185e5998b7e2a230a2 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/a1cccbd19676fc36854535a7118ba2c27d0b84b3 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 12, 2025 | New CVE Received | kernel.org |
Volerion