CVE-2025-40145
Awaiting Analysis Awaiting Analysis - Queue

BaseFortify

Vulnerability report for CVE-2025-40145, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

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-07-06
AI Q&A
2025-11-13
EPSS Evaluated
2026-07-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 Quick Actions

Instant insights powered by AI
Executive Summary

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.

Impact Analysis

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.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-40145. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart