iio: fix potential out-of-bound write
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: fix potential out-of-bound write
The buffer is set to 20 characters. If a caller write more characters, count is truncated to the max available space in "simple_write_to_buffer". To protect from OoB access, check that the input size fit into buffer and add a zero terminator after copy to the end of the copied data.
From the CVE record · Linux
The Linux kernel’s iio component has a potential out-of-bounds write involving a 20-character buffer. It can be triggered when a caller writes more characters than the buffer can hold; the input does not specify authentication requirements or whether this is remotely reachable.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.