CVE-2026-97473

powercap: intel_rapl: Fix memory leak in rapl_add_package_cpuslocked()

State
Published
Severity
Not scored
Published
Sep 24, 2026
Updated
Sep 28, 2026
Reserved
Sep 24, 2026

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 26096aed255fbac9501718174dbb24c935d8854e to before 3e9e9337e03be946ec93f2c9d28dab242482be1bAffected
  • 26096aed255fbac9501718174dbb24c935d8854e to before 992c60771749d8d8cbfbd06049785fff95c72df1Affected
  • 26096aed255fbac9501718174dbb24c935d8854e to before bfc7d93bc5e12288e5dc6bb54260f68cdf5a5c47Affected
  • f8a7fa068be099fe3406178ab047cba7c8456203Affected
  • f575a20bd53ea755800e79c2b7aea20e9b0b2242Affected
  • 6.10.12 to before 6.11Affected
  • 6.11.1 to before 6.12Affected
LinuxLinux
  • 6.12Affected
  • before 6.12Not affected
  • 6.12.111 through 6.12.*Not affected
  • 6.18.53 through 6.18.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.