
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-40224 is a NULL pointer dereference vulnerability in the Linux kernel's cgbc-hwmon hardware monitoring driver. The flaw arises from a missing NULL check after a devm_kzalloc() memory allocation call for sensor data; if the allocation fails, the driver dereferences the NULL pointer, causing a kernel crash. It was published on December 4, 2025, and affects Linux kernel versions from the introduction of the cgbc-hwmon driver up to (but not including) the patched commits targeting the 6.15 and 6.17.6 stable branches (Feedly, ENISA EUVD). No CVSS base score has been assigned at this time, and the EPSS score is approximately 0.018% (Feedly).
The root cause is a missing NULL pointer check (CWE-476: NULL Pointer Dereference) following a devm_kzalloc() call in the cgbc-hwmon driver, which allocates memory for sensor data structures during device initialization. If the kernel cannot satisfy the memory allocation request, devm_kzalloc() returns NULL; without a validity check, the driver proceeds to dereference this NULL pointer, triggering a kernel panic. The fix adds an explicit NULL check and returns -ENOMEM on allocation failure, following standard Linux kernel error-handling conventions (Feedly, ENISA EUVD). Patches are referenced at kernel stable commits 240b82b86a091c1aa49d951d4467425420a081a0 and a09a5aa8bf258ddc99a22c30f17fe304b96b5350 (Kernel Git, Kernel Git).
Successful triggering of this vulnerability causes a kernel crash (denial of service), as the NULL pointer dereference results in a kernel panic on affected systems. The impact is limited to availability — confidentiality and integrity are not directly affected. Exploitation requires the ability to trigger memory allocation failure in the context of the cgbc-hwmon driver, which limits the practical attack surface primarily to local or privileged contexts on systems using Congatec board controller hardware (Feedly, ENISA EUVD).
There is no known public exploit code, active in-the-wild exploitation, or threat actor attribution associated with CVE-2025-40224. The EPSS score is approximately 0.018%, indicating a very low probability of exploitation in the near term (Feedly). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation would require local access and the ability to induce memory pressure during driver initialization, making opportunistic exploitation unlikely.
Apply the upstream Linux kernel patches that add the missing NULL check in the cgbc-hwmon driver. The fixes are available in stable commits 240b82b86a091c1aa49d951d4467425420a081a0 (targeting the 6.15 branch) and a09a5aa8bf258ddc99a22c30f17fe304b96b5350 (targeting the 6.17.6 branch), as well as in kernel version 6.18 (Feedly, ENISA EUVD). Users running affected kernel versions on systems with Congatec board controller hardware should update to a patched kernel release. As a temporary workaround, blacklisting the cgbc-hwmon module (modprobe -r cgbc-hwmon or adding it to /etc/modprobe.d/blacklist.conf) will prevent the vulnerable code path from executing, at the cost of losing hardware monitoring functionality.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."