iio: backend: fix out-of-bound write
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: backend: fix out-of-bound write
The buffer is set to 80 character. If a caller write more characters, count is truncated to the max available space in "simple_write_to_buffer". But afterwards a string terminator is written to the buffer at offset count without boundary check. The zero termination is written OUT-OF-BOUND.
Add a check that the given buffer is smaller then the buffer to prevent.
From the CVE record · Linux
The Linux kernel’s IIO backend can write a string terminator past an 80-character buffer when a caller supplies more characters than the buffer can hold. A caller who can reach this write path could trigger the out-of-bounds write; the input does not specify access or authentication requirements.
Engineers running Linux kernels with the affected IIO backend should check their kernel version; affected versions were not provided.