What’s Vulnerable › Vulnerabilities

CVE-2024-50259: netdevsim: Add trailing zero to terminate the string in nsim_nexthop_bucket_activity_write()

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.15.171, 6.1.116, 6.11.7, 6.6.60. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-50259 or the next vulnerability affects your stack