Skip to contentSkip to conversation

CVE-2026-98362: clk: scpi: bound-check DVFS index in scpi_dvfs_recalc_rate

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 6

lore
Share & tools
lore
#0 lore raw

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

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

In the Linux kernel, the following vulnerability has been resolved:

clk: scpi: bound-check DVFS index in scpi_dvfs_recalc_rate

dvfs_get_idx() may return an out-of-range index if the SCP firmware is buggy or returns a stale value. Only negative indexes were rejected, so a large index walked past info->opps and could treat garbage as a clock rate (KASAN OOB / wrong frequency to consumers). The missing upper bound dates back to the original SCPI clock driver.

Treat indexes >= opp count as invalid and return 0, same as idx < 0.

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

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

	Issue introduced in 4.4 with commit cd52c2a4b5c43631e429d06dce12e08b0cab477f and fixed in 5.10.271 with commit 6e3b55823da8ef0d99621efb422cc29f50d7f280
	Issue introduced in 4.4 with commit cd52c2a4b5c43631e429d06dce12e08b0cab477f and fixed in 5.15.222 with commit 7204095917aeaac89db7377c29a457351a19b076
	Issue introduced in 4.4 with commit cd52c2a4b5c43631e429d06dce12e08b0cab477f and fixed in 6.1.189 with commit 0f89e2ac0e945da2ce798f6a61aebf9d291c2e0a
	Issue introduced in 4.4 with commit cd52c2a4b5c43631e429d06dce12e08b0cab477f and fixed in 6.6.158 with commit 56b7a9d89c67932bf11b71e3b6d17941fc24a393
	Issue introduced in 4.4 with commit cd52c2a4b5c43631e429d06dce12e08b0cab477f and fixed in 6.12.112 with commit a82b274697d0876b478594ca78ad1e6cb062467b
	Issue introduced in 4.4 with commit cd52c2a4b5c43631e429d06dce12e08b0cab477f and fixed in 6.18.54 with commit e1188332a9110cf3635fe286481ee38305b3c2b6
	Issue introduced in 4.4 with commit cd52c2a4b5c43631e429d06dce12e08b0cab477f and fixed in 7.2.8 with commit 108c46e8dacc4a0e472a74f98171115d49cbc079
	Issue introduced in 4.4 with commit cd52c2a4b5c43631e429d06dce12e08b0cab477f and fixed in 7.3-rc4 with commit 70f4b78d560e592cbf3325b162424737d032fc1d

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-98362

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/clk/clk-scpi.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/6e3b55823da8ef0d99621efb422cc29f50d7f280
	https://git.kernel.org/stable/c/7204095917aeaac89db7377c29a457351a19b076
	https://git.kernel.org/stable/c/0f89e2ac0e945da2ce798f6a61aebf9d291c2e0a
	https://git.kernel.org/stable/c/56b7a9d89c67932bf11b71e3b6d17941fc24a393
	https://git.kernel.org/stable/c/a82b274697d0876b478594ca78ad1e6cb062467b
	https://git.kernel.org/stable/c/e1188332a9110cf3635fe286481ee38305b3c2b6
	https://git.kernel.org/stable/c/108c46e8dacc4a0e472a74f98171115d49cbc079
	https://git.kernel.org/stable/c/70f4b78d560e592cbf3325b162424737d032fc1d