{"id":"CVE-2025-40059","aliases":["CVE-2025-40059"],"related":[],"kind":"vulnerability","state":"published","title":"coresight: Fix incorrect handling for return value of devm_kzalloc","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncoresight: Fix incorrect handling for return value of devm_kzalloc\n\nThe return value of devm_kzalloc could be an null pointer,\nuse \"!desc.pdata\" to fix incorrect handling return value\nof devm_kzalloc.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncoresight: Fix incorrect handling for return value of devm_kzalloc\n\nThe return value of devm_kzalloc could be an null pointer,\nuse \"!desc.pdata\" to fix incorrect handling return value\nof devm_kzalloc.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncoresight: Corrección del manejo incorrecto para el valor de retorno de devm_kzalloc\n\nEl valor de retorno de devm_kzalloc podría ser un puntero nulo,\nutilizar !desc.pdata para corregir el manejo incorrecto del valor de retorno de devm_kzalloc.","source":"nvd"}],"published":"2025-10-28T11:48:32.186Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"4277f035d227e829133df284be7e35b7236a5b0f","fixed":"8c4e7e646d5d9050b374baf5c6bb3a00fb79e206","status":"affected"},{"type":"git","introduced":"4277f035d227e829133df284be7e35b7236a5b0f","fixed":"9688b66d0a5e0eecf44f6286b8d9f7a161264035","status":"affected"},{"type":"git","introduced":"4277f035d227e829133df284be7e35b7236a5b0f","fixed":"70714eb7243eaf333d23501d4c7bdd9daf011c01","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.8","status":"unaffected"},{"type":"semver","introduced":"6.12.53","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.3","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/8c4e7e646d5d9050b374baf5c6bb3a00fb79e206","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9688b66d0a5e0eecf44f6286b8d9f7a161264035","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/70714eb7243eaf333d23501d4c7bdd9daf011c01","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40059","url":"https://www.cve.org/CVERecord?id=CVE-2025-40059","licence":"CVE Terms of Use","modified":"2026-05-11T21:41:41.170Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40059","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40059","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:06.939Z","epss":{"score":0.00213,"percentile":0.12355,"date":"2026-12-01T12:00:22.000Z"}}