7.1high
ice: ensure the copied buf is NUL terminated
- Severity
- 7.1high CVSS:3.1 by NVD
- Exploit likelihood
- 0.21% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 96a9a9341cdaea0c3bce4c134e04a2a42ae899ac before 5ff4de981983ed84f29b5d92b6550ec054e12a92, from 96a9a9341cdaea0c3bce4c134e04a2a42ae899ac before 666854ea9cad844f75a068f32812a2d78004914a, 6.8 Not affected: before 6.8, from 6.8.10 up to 6.8.*, from 6.9 up to * | CVE List |
| linux linux_kernel | from 6.8 before 6.8.10, 6.9 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: ice: asegúrese de que el buf copiado tenga terminación NUL. Actualmente, asignamos un búfer del kernel del tamaño de un conteo y copiamos el conteo de bytes del espacio de usuario a ese búfer. Más adelante, usamos sscanf en este búfer pero no nos aseguramos de que la cadena termine dentro del búfer, esto puede provocar una lectura OOB cuando usamos sscanf. Solucione este problema utilizando memdup_user_nul en lugar de memdup_user.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-36935 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-36935 changed 2026-06-17 | Public domain |