CVE-2024-50259 netdevsim: Add trailing zero to terminate the string in nsim_nexthop_bucket_activity_write()
A missing null terminator in the Linux kernel netdevsim driver can cause improper string handling, potentially leading to a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-50259?
CVE-2024-50259 is a medium-severity vulnerability in Linux kernel, published on 9 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
netdevsim: Add trailing zero to terminate the string in nsim_nexthop_bucket_activity_write()
This was found by a static analyzer. We should not forget the trailing zero after copy_from_user() if we will further do some string operations, sscanf() in this case. Adding a trailing zero will ensure that the function performs properly.
Weakness: CWE-125
Which versions are affected by CVE-2024-50259?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-50259?
Apply the vendor's patch.
Is CVE-2024-50259 being exploited?
There is no known exploitation of CVE-2024-50259 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-53244, AZL-53289, BELL-CVE-2024-50259, DEBIAN-CVE-2024-50259, GHSA-gc72-pc9p-m8wc, UBUNTU-CVE-2024-50259.