Bug 2418835 (CVE-2025-40224) - CVE-2025-40224 kernel: hwmon: (cgbc-hwmon) Add missing NULL check after devm_kzalloc()
Summary: CVE-2025-40224 kernel: hwmon: (cgbc-hwmon) Add missing NULL check after devm_...
Keywords:
Status: NEW
Alias: CVE-2025-40224
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-04 16:03 UTC by OSIDB Bzimport
Modified: 2025-12-19 12:44 UTC (History)
0 users

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-04 16:03:16 UTC
In the Linux kernel, the following vulnerability has been resolved:

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

The driver allocates memory for sensor data using devm_kzalloc(), 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.


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