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

Published Nov 12, 2025
·
Updated

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

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

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

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

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the Linux kernel PCI/pwrctrl code, replace the `goto err_regulator_free` path with the actual freeing operation, and ensure the caller does not repeat cleanup after `devm_add_action_or_reset()` fails because that function already invokes the cleanup callback.

Event History

Nov 12, 2025
CVE Published
via MITRE·10:23 AM
Data Sourced
via MITRE·10:23 AM
Description
Data Sourced
via NVD·11:15 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2025-40145?

CVE-2025-40145 is classified as a low severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-40145?

To fix CVE-2025-40145, update your Linux kernel to the latest version that includes the patch addressing this vulnerability.

3

What systems are affected by CVE-2025-40145?

CVE-2025-40145 affects the Linux kernel and all systems running a vulnerable version.

4

What is the impact of CVE-2025-40145?

The impact of CVE-2025-40145 is primarily related to potential resource mismanagement during error handling in the PCI subsystem.

5

Is there a workaround for CVE-2025-40145?

There is no specific workaround for CVE-2025-40145; applying updates is recommended to mitigate the vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203