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

- Severity: Medium 5.3 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.81%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-09-28T13:55:32.462Z
- Modified: 2026-06-17T06:48:06.327Z
- Weaknesses: CWE-241, CWE-252
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- libnbd: no versions given (not affected: from 0:1.18.1-3.el9 before *)
- virt:rhel/libnbd: no versions given
- virt:av/libnbd: no versions given
- virt-devel:av/libnbd: no versions given
- redhat libnbd: before 1.18.0
- redhat enterprise_linux: 8.0; 9.0

## Every score

- redhat: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://listman.redhat.com/archives/libguestfs/2023-September/032635.html> (exploit, patch)
- <https://access.redhat.com/errata/RHSA-2024:2204> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2023-5215> (vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2241041> (issue-tracking, vendor-advisory)

## Sources

- CVE List: [CVE-2023-5215](https://www.cve.org/CVERecord?id=CVE-2023-5215), CVE Terms of Use, modified 2025-11-08
- NVD: [CVE-2023-5215](https://nvd.nist.gov/vuln/detail/CVE-2023-5215), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-5215 · Whole record: https://cve.day/CVE-2023-5215.json · Rebuilt by cve.day 2026-11-25T22:58:28.254Z
