ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails
Summary
| CVE | CVE-2025-40162 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2025-11-12 11:15:46 UTC |
| Updated | 2026-10-19 21:10:00 UTC |
| 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. |
Risk And Classification
EPSS: 0.001970000 probability, percentile 0.088390000 (date 2026-10-19)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected cb8ea62e6402067ba092d4c1d66a9440513a572b 095d692e5997ece300c89f10d903d5230090e6a0 git | Not specified |
| CNA | Linux | Linux | affected cb8ea62e6402067ba092d4c1d66a9440513a572b a1cccbd19676fc36854535a7118ba2c27d0b84b3 git | Not specified |
| CNA | Linux | Linux | affected cb8ea62e6402067ba092d4c1d66a9440513a572b 5726b68473f7153a7f6294185e5998b7e2a230a2 git | Not specified |
| CNA | Linux | Linux | affected 6.12 | Not specified |
| CNA | Linux | Linux | unaffected 6.12 semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.55 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.17.5 6.17.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/a1cccbd19676fc36854535a7118ba2c27d0b84b3 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/5726b68473f7153a7f6294185e5998b7e2a230a2 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/095d692e5997ece300c89f10d903d5230090e6a0 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.