{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-50259","id":"CVE-2024-50259","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 properl","descriptionLong":"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.","published":"2024-11-09T10:15:12.251Z","updated":"2026-10-28T02:30:49.975274870Z","reserved":"2024-10-21T19:36:19.981Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c6385c0b67c527b298111775bc89a7407ba1581e","lessThan":"c2150f666c6fc301d5d1643ed0f92251f1a0ff0d","status":"affected","versionType":"git"},{"version":"c6385c0b67c527b298111775bc89a7407ba1581e","lessThan":"bcba86e03b3aac361ea671672cf48eed11f9011c","status":"affected","versionType":"git"},{"version":"c6385c0b67c527b298111775bc89a7407ba1581e","lessThan":"6a604877160fe5ab2e1985d5ce1ba6a61abe0693","status":"affected","versionType":"git"},{"version":"c6385c0b67c527b298111775bc89a7407ba1581e","lessThan":"27bd7a742e171362c9eb52ad5d1d71d3321f949f","status":"affected","versionType":"git"},{"version":"c6385c0b67c527b298111775bc89a7407ba1581e","lessThan":"4ce1f56a1eaced2523329bef800d004e30f2f76c","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","lessThan":"5.13","status":"unaffected","versionType":"semver"},{"version":"5.15.171","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.116","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.60","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.11.7","lessThanOrEqual":"6.11.*","status":"unaffected","versionType":"semver"},{"version":"6.12","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-125"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/c2150f666c6fc301d5d1643ed0f92251f1a0ff0d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/bcba86e03b3aac361ea671672cf48eed11f9011c","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6a604877160fe5ab2e1985d5ce1ba6a61abe0693","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/27bd7a742e171362c9eb52ad5d1d71d3321f949f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4ce1f56a1eaced2523329bef800d004e30f2f76c","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50259.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50259","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00219,"epssPercentile":0.12579,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-50259","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50259","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-50259","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-50259","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}