clk: microchip: mpfs-ccc: fix out of bounds access during output registration
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d39fb172760e426e0628f16b785c85e16d17bd5e · < 2f7ae8ab6aa73daaf080d5332110357c29df9c36| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
clk: microchip: mpfs-ccc: fix out of bounds access during output registration
UBSAN reported an out of bounds access during registration of the last two outputs. This out of bounds access occurs because space is only allocated in the hws array for two PLLs and the four output dividers that each has, but the defined IDs contain two DLLS and their two outputs each, which are not supported by the driver. The ID order is PLLs -> DLLs -> PLL outputs -> DLL outputs. Decrement the PLL output IDs by two while adding them to the array to avoid the problem.
From the CVE record · Linux
The Linux kernel’s Microchip mpfs-ccc clock driver can access memory out of bounds while registering its last two outputs because its output IDs do not match the allocated array. The input does not establish how an attacker could trigger this condition or whether authentication or user interaction is required.
Engineers running Linux kernels with the Microchip mpfs-ccc driver should check their versions; affected versions are not specified.