clk: clocking-wizard: Fix Oops in clk_wzrd_register_divider()
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: clocking-wizard: Fix Oops in clk_wzrd_register_divider()
Smatch detected this potential error pointer dereference clk_wzrd_register_divider(). If devm_clk_hw_register() fails then it sets "hw" to an error pointer and then dereferences it on the next line. Return the error directly instead.
From the CVE record · Linux
The Linux kernel clocking-wizard driver can dereference an error pointer in clk_wzrd_register_divider() if devm_clk_hw_register() fails, potentially causing a kernel Oops. The input does not describe an attacker path, authentication requirements, or user interaction.
Engineers running Linux kernels with the clocking-wizard driver should check their versions; affected versions are not specified.