{"id":"CVE-2025-40224","aliases":["CVE-2025-40224"],"related":[],"kind":"vulnerability","state":"published","title":"hwmon: (cgbc-hwmon) Add missing NULL check after devm_kzalloc()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-12-04T15:31:16.193Z","modified":"2026-10-19T19:10:00.130Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"08ebc9def79fc0c4dbb6ecc39263006e3f98b750","fixed":"240b82b86a091c1aa49d951d4467425420a081a0","status":"affected"},{"type":"git","introduced":"08ebc9def79fc0c4dbb6ecc39263006e3f98b750","fixed":"a09a5aa8bf258ddc99a22c30f17fe304b96b5350","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.15","status":"unaffected"},{"type":"semver","introduced":"6.17.6","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/240b82b86a091c1aa49d951d4467425420a081a0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a09a5aa8bf258ddc99a22c30f17fe304b96b5350","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40224","url":"https://www.cve.org/CVERecord?id=CVE-2025-40224","licence":"CVE Terms of Use","modified":"2026-05-11T21:45:11.677Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40224","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40224","licence":"Public domain","modified":"2026-10-19T19:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:08.263Z","epss":{"score":0.00198,"percentile":0.10074,"date":"2026-12-01T12:00:22.000Z"}}