netdevsim: Add trailing zero to terminate the string in nsim_nexthop_bucket_activity_write()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.171, 6.1.116, 6.11.7, 6.6.60
- CVEs
- CVE-2024-50259
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 04:36 UTC · Revision 1
Source evidence
netdevsim: Add trailing zero to terminate the string in nsim_nexthop_bucket_activity_write()
core-osv · Original sourcePublished 9 Nov 2024, 10:15 UTC
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.
osv:CVE-2024-50259
Kernel
Fixed versions: 5.15.171, 6.1.116, 6.6.60, 6.11.7
Complete source record
{
"id": "75d372ae9c09684e357dea2e7e2c1594a5f2b72fd21083f63def893bf37e4882",
"url": "https://osv.dev/vulnerability/CVE-2024-50259",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "netdevsim: Add trailing zero to terminate the string in nsim_nexthop_bucket_activity_write()",
"summary": "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.",
"evidence": "osv:CVE-2024-50259",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.171",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.116",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.60",
"evidence": "/affected/1/ranges"
},
{
"value": "6.11.7",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2024-50259",
"aliases": [
"CVE-2024-50259"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "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"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.13.0"
},
{
"fixed": "5.15.171"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.116"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.60"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.11.7"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50259.json"
}
}
],
"modified": "2026-10-28T02:30:49.975274870Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/27bd7a742e171362c9eb52ad5d1d71d3321f949f",
"https://git.kernel.org/stable/c/4ce1f56a1eaced2523329bef800d004e30f2f76c",
"https://git.kernel.org/stable/c/6a604877160fe5ab2e1985d5ce1ba6a61abe0693",
"https://git.kernel.org/stable/c/bcba86e03b3aac361ea671672cf48eed11f9011c",
"https://git.kernel.org/stable/c/c2150f666c6fc301d5d1643ed0f92251f1a0ff0d",
"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50259.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-50259",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50259.json"
}
},
"related_cves": [
{
"value": "CVE-2024-50259",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 518180,
"published_at": "2024-11-09T10:15:12.251+00:00"
}