clk: sunxi-ng: mp: Fix dual-divider clock rate readback
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
clk: sunxi-ng: mp: Fix dual-divider clock rate readback
When dual-divider clock support was introduced, the P divider offset was left out of the .recalc_rate readback function. This causes the clock rate to become bogus or even zero (possibly due to the P divider being 1, leading to a divide-by-zero).
Fix this by incorporating the P divider offset into the calculation.
From the CVE record · Linux
The Linux kernel’s sunxi-ng mp dual-divider clock readback omits the P divider offset. This can produce an incorrect or zero clock rate, possibly through division by zero. The input does not specify an attacker path or access requirements.
Engineers running Linux kernels with sunxi-ng mp dual-divider clock support should check their installations; affected versions are not specified.