{"id":"CVE-2024-50259","state":"PUBLISHED","title":"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:\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.","publishedAt":"2024-11-09T10:15:12.251Z","updatedAt":"2026-05-11T20:48:39.553Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c6385c0b67c527b298111775bc89a7407ba1581e","status":"affected","lessThan":"c2150f666c6fc301d5d1643ed0f92251f1a0ff0d","versionType":"git"},{"version":"c6385c0b67c527b298111775bc89a7407ba1581e","status":"affected","lessThan":"bcba86e03b3aac361ea671672cf48eed11f9011c","versionType":"git"},{"version":"c6385c0b67c527b298111775bc89a7407ba1581e","status":"affected","lessThan":"6a604877160fe5ab2e1985d5ce1ba6a61abe0693","versionType":"git"},{"version":"c6385c0b67c527b298111775bc89a7407ba1581e","status":"affected","lessThan":"27bd7a742e171362c9eb52ad5d1d71d3321f949f","versionType":"git"},{"version":"c6385c0b67c527b298111775bc89a7407ba1581e","status":"affected","lessThan":"4ce1f56a1eaced2523329bef800d004e30f2f76c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/netdevsim/fib.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.15.171","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.116","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.60","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.7","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/netdevsim/fib.c"]}],"references":["https://git.kernel.org/stable/c/c2150f666c6fc301d5d1643ed0f92251f1a0ff0d","https://git.kernel.org/stable/c/bcba86e03b3aac361ea671672cf48eed11f9011c","https://git.kernel.org/stable/c/6a604877160fe5ab2e1985d5ce1ba6a61abe0693","https://git.kernel.org/stable/c/27bd7a742e171362c9eb52ad5d1d71d3321f949f","https://git.kernel.org/stable/c/4ce1f56a1eaced2523329bef800d004e30f2f76c","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/50xxx/CVE-2024-50259.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-50259","state":"PUBLISHED","datePublished":"2024-11-09T10:15:12.251Z","dateUpdated":"2026-05-11T20:48:39.553Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-10-21T19:36:19.981Z"},"containers":{"cna":{"title":"netdevsim: Add trailing zero to terminate the string in nsim_nexthop_bucket_activity_write()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c6385c0b67c527b298111775bc89a7407ba1581e","status":"affected","lessThan":"c2150f666c6fc301d5d1643ed0f92251f1a0ff0d","versionType":"git"},{"version":"c6385c0b67c527b298111775bc89a7407ba1581e","status":"affected","lessThan":"bcba86e03b3aac361ea671672cf48eed11f9011c","versionType":"git"},{"version":"c6385c0b67c527b298111775bc89a7407ba1581e","status":"affected","lessThan":"6a604877160fe5ab2e1985d5ce1ba6a61abe0693","versionType":"git"},{"version":"c6385c0b67c527b298111775bc89a7407ba1581e","status":"affected","lessThan":"27bd7a742e171362c9eb52ad5d1d71d3321f949f","versionType":"git"},{"version":"c6385c0b67c527b298111775bc89a7407ba1581e","status":"affected","lessThan":"4ce1f56a1eaced2523329bef800d004e30f2f76c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/netdevsim/fib.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.15.171","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.116","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.60","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.7","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/netdevsim/fib.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/c2150f666c6fc301d5d1643ed0f92251f1a0ff0d"},{"url":"https://git.kernel.org/stable/c/bcba86e03b3aac361ea671672cf48eed11f9011c"},{"url":"https://git.kernel.org/stable/c/6a604877160fe5ab2e1985d5ce1ba6a61abe0693"},{"url":"https://git.kernel.org/stable/c/27bd7a742e171362c9eb52ad5d1d71d3321f949f"},{"url":"https://git.kernel.org/stable/c/4ce1f56a1eaced2523329bef800d004e30f2f76c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:48:39.553Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"5.15.171"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.1.116"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.6.60"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.11.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.12"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2024-50259","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-10-01T20:15:29.343925Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","lang":"en","type":"CWE","description":"CWE-125 Out-of-bounds Read"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T20:17:24.244Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:27:39.103Z"}}]}}}