{"id":"CVE-2025-40145","summary":"PCI/pwrctrl: Fix double cleanup on devm_add_action_or_reset() failure","details":"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.","modified":"2026-03-20T12:43:11.641236Z","published":"2025-11-12T10:23:26.013Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40145.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/77732c58fef6247b71493dc3997af0ec0aaad5c7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ab81f2f79c683c94bac622aafafbe8232e547159"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40145.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40145"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"75996c92f4de309f855471927e6489f5a354cfd4"},{"fixed":"77732c58fef6247b71493dc3997af0ec0aaad5c7"},{"fixed":"ab81f2f79c683c94bac622aafafbe8232e547159"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40145.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.15.0"},{"fixed":"6.17.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40145.json"}}],"schema_version":"1.7.5"}