iio: light: vcnl4035: fix information leak in triggered buffer
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ec90b52c07c0403a6db60d752484ec08d605ead0 · < f6fb1c59776b4263634c472a5be8204c906ffc2c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: light: vcnl4035: fix information leak in triggered buffer
The 'buffer' local array is used to push data to userspace from a triggered buffer, but it does not set an initial value for the single data element, which is an u16 aligned to 8 bytes. That leaves at least 4 bytes uninitialized even after writing an integer value with regmap_read().
Initialize the array to zero before using it to avoid pushing uninitialized information to userspace.
From the CVE record · Linux
The Linux kernel’s vcnl4035 light-sensor driver can leave bytes uninitialized in its triggered buffer. When the buffer pushes data to userspace, those bytes may be exposed to a local user. The input does not specify authentication requirements or any additional user interaction.
Engineers running the Linux kernel with the vcnl4035 light-sensor driver should check their installations; affected versions are not specified.