CVE-2024-36934: bna: ensure the copied buf is NUL terminated
In the Linux kernel, the following vulnerability has been resolved:
bna: ensure the copied buf is NUL terminated
Currently, we allocate a nbytes-sized kernel buffer and copy nbytes 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 memdupusernul instead of memdupuser.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.22-1Fixed in 6.12.25-1 - Compensating control
In the bna code, use memdup_user_nul instead of memdup_user so the copied userspace buffer is NUL terminated before it is passed to sscanf.
Event History
Frequently Asked Questions
What is the severity of CVE-2024-36934?
CVE-2024-36934 has been classified as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2024-36934?
To fix CVE-2024-36934, update the Linux kernel to one of the following versions: 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.128-1, 6.12.12-1, or 6.12.13-1.
What systems are affected by CVE-2024-36934?
CVE-2024-36934 affects systems running specific versions of the Linux kernel, notably those prior to the fixed versions mentioned.
What type of vulnerability is CVE-2024-36934?
CVE-2024-36934 is a buffer handling vulnerability that could potentially lead to memory corruption in the Linux kernel.
Is there a known exploit for CVE-2024-36934?
As of now, there are no public exploits specifically available for CVE-2024-36934.