CVE-2024-36935·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.8.10
- Published
- 2024-05-30
Affected versions
From: 6.8
Until: 6.8.10
Fixed in: 6.8.10
How to fix this CVE
Update your Linux kernel to version 6.8.10 or later to patch a buffer handling vulnerability in the ice network driver. The vulnerability allows out-of-bounds reads when the kernel fails to properly null-terminate copied user buffers before string parsing operations. Ensure your system reboots after the kernel update to load the patched version into memory.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version: uname -r — If it shows 6.8.x where x < 10, you are vulnerable
- Verify the ice driver is loaded: lsmod | grep ice — If present, the vulnerable component is active on your system
- Search kernel logs for sscanf-related panics or memory errors: sudo dmesg | grep -i 'out of bounds\|oob\|stack' — Look for crashes in ice driver code paths
- After patching, confirm the new kernel is running: uname -r should show 6.8.10 or higher, then verify ice driver still loads: lsmod | grep ice
FAQ
What is CVE-2024-36935?
This is a kernel buffer handling vulnerability in the ice network driver where user-supplied data is copied into a kernel buffer without ensuring null termination, leading to out-of-bounds reads when string functions like sscanf attempt to parse the unterminated data.
Is CVE-2024-36935 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are currently available.
What versions of Kernel are affected by CVE-2024-36935?
Linux kernel versions 6.8 through 6.8.9 are vulnerable; the fix is available in kernel 6.8.10 and later.
How do I check if my server is vulnerable to CVE-2024-36935?
Run uname -r to get your kernel version — if it matches 6.8.x where x is less than 10, you are vulnerable. Additionally, confirm the ice driver is present with lsmod | grep ice.
Does Defensia detect CVE-2024-36935?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-36935 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-36935. Free for 1 server.
Get started free