{"id":"UBUNTU-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-02-04T02:52:33.502741Z","published":"2022-03-06T06:15:00Z","related":["USN-5323-1"],"upstream":["CVE-2022-26495"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-26495"},{"type":"REPORT","url":"https://lists.debian.org/nbd/2022/01/msg00037.html"},{"type":"REPORT","url":"https://sourceforge.net/projects/nbd/files/nbd/"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5323-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-26495"}],"affected":[{"package":{"name":"nbd","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/nbd@1:3.7-1ubuntu0.1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.3-3ubuntu1","1:3.4-1ubuntu1","1:3.4-2ubuntu1","1:3.5-1ubuntu1","1:3.6-1ubuntu1","1:3.7-1","1:3.7-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"nbd-client","binary_version":"1:3.7-1ubuntu0.1"},{"binary_name":"nbd-server","binary_version":"1:3.7-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-26495.json"}},{"package":{"name":"nbd","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/nbd@1:3.13-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.10-1","1:3.13-1"],"ecosystem_specific":{"binaries":[{"binary_name":"nbd-client","binary_version":"1:3.13-1"},{"binary_name":"nbd-server","binary_version":"1:3.13-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-26495.json"}},{"package":{"name":"nbd","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/nbd@1:3.16.2-1ubuntu0.2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.16.2-1ubuntu0.2"}]}],"versions":["1:3.15.2-3","1:3.16.2-1","1:3.16.2-1ubuntu0.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"1:3.16.2-1ubuntu0.2","binary_name":"nbd-client"},{"binary_name":"nbd-server","binary_version":"1:3.16.2-1ubuntu0.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-26495.json"}},{"package":{"name":"nbd","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/nbd@1:3.20-1ubuntu0.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.20-1ubuntu0.1"}]}],"versions":["1:3.19-3","1:3.20-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"nbd-client","binary_version":"1:3.20-1ubuntu0.1"},{"binary_version":"1:3.20-1ubuntu0.1","binary_name":"nbd-server"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-26495.json"}},{"package":{"name":"nbd","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/nbd@1:3.23-3ubuntu1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.23-3ubuntu1"}]}],"versions":["1:3.21-1build3","1:3.22-1","1:3.23-3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"nbd-client","binary_version":"1:3.23-3ubuntu1"},{"binary_name":"nbd-server","binary_version":"1:3.23-3ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-26495.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}