CVE-2025-40224: hwmon: (cgbc-hwmon) Add missing NULL check after devm_kzalloc()

Published Dec 4, 2025
·
Updated

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

hwmon: (cgbc-hwmon) Add missing NULL check after devmkzalloc()

The driver allocates memory for sensor data using devmkzalloc(), but did not check if the allocation succeeded. In case of memory allocation failure, dereferencing the NULL pointer would lead to a kernel crash.

Add a NULL pointer check and return -ENOMEM to handle allocation failure properly.

Affected Software

1 affected component
Linux Linux kernel

Event History

Dec 4, 2025
CVE Published
via MITRE·03:31 PM
Data Sourced
via MITRE·03:31 PM
Description
Data Sourced
via NVD·04:16 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2025-40224?

CVE-2025-40224 is classified as a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-40224?

To fix CVE-2025-40224, update to the latest version of the Linux kernel that includes the necessary patch.

3

What impact does CVE-2025-40224 have on system performance?

CVE-2025-40224 could lead to potential system instability due to unhandled memory allocation failures.

4

Is CVE-2025-40224 exploitable remotely?

CVE-2025-40224 is not considered remotely exploitable as it pertains to local driver code in the Linux kernel.

5

What software versions are affected by CVE-2025-40224?

CVE-2025-40224 affects various versions of the Linux kernel that utilize the hwmon subsystem.

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