# CVE-2025-40145: PCI/pwrctrl: Fix double cleanup on devm_add_action_or_reset() failure

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2025-11-12T10:23:26.013Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

PCI/pwrctrl: Fix double cleanup on devm_add_action_or_reset() failure

When devm_add_action_or_reset() fails, it calls the passed cleanup
function.  Hence the caller must not repeat that cleanup.

Replace the "goto err_regulator_free" by the actual freeing, as there
will never be a need again for a second user of this label.

(As written by CVE List.)

## Affected

- Linux Linux: from 75996c92f4de309f855471927e6489f5a354cfd4 before 77732c58fef6247b71493dc3997af0ec0aaad5c7; from 75996c92f4de309f855471927e6489f5a354cfd4 before ab81f2f79c683c94bac622aafafbe8232e547159; 6.15 (not affected: before 6.15; from 6.17.3 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/77732c58fef6247b71493dc3997af0ec0aaad5c7>
- <https://git.kernel.org/stable/c/ab81f2f79c683c94bac622aafafbe8232e547159>

## Sources

- CVE List: [CVE-2025-40145](https://www.cve.org/CVERecord?id=CVE-2025-40145), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-40145](https://nvd.nist.gov/vuln/detail/CVE-2025-40145), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40145 · Whole record: https://cve.day/CVE-2025-40145.json · Rebuilt by cve.day 2026-11-25T22:59:07.554Z
