iio: light: bh1745: fix information leak in triggered buffer
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: light: bh1745: fix information leak in triggered buffer
The 'scan' local struct is used to push data to user space from a triggered buffer, but it does not set values for inactive channels, as it only uses iio_for_each_active_channel() to assign new values.
Initialize the struct to zero before using it to avoid pushing uninitialized information to userspace.
From the CVE record · Linux
The Linux kernel bh1745 light sensor driver can push uninitialized data to user space because its triggered buffer does not set values for inactive channels. A local user who can access the triggered buffer may receive that information; the input does not specify authentication requirements or additional user interaction.
Engineers running Linux kernels with the bh1745 light sensor driver should check their kernel versions; affected versions are not specified.