CVE-2025-40224

published 4 Dec 2025 · updated 11 May 2026

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

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 240b82b86a091c1aa49d951d4467425420a081a0 and Kernel a09a5aa8bf258ddc99a22c30f17fe304b96b5350.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.15, >=08ebc9def79fc0c4dbb6ecc39263006e3f98b750 <240b82b86a091c1aa49d951d4467425420a081a0, >=08ebc9def79fc0c4dbb6ecc39263006e3f98b750 <a09a5aa8bf258ddc99a22c30f17fe304b96b5350240b82b86a091c1aa49d951d4467425420a081a0, a09a5aa8bf258ddc99a22c30f17fe304b96b5350

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-40224 severity on Zeptric[![CVE-2025-40224](https://zeptric.io/badge/cve/CVE-2025-40224.svg)](https://zeptric.io/cve/CVE-2025-40224)