CVE-2025-40224
hwmon: (cgbc-hwmon) Add missing NULL check after devm_kzalloc()
Reported by linux · Published December 4, 2025
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.
EPSS 0.20% · 9.6th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Linux | Linux | a09a5aa8bf258ddc99a22c30f17fe304b96b5350, 6.15, 240b82b86a091c1aa49d951d4467425420a081a0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 08ebc9def79fc0c4dbb6ecc39263006e3f98b750, 08ebc9def79fc0c4dbb6ecc39263006e3f98b750 |
| Linux | Linux | 6.15, 0, 6.17.6 |
| Linux | Linux | 6.15, 6.18, 0 |
| linux | linux_kernel | 6.15, 6.15 |
Timeline
- Dec 4, 2025 CVE Published
- Dec 5, 2025 EPSS Score (30 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (147 in total, the first dated here)
- Mar 29, 2026 Security Advisory (154 in total, the first dated here)
- Jun 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-40224
vulnetix vdb fixes CVE-2025-40224
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40224/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart