Skip to content
Fencer Vulns
medium 4.8

CVE-2022-0485 json

A flaw was found in the copying tool `nbdcopy` of libnbd.

published 2022-08-29 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-15622

cvss
4.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.0%
EPSS 1.0% chance of exploitation in 30 days, percentile 64%
public exploits
0
none known

Summary

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.

Patch / fix

  • redhat libnbd 1.11.8
  • libnbd Debian 14, Debian 13, Debian 12 1.10.5-1

debian advisories DEBIAN-CVE-2022-0485

  • SLOF RHEL 8 20210217-1.module+el8.6.0+14480+c0a3aa0f
  • hivex RHEL 8 1.3.18-23.module+el8.6.0+14480+c0a3aa0f
  • netcf RHEL 8 0.2.8-12.module+el8.6.0+14480+c0a3aa0f
  • swtpm RHEL 8 0.7.0-1.20211109gitb79fd91.module+el8.6.0+14480+c0a3aa0f
  • libnbd RHEL 8 1.6.0-5.module+el8.6.0+14480+c0a3aa0f
  • nbdkit RHEL 8 1.24.0-4.module+el8.6.0+14480+c0a3aa0f
  • libtpms RHEL 8 0.9.1-0.20211126git1ff6fe1f43.module+el8.6.0+14480+c0a3aa0f
  • libvirt RHEL 8 8.0.0-5.module+el8.6.0+14480+c0a3aa0f

red hat advisories RHSA-2022:1759RHSA-2022:2181RHSA-2022:0971RHSA-2022:0949

  • libnbd openSUSE Leap 15.4, openSUSE Leap 15.3 1.12.4-150300.8.12.1
  • libnbd openSUSE Leap 15.4, openSUSE Leap 15.3 1.9.3-150300.8.9.1

suse advisories SUSE-SU-2022:2754-1SUSE-SU-2022:2347-1

  • libnbd openSUSE Tumbleweed 1.10.4-1.1

opensuse advisories openSUSE-SU-2024:11833-1

  • SLOF AlmaLinux 8 20210217-1.module_el8.6.0+2880+7d9e3703
  • hivex AlmaLinux 8 1.3.18-23.module_el8.6.0+2880+7d9e3703
  • netcf AlmaLinux 8 0.2.8-12.module_el8.6.0+2880+7d9e3703
  • swtpm AlmaLinux 8 0.7.0-1.20211109gitb79fd91.module_el8.6.0+2880+7d9e3703
  • libnbd AlmaLinux 8 1.6.0-5.module_el8.6.0+2880+7d9e3703
  • nbdkit AlmaLinux 8 1.24.0-4.module_el8.6.0+2880+7d9e3703
  • libtpms AlmaLinux 8 0.9.1-0.20211126git1ff6fe1f43.module_el8.6.0+2880+7d9e3703
  • libvirt AlmaLinux 8 8.0.0-5.module_el8.6.0+2880+7d9e3703

almalinux advisories ALSA-2022:1759

  • hivex Rocky Linux 8 1.3.18-23.module+el8.7.0+1084+97b81f61
  • hivex Rocky Linux 8 1.3.18-23.module+el8.6.0+847+b490afdd
  • netcf Rocky Linux 8 0.2.8-12.module+el8.7.0+1084+97b81f61
  • netcf Rocky Linux 8 0.2.8-12.module+el8.4.0+534+4680a14e
  • netcf Rocky Linux 8 0.2.8-12.module+el8.6.0+847+b490afdd
  • swtpm Rocky Linux 8 0.7.0-1.20211109gitb79fd91.module+el8.6.0+847+b490afdd
  • libnbd Rocky Linux 8 1.6.0-5.module+el8.7.0+1084+97b81f61
  • libnbd Rocky Linux 8 1.6.0-5.module+el8.6.0+847+b490afdd

rocky linux advisories RLSA-2022:1759

  • libnbd Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 1.14.1-r0

alpine advisories ALPINE-CVE-2022-0485

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-0485 updated cvss 4.8

