CVE-2025-40145 Details
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.
A vulnerability in the Linux kernel's PCI power control driver can lead to improper resource management. When the function 'devm_add_action_or_reset()' fails, it triggers a cleanup process. The current implementation mistakenly allows for a double cleanup by reusing a label meant for error handling. This issue has been addressed by modifying the error handling to prevent redundant cleanup actions.
Users can apply the latest patch available in the Linux kernel stable tree to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 12, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/77732c58fef6247b71493dc3997af0ec0aaad5c7 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/ab81f2f79c683c94bac622aafafbe8232e547159 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 12, 2025 | New CVE Received | kernel.org |
Volerion