{"id":"CVE-2022-26495","details":"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.","modified":"2026-04-09T08:45:40.919495Z","published":"2022-03-06T06:15:07.303Z","related":["MGASA-2022-0403","SUSE-SU-2022:1276-1","openSUSE-SU-2024:11993-1"],"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G2UPX62BIWOOHSACGUDB7E3O4URNN37F/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IZHR73XMAJTCFGKUZRXVTZKCK2X3IFNA/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PU5JFD4PEJED72TZLZ5R2Q2SFXICU5I5/"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202402-10"},{"type":"ADVISORY","url":"https://sourceforge.net/projects/nbd/files/nbd/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2022/dsa-5100"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00014.html"},{"type":"EVIDENCE","url":"https://lists.debian.org/nbd/2022/01/msg00037.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/networkblockdevice/nbd","events":[{"introduced":"0"},{"fixed":"ca2b9b33890e430a76b57f83cdabe80c64b12829"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"3.24"}]}}],"versions":["2.9.0","2.9.1","2.9.10","2.9.11","2.9.12","2.9.13","2.9.14","2.9.15","2.9.16","2.9.17","2.9.18","2.9.19","2.9.2","2.9.20","2.9.21","2.9.21a","2.9.3","2.9.6","2.9.7","2.9.8","git-2.9.12","git-2.9.13","git-2.9.14","nbd-2.9.22","nbd-2.9.23","nbd-2.9.24","nbd-2.9.25","nbd-3.0","nbd-3.1","nbd-3.1.1","nbd-3.10","nbd-3.11","nbd-3.12","nbd-3.12.1","nbd-3.12pre1","nbd-3.13","nbd-3.15","nbd-3.15.1","nbd-3.15.2","nbd-3.16","nbd-3.16.1","nbd-3.16.2","nbd-3.17","nbd-3.18","nbd-3.19","nbd-3.2","nbd-3.20","nbd-3.21","nbd-3.22","nbd-3.23","nbd-3.3","nbd-3.4","nbd-3.5","nbd-3.6","nbd-3.7","nbd-3.8","nbd-3.9","nbd-3.9.1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-26495.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"9.0"}]},{"events":[{"introduced":"0"},{"last_affected":"10.0"}]},{"events":[{"introduced":"0"},{"last_affected":"11.0"}]},{"events":[{"introduced":"0"},{"last_affected":"34"}]},{"events":[{"introduced":"0"},{"last_affected":"35"}]},{"events":[{"introduced":"0"},{"last_affected":"36"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}