CVE-2025-40224
Full vulnerability record from the local CVENow database.
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.
Severity
Not scored
CVSS score
Not available
Vulnerability status
Deferred
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2025-12-04 16:16:14.917000
Last modified
2026-10-19 19:10:00.130000
View original CVE JSON
{
"id": "CVE-2025-40224",
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"published": "2025-12-04T16:16:14.917",
"lastModified": "2026-10-19T19:10:00.130",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (cgbc-hwmon) Add missing NULL check after devm_kzalloc()\n\nThe driver allocates memory for sensor data using devm_kzalloc(), but\ndid not check if the allocation succeeded. In case of memory allocation\nfailure, dereferencing the NULL pointer would lead to a kernel crash.\n\nAdd a NULL pointer check and return -ENOMEM to handle allocation failure\nproperly."
},
{
"lang": "es",
"value": "En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nhwmon: (cgbc-hwmon) Añadir la comprobación de NULL faltante después de devm_kzalloc()\n\nEl controlador asigna memoria para datos de sensor usando devm_kzalloc(), pero no comprobó si la asignación tuvo éxito. En caso de fallo en la asignación de memoria, desreferenciar el puntero NULL llevaría a una caída del kernel.\n\nAñadir una comprobación de puntero NULL y devolver -ENOMEM para manejar el fallo de asignación correctamente."
}
],
"affected": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"affectedData": [
{
"vendor": "Linux",
"product": "Linux",
"defaultStatus": "unaffected",
"programFiles": [
"drivers/hwmon/cgbc-hwmon.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"versions": [
{
"version": "08ebc9def79fc0c4dbb6ecc39263006e3f98b750",
"lessThan": "240b82b86a091c1aa49d951d4467425420a081a0",
"versionType": "git",
"status": "affected"
},
{
"version": "08ebc9def79fc0c4dbb6ecc39263006e3f98b750",
"lessThan": "a09a5aa8bf258ddc99a22c30f17fe304b96b5350",
"versionType": "git",
"status": "affected"
}
]
},
{
"vendor": "Linux",
"product": "Linux",
"defaultStatus": "affected",
"programFiles": [
"drivers/hwmon/cgbc-hwmon.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"versions": [
{
"version": "6.15",
"status": "affected"
},
{
"version": "0",
"lessThan": "6.15",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.17.6",
"lessThanOrEqual": "6.17.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.18",
"lessThanOrEqual": "*",
"versionType": "original_commit_for_fix",
"status": "unaffected"
}
]
}
]
}
],
"metrics": {},
"references": [
{
"url": "https://git.kernel.org/stable/c/240b82b86a091c1aa49d951d4467425420a081a0",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/a09a5aa8bf258ddc99a22c30f17fe304b96b5350",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
]
}