CVE-2023-5215

Libnbd: crash or misbehaviour when nbd server returns an unexpected block size

State
Published
Severity
5.3 Medium
Published
Sep 28, 2023
Updated
Nov 8, 2025
Reserved
Sep 26, 2023

Read the record on cve.org

Description

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 nbd_get_size() function correctly.

Scores

CVSSScoreVectorSource
3.15.3 MediumCVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:Hredhat

Weaknesses

  • CWE-241 Improper Handling of Unexpected Data Type

Affected Products

ProductVersions
Red Hat Enterprise Linux 9Red Hat
  • 0:1.18.1-3.el9 and laterNot affected
Red Hat Enterprise Linux 8Red Hat
    Red Hat Enterprise Linux 8 Advanced VirtualizationRed Hat
      Red Hat Enterprise Linux 8 Advanced VirtualizationRed Hat

        References

        Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.