What’s Vulnerable › Vulnerabilities
CVE-2025-40224: hwmon: (cgbc-hwmon) Add missing NULL check after devm_kzalloc()
- Severity: unknown
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-12-04 · updated 2026-10-19
Description
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.
Affected products
- Linux kernel: 6.15 — fixed in 6.18
How to fix
Upgrade to a fixed version: Linux kernel 6.18. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/240b82b86a091c1aa49d951d4467425420a081a0
- https://git.kernel.org/stable/c/a09a5aa8bf258ddc99a22c30f17fe304b96b5350
Get alerted when CVE-2025-40224 or the next vulnerability affects your stack