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

Published Nov 12, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ASoC: amd/sdwutils: avoid NULL deref when devmkasprintf() fails

devmkasprintf() may return NULL on memory allocation failure, but the debug message prints cpus->dainame before checking it. Move the devdbg() call after the NULL check to prevent potential NULL pointer dereference.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Move the dev_dbg() call until after checking whether devm_kasprintf() returned NULL, so cpus->dai_name is not dereferenced when memory allocation fails.

Event History

Nov 12, 2025
CVE Published
via MITRE·10:26 AM
Data Sourced
via MITRE·10:26 AM
Description
Data Sourced
via NVD·11:15 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2025-40162?

CVE-2025-40162 has a medium severity level due to the potential for NULL dereference leading to denial of service.

2

How do I fix CVE-2025-40162?

To fix CVE-2025-40162, update your Linux kernel to the latest version where this vulnerability has been addressed.

3

What impact does CVE-2025-40162 have on my system?

CVE-2025-40162 can cause system instability by triggering a NULL dereference in the audio subsystem.

4

Is my Linux kernel vulnerable to CVE-2025-40162?

If you are using an affected version of the Linux kernel prior to the patch, your system may be vulnerable to CVE-2025-40162.

5

When was CVE-2025-40162 disclosed?

CVE-2025-40162 was disclosed as part of the ongoing security updates for the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203