mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 15:11:31 +00:00
6bd301819f
In the ad9832_write_frequency() function, clk_get_rate() might return 0.
This can lead to a division by zero when calling ad9832_calc_freqreg().
The check if (fout > (clk_get_rate(st->mclk) / 2)) does not protect
against the case when fout is 0. The ad9832_write_frequency() function
is called from ad9832_write(), and fout is derived from a text buffer,
which can contain any value.
Link: https://lore.kernel.org/all/2024100904-CVE-2024-47663-9bdc@gregkh/
Fixes:
|
||
---|---|---|
.. | ||
accel | ||
adc | ||
addac | ||
Documentation | ||
frequency | ||
impedance-analyzer | ||
Kconfig | ||
Makefile | ||
TODO |