firmware: arm_scpi: reject DVFS OPP count above MAX_DVFS_OPPS
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8cb7cf56c9fe5412de238465b27ef35b4d2801aa · < 69ec03cd481973e4be44a7158ed6c0fa06a9a5f9| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
firmware: arm_scpi: reject DVFS OPP count above MAX_DVFS_OPPS
scpi_dvfs_get_info() already rejected a zero opp_count, but still trusted any larger value from the SCP firmware. The shared-memory reply only holds MAX_DVFS_OPPS entries in buf.opps[]; a bigger count over-reads that array and then sizes the allocated OPP table incorrectly (garbage OPPs / OOB). The missing upper bound dates back to the original SCPI DVFS support.
Reject zero and out-of-range counts in one check and return -EINVAL.
From the CVE record · Linux
The Linux kernel’s arm_scpi DVFS code trusts an OPP count from SCP firmware that can exceed the shared-memory reply’s capacity. If the firmware supplies an oversized count, the kernel can read beyond the OPP array and allocate an incorrectly sized table. The input does not specify an attacker access path or required user interaction.
Engineers running Linux kernels with arm_scpi DVFS support should check their kernel; affected versions are not specified.