CVE-2024-50259

netdevsim: Add trailing zero to terminate the string in nsim_nexthop_bucket_activity_write()

Medium · published November 9, 2024

CVSS v3.1
5.5
EPSS
0%
Percentile
11.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00219 · 11.8th percentile
Published
2024-11-09T10:15Z
EPSS history
Timeline
  • 09 NOV 10:15Z
    netdevsim: Add trailing zero to terminate the string in nsim_nexthop_bucket_activity_write()
    cvelistv5