CVE-2025-40224

Unknown

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.

SeverityUnknown
CVSS—
Exploit probability—
ProductLinux
PublishedDec 4, 2025
First seenDec 4, 2025

How to fix

Update
  • Linux Linux240b82b86a091c1aa49d951d4467425420a081a0, a09a5aa8bf258ddc99a22c30f17fe304b96b5350 or later

Affected products

ProductAffected versionsFixed in
Linux Linux08ebc9def79fc0c4dbb6ecc39263006e3f98b750 ≤ v < 240b82b86a091c1aa49d951d4467425420a081a0, 08ebc9def79fc0c4dbb6ecc39263006e3f98b750 ≤ v < a09a5aa8bf258ddc99a22c30f17fe304b96b5350, 6.15240b82b86a091c1aa49d951d4467425420a081a0, a09a5aa8bf258ddc99a22c30f17fe304b96b5350

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.