iio: adc: ad7173: fix channels index for syscalib_mode
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:
iio: adc: ad7173: fix channels index for syscalib_mode
Fix the index used to look up the channel when accessing the syscalib_mode attribute. The address field is a 0-based index (same as scan_index) that it used to access the channel in the ad7173_channels array throughout the driver. The channels field, on the other hand, may not match the address field depending on the channel configuration specified in the device tree and could result in an out-of-bounds access.
From the CVE record · Linux
The Linux kernel's ad7173 ADC driver can use the wrong channel index when accessing the syscalib_mode attribute. If the device-tree channel configuration causes the channel fields to differ, this can result in an out-of-bounds access. The input does not establish an attacker path, authentication requirements, or whether user interaction is needed.
Engineers running the Linux kernel with the ad7173 ADC driver should check their systems; affected versions are not specified.