cpuidle: dt_idle_genpd: kfree() the original name allocation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9d976d6721dfb525b81ce981e1363c70c0975aab · < 2b0ac85512b7f67479127b2713254490662eb13d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
cpuidle: dt_idle_genpd: kfree() the original name allocation
dt_idle_pd_alloc() kasprintf()s the full node path, then points pd->name at kbasename() of that string. dt_idle_pd_free() kfree()s pd->name, which is no longer the start of the allocation.
Copy the basename instead.
From the CVE record · Linux
In the Linux kernel's cpuidle dt_idle_genpd code, cleanup frees a pointer to the basename of an allocated path rather than the start of the allocation. The input does not specify an attacker outcome or whether exploitation requires local or network access, authentication, or user interaction.
Engineers running the Linux kernel should check whether their kernel includes the affected cpuidle dt_idle_genpd code; affected versions are not specified.