Integer overflow in Network Block Device Project
CVE-2022-26495
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.
Vulnerability class: Integer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.029, 87.0th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Network Block Device Project
- Debian Linux — versions 9.0, 10.0, 11.0
- Fedoraproject Fedora — versions 34, 35, 36
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- lists.debian.org/nbd/2022/01/msg00037.html (Exploit, Mailing List, Third Party Advisory)
- sourceforge.net/projects/nbd/files/nbd/ (Product, Third Party Advisory, Release Notes)
- [debian-lts-announce] 20220310 [SECURITY] [DLA 2944-1] nbd security update (mailing-list, Mailing List, Third Party Advisory)
- DSA-5100 (vendor-advisory, Third Party Advisory)
- FEDORA-2022-62adf9a1e0 (vendor-advisory)
- FEDORA-2022-807e431d5f (vendor-advisory)
- FEDORA-2022-263873fb70 (vendor-advisory)
- GLSA-202402-10 (vendor-advisory)