libnbd: nbdcopy: missing error handling may create corrupted destination image

  • Red Hat Enterprise Linux 8 Advanced Virtualization libnbd, nbdfuse, ocaml-libnbd, python3-libnbd, libnbd-bash-completion
    affected: workaround, no fix available
  • Red Hat Advanced Virtualization CodeReady Builder for RHEL 8.6.0 netcf 0.2.8-12.module+el8.4.0+8855+a9e237a9, libnbd 1.6.0-5.module+el8.6.0+14167+61b0e671, hivex 1.3.18-23.module+el8.6.0+12721+8d053ff2, libvirt 8.0.0-5.module+el8.6.0+14495+7194fa43, nbdfuse 1.6.0-5.module+el8.6.0+14167+61b0e671, SLOF 20210217-1.module+el8.6.0+12721+8d053ff2, +38 more
    fixed: vendor fix RHSA-2022:2181
  • Red Hat Advanced Virtualization for RHEL 8.4.0.EUS netcf 0.2.8-12.module+el8.4.0+8855+a9e237a9, libnbd 1.6.0-5.module+el8.4.0+14155+dec4a5c7, nbdkit 1.24.0-1.module+el8.4.0+9341+96cf2672, hivex 1.3.18-21.module+el8.4.0+11609+2eba841a, nbdfuse 1.6.0-5.module+el8.4.0+14155+dec4a5c7, seabios 1.14.0-1.module+el8.4.0+8855+a9e237a9, +110 more
    fixed: vendor fix RHSA-2022:0971
  • Red Hat Advanced Virtualization for RHEL 8.5.0.Z netcf 0.2.8-12.module+el8.4.0+8855+a9e237a9, libnbd 1.6.0-5.module+el8.5.0+14157+bc4e6fb1, hivex 1.3.18-22.module+el8.5.0+12087+2208d04c, libvirt 7.6.0-6.module+el8.5.0+13051+7ddbe958, nbdfuse 1.6.0-5.module+el8.5.0+14157+bc4e6fb1, nbdkit 1.24.0-3.module+el8.5.0+13900+a08c0464, +110 more
    fixed: vendor fix RHSA-2022:0949
  • Red Hat Advanced Virtualization for RHEL 8.6.0 netcf 0.2.8-12.module+el8.4.0+8855+a9e237a9, libnbd 1.6.0-5.module+el8.6.0+14167+61b0e671, hivex 1.3.18-23.module+el8.6.0+12721+8d053ff2, libvirt 8.0.0-5.module+el8.6.0+14495+7194fa43, nbdfuse 1.6.0-5.module+el8.6.0+14167+61b0e671, nbdkit 1.24.0-4.module+el8.6.0+14167+61b0e671, +104 more
    fixed: vendor fix RHSA-2022:2181
  • Red Hat Enterprise Linux AppStream (v. 8) libnbd 1.6.0-5.module+el8.6.0+14480+c0a3aa0f, netcf 0.2.8-12.module+el8.6.0+14480+c0a3aa0f, hivex 1.3.18-23.module+el8.6.0+14480+c0a3aa0f, libvirt 8.0.0-5.module+el8.6.0+14480+c0a3aa0f, nbdfuse 1.6.0-5.module+el8.6.0+14480+c0a3aa0f, nbdkit 1.24.0-4.module+el8.6.0+14480+c0a3aa0f, +104 more Red Hat Enterprise Linux CRB (v. 8) libnbd 1.6.0-5.module+el8.6.0+14480+c0a3aa0f, netcf 0.2.8-12.module+el8.6.0+14480+c0a3aa0f, hivex 1.3.18-23.module+el8.6.0+14480+c0a3aa0f, libvirt 8.0.0-5.module+el8.6.0+14480+c0a3aa0f, nbdfuse 1.6.0-5.module+el8.6.0+14480+c0a3aa0f, SLOF 20210217-1.module+el8.6.0+14480+c0a3aa0f, +38 more
    fixed: vendor fix RHSA-2022:1759
  • Red Hat Enterprise Linux 8 Advanced Virtualization libnbd, nbdfuse, ocaml-libnbd, python3-libnbd, libnbd-bash-completion Red Hat Enterprise Linux 9 libnbd, nbdfuse, ocaml-libnbd, python3-libnbd, libnbd-bash-completion
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.04% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2046194 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 4.8 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Affected products

  • n/a libnbd

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.