Linux
cpuidle: dt_idle_genpd: kfree() the original name allocation
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 9d976d6721dfb525b81ce981e1363c70c0975aab, < 1312ae33b91430ec99e69cd3d47f0e50a4ebf54b
- >= 9d976d6721dfb525b81ce981e1363c70c0975aab, < a38caa9ed0d5c61c17d88393b14b292199289c1f
- >= 9d976d6721dfb525b81ce981e1363c70c0975aab, < 09d002c8fb0261d35ce9d8a705de5db034ee90b8
- >= 9d976d6721dfb525b81ce981e1363c70c0975aab, < b519dfce1998c323e54a56f911cf708d9ba0e076
- >= 9d976d6721dfb525b81ce981e1363c70c0975aab, < 3394c7ba23336bdb7ece29127130fd01731d42d8
- >= 9d976d6721dfb525b81ce981e1363c70c0975aab, < 2b0ac85512b7f67479127b2713254490662eb13d
Fixed in 1312ae33b91430ec99e69cd3d47f0e50a4ebf54b, a38caa9ed0d5c61c17d88393b14b292199289c1f, 09d002c8fb0261d35ce9d8a705de5db034ee90b8, b519dfce1998c323e54a56f911cf708d9ba0e076, 3394c7ba23336bdb7ece29127130fd01731d42d8, 2b0ac85512b7f67479127b2713254490662eb13d
- 5.18
Fixed in 0, 6.1.188, 6.6.157, 6.12.110, 6.18.51, 7.2.5, 7.3
Mitigation
Upgrade Linux to 1312ae33b91430ec99e69cd3d47f0e50a4ebf54b or a38caa9ed0d5c61c17d88393b14b292199289c1f or 09d002c8fb0261d35ce9d8a705de5db034ee90b8 or b519dfce1998c323e54a56f911cf708d9ba0e076 or 3394c7ba23336bdb7ece29127130fd01731d42d8 or 2b0ac85512b7f67479127b2713254490662eb13d or later.
Upgrade Linux to 0 or 6.1.188 or 6.6.157 or 6.12.110 or 6.18.51 or 7.2.5 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.