ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails

Summary

CVECVE-2025-40162
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-11-12 11:15:46 UTC
Updated2026-10-19 21:10:00 UTC
DescriptionIn 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

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report