iio: adc: rockchip_saradc: fix information leak in triggered buffer
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4e130dc7b41348b13684f0758c26cc6cf72a3449 · < 38724591364e1e3b278b4053f102b49ea06ee17c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: adc: rockchip_saradc: fix information leak in triggered buffer
The 'data' 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's rockchip_saradc triggered buffer can copy uninitialized data to user space because it does not set values for inactive channels. A user-space reader of the triggered buffer may receive that information when channels are inactive; the input does not specify authentication or other access requirements.
Engineers running Linux kernels with the rockchip_saradc driver should check their versions; affected versions are not specified.