CVEfocus › CVE database › CVE-2023-5215

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

CVSS 5.3 MediumEPSS 0.7% (higher than 50% of CVEs)Published 2023-09-28Updated 2025-11-08Assigner: redhat

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.

CWE-241

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

21Fixed
9Fix pending
3Under investigation
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libnbdFix pendingUBUNTU-CVE-2023-5215
Ubuntu 26.04libnbdUnder investigationUBUNTU-CVE-2023-5215
Ubuntu 25.10libnbdWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-5215
Ubuntu 24.04libnbdUnder investigationUBUNTU-CVE-2023-5215
Ubuntu 22.04libnbdUnder investigationUBUNTU-CVE-2023-5215
Ubuntu 20.04libnbdWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-5215
Debian 14libnbdFixed1.16.5-1DEBIAN-CVE-2023-5215
Debian 13libnbdFixed1.16.5-1DEBIAN-CVE-2023-5215
Debian 12libnbdFix pendingDEBIAN-CVE-2023-5215
Red Hat Enterprise Linux 9libnbdFixed0:1.18.1-3.el9RHSA-2024:2204
Red Hat Enterprise Linux 9libnbd-bash-completionFixed0:1.18.1-3.el9RHSA-2024:2204
Red Hat Enterprise Linux 9libnbd-develFixed0:1.18.1-3.el9RHSA-2024:2204
Red Hat Enterprise Linux 9nbdfuseFixed0:1.18.1-3.el9RHSA-2024:2204
Red Hat Enterprise Linux 9ocaml-libnbdFixed0:1.18.1-3.el9RHSA-2024:2204
Red Hat Enterprise Linux 9ocaml-libnbd-develFixed0:1.18.1-3.el9RHSA-2024:2204
Red Hat Enterprise Linux 9python3-libnbdFixed0:1.18.1-3.el9RHSA-2024:2204
Red Hat Enterprise Linux 8libnbdFix pending
Fix deferred
Red Hat Enterprise Linux 8libnbd-bash-completionFix pending
Fix deferred
Red Hat Enterprise Linux 8libnbd-develFix pending
Fix deferred
Red Hat Enterprise Linux 8nbdfuseFix pending
Fix deferred
Red Hat Enterprise Linux 8ocaml-libnbdFix pending
Fix deferred
Red Hat Enterprise Linux 8ocaml-libnbd-develFix pending
Fix deferred
Red Hat Enterprise Linux 8python3-libnbdFix pending
Fix deferred
AlmaLinux 9libnbdFixed1.18.1-3.el9ALSA-2024:2204
AlmaLinux 9libnbd-bash-completionFixed1.18.1-3.el9ALSA-2024:2204
AlmaLinux 9libnbd-develFixed1.18.1-3.el9ALSA-2024:2204
AlmaLinux 9nbdfuseFixed1.18.1-3.el9ALSA-2024:2204
AlmaLinux 9ocaml-libnbdFixed1.18.1-3.el9ALSA-2024:2204
AlmaLinux 9ocaml-libnbd-develFixed1.18.1-3.el9ALSA-2024:2204
AlmaLinux 9python3-libnbdFixed1.18.1-3.el9ALSA-2024:2204
Alpine Linux 3.24libnbdFixed1.18.0-r0ALPINE-CVE-2023-5215
Alpine Linux 3.23libnbdFixed1.18.0-r0ALPINE-CVE-2023-5215
Alpine Linux 3.22libnbdFixed1.18.0-r0ALPINE-CVE-2023-5215
Alpine Linux 3.21libnbdFixed1.18.0-r0ALPINE-CVE-2023-5215
Alpine Linux 3.20libnbdFixed1.18.0-r0ALPINE-CVE-2023-5215

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.