Skip to content
OpenAdvisories
Medium · 5.3 CVE-2023-5215 EUVD-2023-57545GHSA-fj2q-5f6j-5xf4

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

Published Sep 28, 2023 · Updated Nov 8, 2025 · 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.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 8 Advanced Virtualization — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libnbd 1.16.5-1 —
Debian 13 libnbd 1.16.5-1 —
Debian 12 libnbd No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libnbd No fix yet —
Ubuntu 26.04 LTS libnbd No fix yet —
Ubuntu 25.10 libnbd No fix yet —
Ubuntu 24.04 LTS libnbd No fix yet —
Ubuntu 22.04 LTS libnbd No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libnbd No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 libnbd +6 1.18.1-3.el9 RHSA-2024:2204

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 libnbd +6 1.18.1-3.el9 ALSA-2024:2204
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libnbd 1.18.0-1.1 openSUSE-SU-2024:13278-1
openSUSE Leap 15.5 libnbd 1.18.1-150300.8.15.1 SUSE-SU-2023:4222-1
openSUSE Leap 15.4 libnbd 1.18.1-150300.8.15.1 SUSE-SU-2023:4222-1
ReleasePackageFixed inAdvisory
Alpine v3.24 libnbd 1.18.0-r0 —
Alpine v3.23 libnbd 1.18.0-r0 —
Alpine v3.22 libnbd 1.18.0-r0 —
Alpine v3.21 libnbd 1.18.0-r0 —
Alpine v3.20 libnbd 1.18.0-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 libnbd 1.12.1-3 —
Azure Linux 2 (CBL-Mariner) libnbd 1.12.1-3 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 libnbd +6 1.18.1-3.el9 ELSA-2024-2204

Advisories 6

References