CVE-2025-40224
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
04/12/2025
Last modified:
04/12/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
hwmon: (cgbc-hwmon) Add missing NULL check after devm_kzalloc()<br />
<br />
The driver allocates memory for sensor data using devm_kzalloc(), but<br />
did not check if the allocation succeeded. In case of memory allocation<br />
failure, dereferencing the NULL pointer would lead to a kernel crash.<br />
<br />
Add a NULL pointer check and return -ENOMEM to handle allocation failure<br />
properly.



