clk: sunxi-ng: common: Don't call hw_to_ccu_common on hw without common
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:
clk: sunxi-ng: common: Don't call hw_to_ccu_common on hw without common
In order to set the rate range of a hw sunxi_ccu_probe calls hw_to_ccu_common() assuming all entries in desc->ccu_clks are contained in a ccu_common struct. This assumption is incorrect and, in consequence, causes invalid pointer de-references.
Remove the faulty call. Instead, add one more loop that iterates over the ccu_clks and sets the rate range, if required.
From the CVE record · Linux
The Linux kernel’s sunxi-ng clock code can dereference an invalid pointer when setting a clock rate range. The input does not describe what an attacker can do or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the affected sunxi-ng clock code should check their installations; affected versions are not specified.