{"id":"CVE-2024-50259","summary":"netdevsim: Add trailing zero to terminate the string in nsim_nexthop_bucket_activity_write()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetdevsim: Add trailing zero to terminate the string in nsim_nexthop_bucket_activity_write()\n\nThis was found by a static analyzer.\nWe should not forget the trailing zero after copy_from_user()\nif we will further do some string operations, sscanf() in this\ncase. Adding a trailing zero will ensure that the function\nperforms properly.","modified":"2026-04-16T04:35:47.101008878Z","published":"2024-11-09T10:15:12.251Z","related":["SUSE-SU-2024:4315-1","SUSE-SU-2024:4345-1","SUSE-SU-2024:4346-1","SUSE-SU-2024:4364-1","SUSE-SU-2024:4376-1","USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50259.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/27bd7a742e171362c9eb52ad5d1d71d3321f949f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4ce1f56a1eaced2523329bef800d004e30f2f76c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6a604877160fe5ab2e1985d5ce1ba6a61abe0693"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bcba86e03b3aac361ea671672cf48eed11f9011c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c2150f666c6fc301d5d1643ed0f92251f1a0ff0d"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50259.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50259"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c6385c0b67c527b298111775bc89a7407ba1581e"},{"fixed":"c2150f666c6fc301d5d1643ed0f92251f1a0ff0d"},{"fixed":"bcba86e03b3aac361ea671672cf48eed11f9011c"},{"fixed":"6a604877160fe5ab2e1985d5ce1ba6a61abe0693"},{"fixed":"27bd7a742e171362c9eb52ad5d1d71d3321f949f"},{"fixed":"4ce1f56a1eaced2523329bef800d004e30f2f76c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50259.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}