Skip to main content
← All vulnerabilities
CVE-2026-97473

powercap: intel_rapl: Fix memory leak in rapl_add_package_cpuslocked()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.11, 6.12, 6.12.111, 6.18.53
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: powercap: intel_rapl: Fix memory leak in rapl_add_package_cpuslocked() When topology_physical_package_id()/topology_logical_die_id() returns a negative value, rapl_add_package_cpuslocked() returns ERR_PTR(-EINVAL) directly without freeing the rapl_package structure that was just allocated by kzalloc_obj(), leaking memory on every failed package addition. Use the existing err_free_package label so that the allocation is released on the error path.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 26096aed255fbac9501718174dbb24c935d8854e · fixed in 3e9e9337e03be946ec93f2c9d28dab242482be1b; From 26096aed255fbac9501718174dbb24c935d8854e · fixed in 992c60771749d8d8cbfbd06049785fff95c72df1; From 26096aed255fbac9501718174dbb24c935d8854e · fixed in bfc7d93bc5e12288e5dc6bb54260f68cdf5a5c47; From 6.10.12 · fixed in 6.11; From 6.11.1 · fixed in 6.12

  • Linux Linux

    6.12

  • KernelLinux

    From 6.12.0 · fixed in 6.12.111; From 6.13.0 · fixed in 6.18.53

References 3

git.kernel.org