CVE-2022-26495
Network Block Device Project Network Block Device vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Network Block Device, Debian Linux, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Network Block Device Project Network Block Device runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- lists.debian.org/debian-lts-announce/2022/03/msg00014.html · Third Party Advisory
- lists.debian.org/nbd/2022/01/msg00037.html · Exploit
- sourceforge.net/projects/nbd/files/nbd/ · Third Party Advisory
- www.debian.org/security/2022/dsa-5100 · Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P
- security.gentoo.org/glsa/202402-10
- nvd.nist.gov/vuln/detail/CVE-2022-26495
- cve.org/CVERecord?id=CVE-2022-26495
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.