Bug 2414488 (CVE-2025-40145) - CVE-2025-40145 kernel: PCI/pwrctrl: Fix double cleanup on devm_add_action_or_reset() failure
Summary: CVE-2025-40145 kernel: PCI/pwrctrl: Fix double cleanup on devm_add_action_or_...
Keywords:
Status: NEW
Alias: CVE-2025-40145
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-11-12 11:02 UTC by OSIDB Bzimport
Modified: 2025-11-13 15:25 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-11-12 11:02:57 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.