CVE-2025-40145

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

State
Published
Severity
Not scored
Published
Nov 12, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 75996c92f4de309f855471927e6489f5a354cfd4 to before 77732c58fef6247b71493dc3997af0ec0aaad5c7Affected
  • 75996c92f4de309f855471927e6489f5a354cfd4 to before ab81f2f79c683c94bac622aafafbe8232e547159Affected
LinuxLinux
  • 6.15Affected
  • before 6.15Not affected
  • 6.17.3 through 6.17.*Not affected
  • 6.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.