CVE-2025-40145
Awaiting Analysis Awaiting Analysis - Queue
BaseFortify

Publication date: 2025-11-12

Last updated on: 2025-11-12

Assigner: kernel.org

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-11-12
Last Modified
2025-11-12
Generated
2026-05-07
AI Q&A
2025-11-13
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Currently, no data is known.
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability in the Linux kernel involves a double cleanup issue in the PCI power control code. Specifically, when the function devm_add_action_or_reset() fails, it calls a cleanup function, so the caller must not call that cleanup again. The vulnerability was due to a redundant cleanup call (a 'double cleanup') which could cause problems. The fix replaced a goto statement with direct freeing code to prevent this double cleanup.


How can this vulnerability impact me? :

The vulnerability could lead to improper resource management in the Linux kernel's PCI power control subsystem, potentially causing system instability or crashes due to double cleanup of resources. This could affect system reliability or availability.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart