# CVE-2024-36935: ice: ensure the copied buf is NUL terminated

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-05-30T15:29:24.941Z
- Modified: 2026-06-17T07:37:23.977Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 6.8 before 6.8.10; 6.9

## References

- <https://git.kernel.org/stable/c/5ff4de981983ed84f29b5d92b6550ec054e12a92> (patch)
- <https://git.kernel.org/stable/c/666854ea9cad844f75a068f32812a2d78004914a> (patch)

## Sources

- CVE List: [CVE-2024-36935](https://www.cve.org/CVERecord?id=CVE-2024-36935), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-36935](https://nvd.nist.gov/vuln/detail/CVE-2024-36935), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-36935 · Whole record: https://cve.day/CVE-2024-36935.json · Rebuilt by cve.day 2026-11-25T22:58:41.289Z
