CVE-2023-5215: Libnbd: crash or misbehaviour when nbd server returns an unexpected block size

Published Sep 27, 2023
·
Updated

A flaw was found in libnbd. A server can reply with a block size larger than 2^63 (the NBD spec states the size is a 64-bit unsigned value). This issue could lead to an application crash or other unintended behavior for NBD clients that doesn't treat the return value of the nbdgetsize() function correctly.

Other sources

In libnbd since v1.0 a server can reply with a block size larger than 2^63 (the NBD spec states size is a 64-bit unsigned value) possibly leading to application crash or other unintended behavior for NBD clients that doesn't treat the return value correctly.

References:

https://listman.redhat.com/archives/libguestfs/2023-September/032635.html

Red Hat

Affected Software

4 affected componentsFixes available
redhat/libnbd<1.18.0
1.18.0
redhat libnbd<1.18.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0

Event History

Sep 28, 2023
CVE Published
via MITRE·01:55 PM
Data Sourced
via MITRE·01:55 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-5215?

CVE-2023-5215 is a vulnerability found in libnbd that allows a server to reply with a block size larger than 2^63, leading to potential application crashes or unintended behavior for NBD clients.

2

What is the severity of CVE-2023-5215?

The severity of CVE-2023-5215 is medium, with a severity value of 5.3.

3

How does CVE-2023-5215 affect libnbd?

CVE-2023-5215 affects libnbd by allowing a server to respond with an oversized block size, which can cause issues in NBD clients that do not handle the returned value properly.

4

How can I fix CVE-2023-5215?

To fix CVE-2023-5215, update libnbd to version 1.18.0 or later, provided by the Red Hat package.

5

Where can I find more information about CVE-2023-5215?

You can find more information about CVE-2023-5215 in the following references: - [Red Hat Security Advisory](https://access.redhat.com/security/cve/CVE-2023-5215) - [Red Hat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=2241041) - [libguestfs Mailing List](https://listman.redhat.com/archives/libguestfs/2023-September/032635.html)

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