CVE-2026-97473: powercap: intel_rapl: Fix memory leak in rapl_add_package_cpuslocked()

Published Sep 24, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

powercap: intelrapl: Fix memory leak in rapladdpackagecpuslocked()

When topologyphysicalpackageid()/topologylogicaldieid() returns a negative value, rapladdpackagecpuslocked() returns ERRPTR(-EINVAL) directly without freeing the raplpackage structure that was just allocated by kzallocobj(), leaking memory on every failed package addition.

Use the existing errfreepackage label so that the allocation is released on the error path.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 24, 2026
CVE Published
via MITRE·04:04 PM
Data Sourced
via MITRE·04:04 PM
Description
Data Sourced
via NVD·05:17 PM
Description

Frequently Asked Questions

1

What condition triggers the memory leak?

The leak occurs when rapl_add_package_cpuslocked() attempts to add a package and topology_physical_package_id() or topology_logical_die_id() returns a negative value. In that error path, the newly allocated rapl_package structure was not freed.

2

What is the practical impact of repeated failures?

Each failed package addition under the affected topology error condition leaks one rapl_package allocation. Repeated failures can therefore consume kernel memory over time.

3

How is the issue fixed?

The fix routes the negative topology-ID error path through the existing err_free_package label, which releases the rapl_package allocation before returning -EINVAL.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203