powercap: intel_rapl: Fix memory leak in rapl_add_package_cpuslocked()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.11, 6.12, 6.12.111, 6.18.53
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 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
- CVE published
- 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