ice: ensure the copied buf is NUL terminated
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:
ice: ensure the copied buf is NUL terminated
Currently, we allocate a count-sized kernel buffer and copy count bytes from userspace to that buffer. Later, we use sscanf on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using sscanf. Fix this issue by using memdup_user_nul instead of memdup_user.
From the CVE record · Linux
The Linux kernel ice driver copies user-provided data into a buffer without ensuring it is NUL-terminated before passing it to sscanf. A local user supplying that input could trigger an out-of-bounds read; the input does not specify authentication requirements.
Engineers running Linux kernels with the ice driver should check their deployments; affected versions were not provided.