CVE-2022-0485: Medium severity redhat libnbd vulnerability

Published Jan 27, 2022
·
Updated

A flaw was found in nbdcopy. When copying from NBD server using the asynchronous copy mode (default) nbdcopy may create a corrupted destination image if read or write NBD command start but the server returns an error. nbdcopy also exits with zero exit code, so programs running it cannot detect that the operation failed.

Upstream patch proposed: https://listman.redhat.com/archives/libguestfs/2022-February/msg00039.html

Other sources

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.

Affected Software

12 affected componentsFixes available
redhat/libnbd<1.11.8
1.11.8
redhat libnbd<1.11.8
redhat Enterprise Linux=8.0
debian/libnbd<1.10.5-1
1.10.5-1
debian/libnbd<1.10.5-1
1.10.5-1
debian/libnbd<1.10.5-1
1.10.5-1
debian/libnbd
1.14.2-11.22.2-11.24.4-1
alpine/libnbd<1.14.1-r0
1.14.1-r0
alpine/libnbd<1.14.1-r0
1.14.1-r0
alpine/libnbd<1.14.1-r0
1.14.1-r0
alpine/libnbd<1.14.1-r0
1.14.1-r0
alpine/libnbd<1.14.1-r0
1.14.1-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/libnbd to a version that resolves this vulnerability.

    Fixed in 1.11.8
  2. Upgrade

    Upgrade debian/libnbd to a version that resolves this vulnerability.

    Fixed in 1.14.2-1Fixed in 1.22.2-1Fixed in 1.24.4-1
  3. Upgrade

    Upgrade alpine/libnbd to a version that resolves this vulnerability.

    Fixed in 1.14.1-r0
  4. Upgrade

    Upgrade debian/libnbd to a version that resolves this vulnerability.

    Fixed in 1.10.5-1
  5. Configuration

    Use nbdcopy with the --synchronous option to avoid undetected data corruption when copying from an NBD server; this may reduce performance by avoiding asynchronous operations.

    nbdcopy --synchronous = enabled

Event History

Jan 27, 2022
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 29, 2022
CVE Published
via MITRE·02:03 PM
Data Sourced
via MITRE·02:03 PM
DescriptionWeakness
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·03:15 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2022-0485?

CVE-2022-0485 is a vulnerability found in the copying tool `nbdcopy` of libnbd.

2

What is the severity of CVE-2022-0485?

The severity of CVE-2022-0485 is medium (4).

3

How does CVE-2022-0485 affect libnbd?

CVE-2022-0485 affects libnbd version 1.11.8 and earlier.

4

How can I fix CVE-2022-0485?

To fix CVE-2022-0485, update libnbd to version 1.11.8 or later.

5

What is the CWE ID of CVE-2022-0485?

The CWE ID of CVE-2022-0485 is CWE-252.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203