Skip to contentSkip to conversation

CVE-2026-89992: cpuidle: dt_idle_genpd: kfree() the original name allocation

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-89992 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.18 with commit 9d976d6721dfb525b81ce981e1363c70c0975aab and fixed in 6.1.188 with commit 1312ae33b91430ec99e69cd3d47f0e50a4ebf54b
	Issue introduced in 5.18 with commit 9d976d6721dfb525b81ce981e1363c70c0975aab and fixed in 6.6.157 with commit a38caa9ed0d5c61c17d88393b14b292199289c1f
	Issue introduced in 5.18 with commit 9d976d6721dfb525b81ce981e1363c70c0975aab and fixed in 6.12.110 with commit 09d002c8fb0261d35ce9d8a705de5db034ee90b8
	Issue introduced in 5.18 with commit 9d976d6721dfb525b81ce981e1363c70c0975aab and fixed in 6.18.51 with commit b519dfce1998c323e54a56f911cf708d9ba0e076
	Issue introduced in 5.18 with commit 9d976d6721dfb525b81ce981e1363c70c0975aab and fixed in 7.2.5 with commit 3394c7ba23336bdb7ece29127130fd01731d42d8
	Issue introduced in 5.18 with commit 9d976d6721dfb525b81ce981e1363c70c0975aab and fixed in 7.3-rc2 with commit 2b0ac85512b7f67479127b2713254490662eb13d

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-89992

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/cpuidle/dt_idle_genpd.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/1312ae33b91430ec99e69cd3d47f0e50a4ebf54b
	https://git.kernel.org/stable/c/a38caa9ed0d5c61c17d88393b14b292199289c1f
	https://git.kernel.org/stable/c/09d002c8fb0261d35ce9d8a705de5db034ee90b8
	https://git.kernel.org/stable/c/b519dfce1998c323e54a56f911cf708d9ba0e076
	https://git.kernel.org/stable/c/3394c7ba23336bdb7ece29127130fd01731d42d8
	https://git.kernel.org/stable/c/2b0ac85512b7f67479127b2713254490662eb13d