CVE-2024-50259: netdevsim: Add trailing zero to terminate the string in nsim_nexthop_bucket_activity_write()
In the Linux kernel, the following vulnerability has been resolved:
netdevsim: Add trailing zero to terminate the string in nsimnexthopbucketactivitywrite()
This was found by a static analyzer. We should not forget the trailing zero after copyfromuser() if we will further do some string operations, sscanf() in this case. Adding a trailing zero will ensure that the function performs properly.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-50259?
The severity of CVE-2024-50259 is categorized as a medium vulnerability in the Linux kernel.
How do I fix CVE-2024-50259?
To fix CVE-2024-50259, update the Linux kernel to a version that includes the patch for this vulnerability.
What versions of the Linux kernel are affected by CVE-2024-50259?
CVE-2024-50259 affects multiple versions of the Linux kernel including 5.13 to 5.15.171, 5.16 to 6.1.116, and 6.2 to 6.6.60.
Is there a patch available for CVE-2024-50259?
Yes, a patch for CVE-2024-50259 is available in subsequent versions of the Linux kernel.
What impact does CVE-2024-50259 have on Linux systems?
CVE-2024-50259 could potentially allow an attacker to exploit the vulnerability in the Linux kernel, affecting system stability and security.