# CVE-2025-40162: ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-11-12T10:26:22.883Z
- Modified: 2026-10-19T21:10:00.160Z
- 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.

(As written by CVE List.)

## Affected

- 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 *)

## References

- <https://git.kernel.org/stable/c/095d692e5997ece300c89f10d903d5230090e6a0>
- <https://git.kernel.org/stable/c/a1cccbd19676fc36854535a7118ba2c27d0b84b3>
- <https://git.kernel.org/stable/c/5726b68473f7153a7f6294185e5998b7e2a230a2>

## Sources

- CVE List: [CVE-2025-40162](https://www.cve.org/CVERecord?id=CVE-2025-40162), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-40162](https://nvd.nist.gov/vuln/detail/CVE-2025-40162), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40162 · Whole record: https://cve.day/CVE-2025-40162.json · Rebuilt by cve.day 2026-11-25T22:59:07.561Z
