{"id":"UBUNTU-CVE-2022-0485","details":"A flaw was found in the copying tool `nbdcopy` of libnbd. When performing multi-threaded copies using asynchronous nbd calls, nbdcopy was blindly treating the completion of an asynchronous command as successful, rather than checking the *error parameter. This could result in the silent creation of a corrupted destination image.","modified":"2026-04-27T16:54:28.907045Z","published":"2022-08-29T15:15:00Z","upstream":["CVE-2022-0485"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-0485"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2050324"},{"type":"REPORT","url":"https://listman.redhat.com/archives/libguestfs/2022-February/msg00104.html"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-0485"}],"affected":[{"package":{"name":"libnbd","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libnbd@1.2.2-1ubuntu2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.3-1","1.2.1-2","1.2.2-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"libnbd-ocaml","binary_version":"1.2.2-1ubuntu2"},{"binary_name":"libnbd0","binary_version":"1.2.2-1ubuntu2"},{"binary_name":"nbdfuse","binary_version":"1.2.2-1ubuntu2"},{"binary_name":"python3-libnbd","binary_version":"1.2.2-1ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-0485.json"}},{"package":{"name":"libnbd","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libnbd@1.10.5-1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.3-1","1.8.5-1","1.10.2-1","1.10.5-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnbd-bin","binary_version":"1.10.5-1"},{"binary_name":"libnbd-ocaml","binary_version":"1.10.5-1"},{"binary_name":"libnbd0","binary_version":"1.10.5-1"},{"binary_name":"python3-libnbd","binary_version":"1.10.5-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-0485.json"}},{"package":{"name":"libnbd","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libnbd@1.20.0-1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.16.4-1","1.18.1-1","1.18.2-1","1.18.2-1build1","1.18.2-2","1.18.2-2build1","1.20.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnbd-bin","binary_version":"1.20.0-1"},{"binary_name":"libnbd-ocaml","binary_version":"1.20.0-1"},{"binary_name":"libnbd0","binary_version":"1.20.0-1"},{"binary_name":"python3-libnbd","binary_version":"1.20.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-0485.json"}},{"package":{"name":"libnbd","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/libnbd@1.22.2-1build2?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.22.0-1","1.22.2-1build1","1.22.2-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"libnbd-bin","binary_version":"1.22.2-1build2"},{"binary_name":"libnbd-ocaml","binary_version":"1.22.2-1build2"},{"binary_name":"libnbd0","binary_version":"1.22.2-1build2"},{"binary_name":"python3-libnbd","binary_version":"1.22.2-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-0485.json"}},{"package":{"name":"libnbd","ecosystem":"Ubuntu:26.04","purl":"pkg:deb/ubuntu/libnbd@1.24.2-1ubuntu1?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.22.2-1build2","1.24.0-2ubuntu1","1.24.1-1ubuntu6","1.24.2-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnbd-bin","binary_version":"1.24.2-1ubuntu1"},{"binary_name":"libnbd-ocaml","binary_version":"1.24.2-1ubuntu1"},{"binary_name":"libnbd0","binary_version":"1.24.2-1ubuntu1"},{"binary_name":"python3-libnbd","binary_version":"1.24.2-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-0485.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}