powercap: intel_rapl: Fix memory leak in rapl_add_package_cpuslocked()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.12, Kernel 3e9e9337e03be946ec93f2c9d28dab242482be1b, Kernel 992c60771749d8d8cbfbd06049785fff95c72df1 and 4 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6.11.1 <6.12, >=26096aed255fbac9501718174dbb24c935d8854e <3e9e9337e03be946ec93f2c9d28dab242482be1b, >=26096aed255fbac9501718174dbb24c935d8854e <992c60771749d8d8cbfbd06049785fff95c72df1, >=26096aed255fbac9501718174dbb24c935d8854e <bfc7d93bc5e12288e5dc6bb54260f68cdf5a5c47, >=6.10.12 <6.11, =6.12, =f575a20bd53ea755800e79c2b7aea20e9b0b2242, =f8a7fa068be099fe3406178ab047cba7c8456203 | 6.12, 3e9e9337e03be946ec93f2c9d28dab242482be1b, 992c60771749d8d8cbfbd06049785fff95c72df1, bfc7d93bc5e12288e5dc6bb54260f68cdf5a5c47, 6.11 |
| linux-kernel: Kernel | >=6.11.1 <6.12, >=6.12.0 <6.12.111, >=6.13.0 <6.18.53, >=6.10.12 <6.11 | 6.12, 6.12.111, 6.18.53, 6.11 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket