net: pktgen: fix access outside of user given buffer in pktgen_thread_write()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 6b1d3e9db82d01a88de1795b879df67c2116b4f4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: pktgen: fix access outside of user given buffer in pktgen_thread_write()
Honour the user given buffer size for the strn_len() calls (otherwise strn_len() will access memory outside of the user given buffer).
From the CVE record · Linux
In the Linux kernel’s pktgen_thread_write(), strn_len() can read beyond a user-provided buffer because it does not honor the buffer’s size. An attacker able to provide that buffer could trigger the out-of-bounds read; the input does not specify network access, authentication, or additional user-interaction requirements.
Teams running the Linux kernel should check whether their kernel includes the pktgen_thread_write() fix; affected versions are not specified.