Bug 2414467 (CVE-2025-40162) - CVE-2025-40162 kernel: ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails
Summary: CVE-2025-40162 kernel: ASoC: amd/sdw_utils: avoid NULL deref when devm_kaspri...
Keywords:
Status: NEW
Alias: CVE-2025-40162
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-11-12 11:01 UTC by OSIDB Bzimport
Modified: 2025-12-10 00:42 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-11-12 11:01:35 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.