{"id":"CVE-2025-40145","aliases":["CVE-2025-40145"],"related":[],"kind":"vulnerability","state":"published","title":"PCI/pwrctrl: Fix double cleanup on devm_add_action_or_reset() failure","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI/pwrctrl: Fix double cleanup on devm_add_action_or_reset() failure\n\nWhen devm_add_action_or_reset() fails, it calls the passed cleanup\nfunction.  Hence the caller must not repeat that cleanup.\n\nReplace the \"goto err_regulator_free\" by the actual freeing, as there\nwill never be a need again for a second user of this label.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI/pwrctrl: Fix double cleanup on devm_add_action_or_reset() failure\n\nWhen devm_add_action_or_reset() fails, it calls the passed cleanup\nfunction.  Hence the caller must not repeat that cleanup.\n\nReplace the \"goto err_regulator_free\" by the actual freeing, as there\nwill never be a need again for a second user of this label.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nPCI/pwrctrl: Corrección de la doble limpieza ante un fallo de devm_add_action_or_reset()\n\nCuando devm_add_action_or_reset() falla, llama a la función de limpieza pasada. Por lo tanto, el llamador no debe repetir esa limpieza.\n\nReemplazar el “goto err_regulator_free” por la liberación real, ya que nunca más habrá necesidad de un segundo usuario de esta etiqueta.","source":"nvd"}],"published":"2025-11-12T10:23:26.013Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"75996c92f4de309f855471927e6489f5a354cfd4","fixed":"77732c58fef6247b71493dc3997af0ec0aaad5c7","status":"affected"},{"type":"git","introduced":"75996c92f4de309f855471927e6489f5a354cfd4","fixed":"ab81f2f79c683c94bac622aafafbe8232e547159","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.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/77732c58fef6247b71493dc3997af0ec0aaad5c7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ab81f2f79c683c94bac622aafafbe8232e547159","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40145","url":"https://www.cve.org/CVERecord?id=CVE-2025-40145","licence":"CVE Terms of Use","modified":"2026-05-11T21:43:36.510Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40145","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40145","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:07.554Z","epss":{"score":0.00241,"percentile":0.16378,"date":"2026-12-01T12:00:22.000Z"}}