CVE-2023-5215
Libnbd: crash or misbehaviour when nbd server returns an unexpected block size
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.
Attack profile
How easy it is to exploit
- Attack vector
- Adjacent network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
5.3
Libnbd: crash or misbehaviour when nbd server returns an unexpected block size
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.
- Record
CVE-2023-5215- 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 - Weakness
- CWE-241
- Updated
- 2026-11-02
EUVDEUVD-2023-57545
5.3
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.
- Record
EUVD-2023-57545- 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-fj2q-5f6j-5xf4
5.3
A flaw was found in libnbd. A server can reply with a block size larger than 2^63 (the NBD spec...
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.
- Record
GHSA-fj2q-5f6j-5xf4- 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 - Weakness
- CWE-241, CWE-252
- Updated
- 2026-11-02
NVD
5.3
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.
- Record
CVE-2023-5215- 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 - 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 - Weakness
- CWE-241, CWE-252
- Updated
- 2026-11-02
OSVALPINE-CVE-2023-5215
6.5
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.
- Record
ALPINE-CVE-2023-5215- 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 - Updated
- 2026-11-03
OSVAZL-31095
6.5
CVE-2023-5215 affecting package libnbd for versions less than 1.12.1-3
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.
- Record
AZL-31095- 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 - Updated
- 2026-11-02
Show 10 moreShow less
OSVAZL-34933
6.5
CVE-2023-5215 affecting package libnbd for versions less than 1.12.1-3
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.
- Record
AZL-34933- 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 - Updated
- 2026-11-02
OSV
5.3
Libnbd: crash or misbehaviour when nbd server returns an unexpected block size
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.
- Record
CVE-2023-5215- 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 - Weakness
- CWE-241
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2023-5215
6.5
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.
- Record
DEBIAN-CVE-2023-5215- 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 - Updated
- 2026-11-02
OSVRHSA-2024:2204
5.3
Red Hat Security Advisory: libnbd security update
- Record
RHSA-2024:2204- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVUBUNTU-CVE-2023-5215
5.3
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.
- Record
UBUNTU-CVE-2023-5215- 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 - 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 - Updated
- 2026-11-02
OSVALSA-2024:2204 No score
Moderate: libnbd security update
Network Block Device (NBD) is a protocol for accessing Block Devices (hard disks and disk-like devices) over a Network. The libnbd is a userspace client library for writing NBD clients.
Security Fix(es):
- libnbd: Malicious NBD server may crash libnbd (CVE-2023-5871)
- libnbd: Crash or misbehaviour when NBD server returns an unexpected block size (CVE-2023-5215)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.
- Record
ALSA-2024:2204- Updated
- 2026-11-02
OSVCLSA-2026-1778007485 No score
libnbd: Fix of CVE-2023-5215
- CVE-2023-5215: fix nbd_get_size returning negative value for sizes larger than INT64_MAX
- Record
CLSA-2026-1778007485- Updated
- 2026-11-02
OSVMGASA-2024-0174 No score
Updated libnbd packages fix security vulnerability
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. (CVE-2023-5215)
- Record
MGASA-2024-0174- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:13278-1 No score
libnbd-1.18.0-1.1 on GA media
These are all security issues fixed in the libnbd-1.18.0-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13278-1- Updated
- 2026-11-02
OSVSUSE-SU-2023:4222-1 No score
Security update for libnbd
This update for libnbd fixes the following issues:
-
Updated to version 1.18.1
-
Updated to version 1.18.0:
- CVE-2023-5215: Fixed an issue where an NBD server returning an unexpected block size might crash an application (bsc#1215799).
- Record
SUSE-SU-2023:4222-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libnbdAlpine:v3.20 |
before 1.18.0-r0 | 1.18.0-r0 |
libnbdAlpine:v3.21 |
before 1.18.0-r0 | 1.18.0-r0 |
libnbdAlpine:v3.22 |
before 1.18.0-r0 | 1.18.0-r0 |
libnbdAlpine:v3.23 |
before 1.18.0-r0 | 1.18.0-r0 |
libnbdAlpine:v3.24 |
before 1.18.0-r0 | 1.18.0-r0 |
libnbdAlmaLinux:9 From an advisory covering 2 CVEs |
before 1.18.1-3.el9 | 1.18.1-3.el9 |
libnbd-bash-completionAlmaLinux:9 From an advisory covering 2 CVEs |
before 1.18.1-3.el9 | 1.18.1-3.el9 |
libnbd-develAlmaLinux:9 From an advisory covering 2 CVEs |
before 1.18.1-3.el9 | 1.18.1-3.el9 |
nbdfuseAlmaLinux:9 From an advisory covering 2 CVEs |
before 1.18.1-3.el9 | 1.18.1-3.el9 |
ocaml-libnbdAlmaLinux:9 From an advisory covering 2 CVEs |
before 1.18.1-3.el9 | 1.18.1-3.el9 |
Show 41 moreShow less
| Package | Affected | Fixed |
|---|---|---|
ocaml-libnbd-develAlmaLinux:9 From an advisory covering 2 CVEs |
before 1.18.1-3.el9 | 1.18.1-3.el9 |
python3-libnbdAlmaLinux:9 From an advisory covering 2 CVEs |
before 1.18.1-3.el9 | 1.18.1-3.el9 |
libnbdAzure Linux:2 |
before 1.12.1-3 | 1.12.1-3 |
libnbdAzure Linux:3 |
before 1.12.1-3 | 1.12.1-3 |
libnbdTuxCare:AlmaLinux:9.2 |
before 1.14.2-1.el9.tuxcare.els2 | 1.14.2-1.el9.tuxcare.els2 |
libnbd-bash-completionTuxCare:AlmaLinux:9.2 |
before 1.14.2-1.el9.tuxcare.els2 | 1.14.2-1.el9.tuxcare.els2 |
libnbd-develTuxCare:AlmaLinux:9.2 |
before 1.14.2-1.el9.tuxcare.els2 | 1.14.2-1.el9.tuxcare.els2 |
nbdfuseTuxCare:AlmaLinux:9.2 |
before 1.14.2-1.el9.tuxcare.els2 | 1.14.2-1.el9.tuxcare.els2 |
ocaml-libnbdTuxCare:AlmaLinux:9.2 |
before 1.14.2-1.el9.tuxcare.els2 | 1.14.2-1.el9.tuxcare.els2 |
ocaml-libnbd-develTuxCare:AlmaLinux:9.2 |
before 1.14.2-1.el9.tuxcare.els2 | 1.14.2-1.el9.tuxcare.els2 |
python3-libnbdTuxCare:AlmaLinux:9.2 |
before 1.14.2-1.el9.tuxcare.els2 | 1.14.2-1.el9.tuxcare.els2 |
libnbdDebian:12 |
All versions, plus listed versions 1.14.2-11.16.1-11.16.2-11.16.3-11.16.4-1 Show 22 moreShow less1.16.5-11.18.0-11.18.1-11.18.2-11.18.2-21.20.0-11.20.1-11.20.2-11.20.2-21.20.3-11.22.0-11.22.2-11.22.3-11.22.5-11.24.0-11.24.0-21.24.0-2.11.24.1-11.24.2-11.24.2-21.24.3-11.24.4-1 |
None known |
libnbdDebian:13 |
before 1.16.5-1 | 1.16.5-1 |
libnbdDebian:14 |
before 1.16.5-1 | 1.16.5-1 |
libnbdMageia:9 |
before 1.15.8-3.1.mga9 | 1.15.8-3.1.mga9 |
libnbdRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:1.18.1-3.el9 | 0:1.18.1-3.el9 |
libnbd-bash-completionRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:1.18.1-3.el9 | 0:1.18.1-3.el9 |
libnbd-debuginfoRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:1.18.1-3.el9 | 0:1.18.1-3.el9 |
libnbd-debugsourceRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:1.18.1-3.el9 | 0:1.18.1-3.el9 |
nbdfuseRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:1.18.1-3.el9 | 0:1.18.1-3.el9 |
nbdfuse-debuginfoRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:1.18.1-3.el9 | 0:1.18.1-3.el9 |
ocaml-libnbd-debuginfoRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:1.18.1-3.el9 | 0:1.18.1-3.el9 |
python3-libnbdRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:1.18.1-3.el9 | 0:1.18.1-3.el9 |
python3-libnbd-debuginfoRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:1.18.1-3.el9 | 0:1.18.1-3.el9 |
libnbd-debuginfoRed Hat:enterprise_linux:9::crb From an advisory covering 2 CVEs |
before 0:1.18.1-3.el9 | 0:1.18.1-3.el9 |
libnbd-debugsourceRed Hat:enterprise_linux:9::crb From an advisory covering 2 CVEs |
before 0:1.18.1-3.el9 | 0:1.18.1-3.el9 |
libnbd-develRed Hat:enterprise_linux:9::crb From an advisory covering 2 CVEs |
before 0:1.18.1-3.el9 | 0:1.18.1-3.el9 |
nbdfuse-debuginfoRed Hat:enterprise_linux:9::crb From an advisory covering 2 CVEs |
before 0:1.18.1-3.el9 | 0:1.18.1-3.el9 |
ocaml-libnbdRed Hat:enterprise_linux:9::crb From an advisory covering 2 CVEs |
before 0:1.18.1-3.el9 | 0:1.18.1-3.el9 |
ocaml-libnbd-debuginfoRed Hat:enterprise_linux:9::crb From an advisory covering 2 CVEs |
before 0:1.18.1-3.el9 | 0:1.18.1-3.el9 |
ocaml-libnbd-develRed Hat:enterprise_linux:9::crb From an advisory covering 2 CVEs |
before 0:1.18.1-3.el9 | 0:1.18.1-3.el9 |
python3-libnbd-debuginfoRed Hat:enterprise_linux:9::crb From an advisory covering 2 CVEs |
before 0:1.18.1-3.el9 | 0:1.18.1-3.el9 |
libnbdopenSUSE:Leap 15.4 |
before 1.18.1-150300.8.15.1 | 1.18.1-150300.8.15.1 |
libnbdopenSUSE:Leap 15.5 |
before 1.18.1-150300.8.15.1 | 1.18.1-150300.8.15.1 |
libnbdUbuntu:20.04:LTS |
All versions, plus listed versions 1.0.3-11.2.1-21.2.2-1ubuntu2 |
None known |
libnbdUbuntu:22.04:LTS |
All versions, plus listed versions 1.6.3-11.8.5-11.10.2-11.10.5-1 |
None known |
libnbdUbuntu:24.04:LTS |
All versions, plus listed versions 1.16.4-11.18.1-11.18.2-11.18.2-1build11.18.2-21.18.2-2build11.20.0-1 |
None known |
libnbdUbuntu:25.10 |
All versions, plus listed versions 1.22.0-11.22.2-1build11.22.2-1build2 |
None known |
libnbdUbuntu:26.10 |
All versions, plus listed versions 1.24.2-1ubuntu11.24.2-2ubuntu11.24.3-1ubuntu1 |
None known |
libnbdUbuntu:26.04:LTS |
All versions, plus listed versions 1.22.2-1build21.24.0-2ubuntu11.24.1-1ubuntu61.24.2-1ubuntu1 |
None known |
libnbdopenSUSE:Tumbleweed |
before 1.18.0-1.1 | 1.18.0-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, references | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-5215 is a medium vulnerability (CVSS 5.3) in Redhat Libnbd, published September 28, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.81%, the 57th percentile. Fixed in libnbd 1.18.0-r0.
References
access.redhat.com/errata/RHSA-2024:2204
access.redhat.com/security/cve/CVE-2023-5215
bugzilla.redhat.com/show_bug.cgi?id=2241041
listman.redhat.com/archives/libguestfs/2023-September/032635.html
nvd.nist.gov/vuln/detail/CVE-2023-5215
github.com/advisories/GHSA-fj2q-5f6j-5xf4
Show 27 moreShow less
security.alpinelinux.org/vuln/CVE-2023-5215
access.redhat.com/security/cve/CVE-2023-5871
bugzilla.redhat.com/2241041
bugzilla.redhat.com/2247308
errata.almalinux.org/9/ALSA-2024-2204.html
errata.tuxcare.com/els_os/almalinux9.2esu/CLSA-2026-1778007485.html
access.redhat.com/downloads/content/package-browser
github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5215.json
security-tracker.debian.org/tracker/CVE-2023-5215
advisories.mageia.org/MGASA-2024-0174.html
bugs.mageia.org/show_bug.cgi?id=33164
lwn.net/Articles/971701
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.4_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=2247308
issues.redhat.com/browse/RHEL-14476
issues.redhat.com/browse/RHEL-16292
issues.redhat.com/browse/RHEL-7099
security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_2204.json
cve.org/CVERecord?id=CVE-2023-5215
cve.org/CVERecord?id=CVE-2023-5871
nvd.nist.gov/vuln/detail/CVE-2023-5871
lists.libguestfs.org/archives/list/[email protected]/thread/PFVUCMPFQUDC23JXSCUUPXIGDZ7XCFMD
suse.com/support/update/announcement/2023/suse-su-20234222-1
bugzilla.suse.com/1215799
suse.com/security/cve/CVE-2023-5215
ubuntu.com/security/CVE-2023-5215