HIGH Introduced in 4.4
clk DvfsIndex OOB
CVE-2026-98362
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
01Description
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.
02KernelScan AI Analysis
Risk summary
ARM systems using the SCPI clock driver can suffer an out-of-bounds read when the SCP firmware returns a DVFS index exceeding the operating-point array bounds. The leaked memory is interpreted as a clock frequency, potentially exposing small amounts of kernel data and feeding incorrect frequencies to clock consumers. The bug requires specific ARM hardware with a System Control Processor and is triggered by buggy or stale firmware responses.
Vulnerability analysis
The SCPI clock driver queries the SCP firmware for a DVFS operating-point index but only rejects negative values. When the firmware returns an index larger than the number of available operating points, the driver reads past the end of the OPP array and treats whatever memory follows as a clock frequency, causing an out-of-bounds read and propagating a garbage rate to clock consumers. The fix adds an upper-bound check so any index outside the valid range returns zero instead of performing the out-of-bounds access. This code path is reached on ARM systems equipped with a System Control Processor using the SCPI protocol; the out-of-bounds read occurs when the SCP firmware returns a stale or malformed index value, and no special user privileges are required to trigger the clock recalculation path.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 4.4 | 5.10.271 | 6e3b55823da8 |
| 5.15 | 4.4 | 5.15.222 | 7204095917ae |
| 6.1 | 4.4 | 6.1.189 | 0f89e2ac0e94 |
| 6.12 | 4.4 | 6.12.112 | a82b274697d0 |
| 6.18 | 4.4 | 6.18.54 | e1188332a911 |
| 6.6 | 4.4 | 6.6.158 | 56b7a9d89c67 |
| 7.2 | 4.4 | 7.2.8 | 108c46e8dacc |
| mainline | 4.4 | 7.3 | 70f4b78d560e |
| cip/5.10 | 4.4 | 5.10.271-cip78 | 6e3b55823da8 |
| cip/5.10-rt | 4.4 | 5.10.272-cip79-rt35 | 6e3b55823da8 |
| cip/6.1 | 4.4 | 6.1.189-cip61 | 0f89e2ac0e94 |
| cip/6.1-rt | 4.4 | 6.1.189-cip61-rt32 | 0f89e2ac0e94 |
| cip/6.12 | 4.4 | 6.12.112-cip33 | a82b274697d0 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Fixed in 5.10.271-cip78 |
| cip/5.10-rt | Fixed in 5.10.272-cip79-rt35 |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip136) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip136-rt50) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip115) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |