iio: adc: ade9000: fix NULL pointer dereference in clkout registration
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 |
|
|
6.18.567.2.107.3In the Linux kernel, the following vulnerability has been resolved:
iio: adc: ade9000: fix NULL pointer dereference in clkout registration
ade9000_setup_clkout() passes NULL as the register address when registering a divider clock. During clock registration, the common clock framework calls clk_divider_recalc_rate(), which dereferences the address through readl(). As a result, probing an ADE9000 configured as a clock provider with an external input clock crashes.
CLKOUT passes CLKIN through without changing its rate. Register it as a 1:1 fixed-factor clock, which does not require register access.
This change does not affect the configuration using the internal clock, for which the driver does not register a clock provider.
From the CVE record · Linux
The Linux kernel’s ADE9000 driver can dereference a NULL address while registering a clock. This crashes the kernel when probing an ADE9000 configured as a clock provider with an external input clock; the input does not specify an attacker path or authentication requirements.
Operators running Linux kernels with an ADE9000 configured as a clock provider using an external input clock should check their systems; affected versions are not specified.