CVE-2025-40145

Source
https://cve.org/CVERecord?id=CVE-2025-40145
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40145.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40145
Downstream
Published
2025-11-12T10:23:26Z
Modified
2026-08-12T03:30:35Z
Summary
PCI/pwrctrl: Fix double cleanup on devm_add_action_or_reset() failure
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40145.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
75996c92f4de309f855471927e6489f5a354cfd4
Fixed
77732c58fef6247b71493dc3997af0ec0aaad5c7
Fixed
ab81f2f79c683c94bac622aafafbe8232e547159

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40145.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.15.0
Fixed
6.17.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40145.json"