ad7780: fix division by zero in ad7780_write_raw()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9085daa4abcc3a1c19ae4eb00e609842ef28275a · < f25a9f1df1f6738acf1fa05595fb6060a2c08ff1| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ad7780: fix division by zero in ad7780_write_raw()
In the ad7780_write_raw() , val2 can be zero, which might lead to a division by zero error in DIV_ROUND_CLOSEST(). The ad7780_write_raw() is based on iio_info's write_raw. While val is explicitly declared that can be zero (in read mode), val2 is not specified to be non-zero.
From the CVE record · Linux
The Linux kernel's ad7780_write_raw() can divide by zero when val2 is zero. Someone able to pass that value through the IIO write_raw path could trigger the error; the input does not specify network access, authentication, or user-interaction requirements.
Teams running Linux kernels with the ad7780 driver should check their versions; affected versions are not specified.