CVE-2025-40224

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

N/A
Published: December 4, 2025 at 03:31 PM UTC
Updated: October 19, 2026 at 07:10 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

08ebc9def79fc0c4dbb6ecc39263006e3f98b7506.158ebc9def79fc0c4dbb6ecc39263006e3f98b750
Vendor states this is fixed in 240b82b86a091c1aa49d951d4467425420a081a0 (fixed)
Vendor states this is fixed in a09a5aa8bf258ddc99a22c30f17fe304b96b5350 (fixed)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.17.6 (unaffected)
Vendor states this is fixed in 6.18 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card