Unrated
Security advisory
In nbd-server in nbd before 3.24, there is an integer overflow with a resultant heap-based buffer overflow. A value of 0xffffffff in the name length field will cause a zero-sized buffer to be allocated for the name, resulting in a write to a dangling pointer. This issue exists for the NBD_OPT_INFO, NBD_OPT_GO, and NBD_OPT_EXPORT_NAME messages.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-26495
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 18:40 UTC · Revision 1
Source evidence
In nbd-server in nbd before 3.24, there is an integer overflow with a resultant heap-based buffer overflow. A value of 0xffffffff in the name length field will cause a zero-sized buffer to be allocated for the name, resulting in a write to a dangling pointer. This issue exists for the NBD_OPT_INFO, NBD_OPT_GO, and NBD_OPT_EXPORT_NAME messages.
osv:CVE-2022-26495
Complete source record
{
"id": "536a672955ebeade924cd7120001a1eef92c859bb481541e8587e291f3998f5d",
"url": "https://osv.dev/vulnerability/CVE-2022-26495",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2022-26495",
"summary": "In nbd-server in nbd before 3.24, there is an integer overflow with a resultant heap-based buffer overflow. A value of 0xffffffff in the name length field will cause a zero-sized buffer to be allocated for the name, resulting in a write to a dangling pointer. This issue exists for the NBD_OPT_INFO, NBD_OPT_GO, and NBD_OPT_EXPORT_NAME messages.",
"evidence": "osv:CVE-2022-26495",
"products": [],
"severity": "unknown",
"structured": {
"id": "CVE-2022-26495",
"aliases": [
"CVE-2022-26495"
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/networkblockdevice/nbd",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "ca2b9b33890e430a76b57f83cdabe80c64b12829"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:network_block_device_project:network_block_device:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.24"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"nbd-3.23",
"nbd-3.22",
"nbd-3.21",
"nbd-3.20",
"nbd-3.19",
"nbd-3.18",
"nbd-3.17",
"nbd-3.16.2",
"nbd-3.16.1",
"nbd-3.16",
"nbd-3.15.2",
"nbd-3.7",
"nbd-3.15.1",
"nbd-3.15",
"nbd-3.13",
"nbd-3.12.1",
"nbd-3.12",
"nbd-3.12pre1",
"nbd-3.11",
"nbd-3.10",
"nbd-3.9.1",
"nbd-3.9",
"nbd-3.8",
"nbd-3.6",
"nbd-3.5",
"nbd-3.4",
"nbd-3.3",
"nbd-3.2",
"nbd-3.1.1",
"nbd-3.1",
"nbd-3.0",
"nbd-2.9.25",
"nbd-2.9.24",
"nbd-2.9.23",
"nbd-2.9.22",
"2.9.21a",
"2.9.21",
"2.9.20",
"2.9.19",
"2.9.18",
"2.9.17",
"2.9.16",
"2.9.15",
"git-2.9.14",
"2.9.14",
"git-2.9.13",
"2.9.13",
"git-2.9.12",
"2.9.12",
"2.9.11",
"2.9.10",
"2.9.8",
"2.9.7",
"2.9.6",
"2.9.3",
"2.9.2",
"2.9.1",
"2.9.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-26495.json"
}
}
],
"modified": "2026-10-28T02:30:38.207160701Z",
"provider": "osv",
"references": [
"https://lists.debian.org/nbd/2022/01/msg00037.html",
"https://sourceforge.net/projects/nbd/files/nbd/",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/26xxx/CVE-2022-26495.json",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G2UPX62BIWOOHSACGUDB7E3O4URNN37F/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IZHR73XMAJTCFGKUZRXVTZKCK2X3IFNA/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PU5JFD4PEJED72TZLZ5R2Q2SFXICU5I5/",
"https://nvd.nist.gov/vuln/detail/CVE-2022-26495",
"https://security.gentoo.org/glsa/202402-10",
"https://www.debian.org/security/2022/dsa-5100",
"https://lists.debian.org/debian-lts-announce/2022/03/msg00014.html"
],
"provider_metadata": {
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/26xxx/CVE-2022-26495.json"
}
},
"related_cves": [
{
"value": "CVE-2022-26495",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 505780,
"published_at": "2022-03-06T00:00:00+00:00"
}