CVE-2024-50259 Details
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.
A vulnerability in the Linux kernel's netdevsim component has been addressed. The issue involved the nsim_nexthop_bucket_activity_write() function, which failed to properly terminate a string with a trailing zero after using copy_from_user(). This oversight could lead to incorrect behavior in subsequent string operations, such as those using sscanf(). The vulnerability was identified by a static analyzer and has been fixed by ensuring that the string is correctly terminated, allowing the function to operate as intended.
Users can upgrade to the latest version of the Linux kernel to address this vulnerability. For Debian 11, this can be done by installing the linux-image-6.1-686-pae, linux-image-6.1-amd64, or other appropriate linux-image-6.1 packages.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
| CWE-125 | Out-of-bounds Read | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.13, < 5.15.171 >= 5.16, < 6.1.116 >= 6.2, < 6.6.60 >= 6.7, < 6.11.7 6.12 rc1 6.12 rc2 6.12 rc3 6.12 rc4 6.12 rc5 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Nov 14, 2024 | Initial Analysis | [email protected] |
| Nov 9, 2024 | New CVE Received | kernel.org |