What’s Vulnerable › Vulnerabilities
CVE-2025-40145: PCI/pwrctrl: Fix double cleanup on devm_add_action_or_reset() failure
- Severity: unknown
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-11-12 · updated 2026-10-19
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.
Affected products
- Linux kernel: 6.15 — fixed in 6.18
How to fix
Upgrade to a fixed version: Linux kernel 6.18. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/77732c58fef6247b71493dc3997af0ec0aaad5c7
- https://git.kernel.org/stable/c/ab81f2f79c683c94bac622aafafbe8232e547159
Get alerted when CVE-2025-40145 or the next vulnerability affects your stack