clk: xilinx: vcu: unregister pll_post only if registered correctly
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4472e1849db7f719bbf625890096e0269b5849fe · < a72b1c2d3b53e088bfaeb593949ff6fbd2cbe8ed| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
clk: xilinx: vcu: unregister pll_post only if registered correctly
If registration of pll_post is failed, it will be set to NULL or ERR, unregistering same will fail with following call trace:
Unable to handle kernel NULL pointer dereference at virtual address 008 pc : clk_hw_unregister+0xc/0x20 lr : clk_hw_unregister_fixed_factor+0x18/0x30 sp : ffff800011923850 ... Call trace: clk_hw_unregister+0xc/0x20 clk_hw_unregister_fixed_factor+0x18/0x30 xvcu_unregister_clock_provider+0xcc/0xf4 [xlnx_vcu] xvcu_probe+0x2bc/0x53c [xlnx_vcu]
From the CVE record · Linux
The Linux kernel’s Xilinx VCU clock driver can dereference a NULL pointer while cleaning up a failed pll_post registration during device probing. This can crash the kernel; the input does not specify an attacker route, authentication requirement, or user interaction.
Engineers running Linux kernels with the Xilinx VCU clock driver should check their systems; affected versions are not specified.