ep93xx: clock: Fix off by one in ep93xx_div_recalc_rate()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ep93xx: clock: Fix off by one in ep93xx_div_recalc_rate()
The psc->div[] array has psc->num_div elements. These values come from when we call clk_hw_register_div(). It's adc_divisors and ARRAY_SIZE(adc_divisors)) and so on. So this condition needs to be >= instead of > to prevent an out of bounds read.
From the CVE record · Linux
An off-by-one check in ep93xx_div_recalc_rate() can read past the end of the psc->div[] array. The input does not specify how an attacker could trigger the read or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels that include the ep93xx clock code should check their kernel vendor's advisory; affected versions are not specified.