clk: rs9: Reserve 8 struct clk_hw slots for for 9FGV0841
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: rs9: Reserve 8 struct clk_hw slots for for 9FGV0841
The 9FGV0841 has 8 outputs and registers 8 struct clk_hw, make sure there are 8 slots for those newly registered clk_hw pointers, else there is going to be out of bounds write when pointers 4..7 are set into struct rs9_driver_data .clk_dif[4..7] field.
Since there are other structure members past this struct clk_hw pointer array, writing to .clk_dif[4..7] fields corrupts both the struct rs9_driver_data content and data around it, sometimes without crashing the kernel. However, the kernel does surely crash when the driver is unbound or during suspend.
Fix this, increase the struct clk_hw pointer array size to the maximum output count of 9FGV0841, which is the biggest chip that is supported by this driver.
From the CVE record · Linux
The Linux kernel rs9 clock driver allocates too few pointer slots for the 9FGV0841’s eight outputs, causing an out-of-bounds write that can corrupt kernel data. The kernel crashes when the driver is unbound or during suspend; the input does not describe an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the rs9 driver and 9FGV0841 support should check their kernel version; affected versions are not specified.