iio: health: afe4404: Fix oob read in afe4404_[read|write]_raw
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b36e8257641a043764c62240316610c81e36376c · < f7419fc42afc035f6b29ce713e17dcd2000c833f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: health: afe4404: Fix oob read in afe4404_[read|write]_raw
KASAN report out-of-bounds read as follows:
BUG: KASAN: global-out-of-bounds in afe4404_read_raw+0x2ce/0x380 Read of size 4 at addr ffffffffc00e4658 by task cat/278
Call Trace: afe4404_read_raw iio_read_channel_info dev_attr_show
The buggy address belongs to the variable: afe4404_channel_leds+0x18/0xffffffffffffe9c0
This issue can be reproduce by singe command:
$ cat /sys/bus/i2c/devices/0-0058/iio\:device0/in_intensity6_raw
From the CVE record · Linux
The Linux kernel’s afe4404 IIO health driver can read beyond the bounds of its channel arrays when handling raw channel access. A local user can trigger the read by accessing an affected sysfs attribute; the input does not specify whether authentication beyond local access is required.
Engineers running Linux kernels with the afe4404 IIO health driver should check their systems; affected versions are not specified.