{"id":"CVE-2025-40224","published":"2025-12-04T15:31:16Z","modified":"2026-05-11T21:45:11Z","title":"hwmon: (cgbc-hwmon) Add missing NULL check after devm_kzalloc()","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00262,"percentile":0.1107,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/240b82b86a091c1aa49d951d4467425420a081a0","tags":[]},{"url":"https://git.kernel.org/stable/c/a09a5aa8bf258ddc99a22c30f17fe304b96b5350","tags":[]}],"priority":{"score":2.2,"factors":[{"name":"EPSS percentile","points":2.21}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 08ebc9def79fc0c4dbb6ecc39263006e3f98b750, < 240b82b86a091c1aa49d951d4467425420a081a0",">= 08ebc9def79fc0c4dbb6ecc39263006e3f98b750, < a09a5aa8bf258ddc99a22c30f17fe304b96b5350"]},{"vendor":"Linux","product":"Linux","versions":["6.15"]}],"euvd":{"id":"EUVD-2025-201235","exploited":false,"provenance":"source"}}