CVE-2025-40224 Details
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.
A vulnerability exists in the Linux kernel's hwmon driver for the Congatec Board Controller. The issue arises because the driver allocates memory for sensor data using the devm_kzalloc() function without verifying if the allocation was successful. This oversight can lead to a kernel crash if the allocated memory is NULL and subsequently dereferenced. The vulnerability affects the stable version of the Linux kernel.
Users can apply the latest patch available in the Linux kernel stable tree, which adds the necessary NULL pointer check and properly handles memory allocation failures. Instructions for downloading this patched version can be found in the Linux kernel Git repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 4, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/240b82b86a091c1aa49d951d4467425420a081a0 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/a09a5aa8bf258ddc99a22c30f17fe304b96b5350 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 4, 2025 | New CVE Received | kernel.org |
Volerion