iio: pressure: zpa2326: fix information leak in triggered buffer
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 03b262f2bbf43b82eaef82ffb3bc671d5b5c8da1 · < 979a0db76ceda8fe1f2f85a116bfe97620ebbadf| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: pressure: zpa2326: fix information leak in triggered buffer
The 'sample' local struct is used to push data to user space from a triggered buffer, but it has a hole between the temperature and the timestamp (u32 pressure, u16 temperature, GAP, u64 timestamp). This hole is never initialized.
Initialize the struct to zero before using it to avoid pushing uninitialized information to userspace.
From the CVE record · Linux
The Linux kernel’s zpa2326 pressure driver leaves a gap in a sample structure uninitialized before sending it through a triggered buffer. When that buffer sends samples to user space, it can expose uninitialized information; the input does not specify authentication or other access requirements.
Engineers running Linux kernels with the zpa2326 pressure driver should check their installations; affected versions were not provided.