Vulnerability · Published Sep 28, 2023 · Assigned by redhat
CVE-2023-5215Libnbd: crash or misbehaviour when nbd server returns an unexpected block size
Medium 5.3
In plain English
A medium-severity security flaw in Red Hat Enterprise Linux 8 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | libnbd | 1.18.1-3.el9 | ALSA-2024:2204 |
| AlmaLinux:9 | libnbd-bash-completion | 1.18.1-3.el9 | ALSA-2024:2204 |
| AlmaLinux:9 | libnbd-devel | 1.18.1-3.el9 | ALSA-2024:2204 |
| AlmaLinux:9 | nbdfuse | 1.18.1-3.el9 | ALSA-2024:2204 |
| AlmaLinux:9 | ocaml-libnbd | 1.18.1-3.el9 | ALSA-2024:2204 |
| AlmaLinux:9 | ocaml-libnbd-devel | 1.18.1-3.el9 | ALSA-2024:2204 |
| AlmaLinux:9 | python3-libnbd | 1.18.1-3.el9 | ALSA-2024:2204 |
| Alpine:v3.20 | libnbd | 1.18.0-r0 | ALPINE-CVE-2023-5215 |
| Alpine:v3.21 | libnbd | 1.18.0-r0 | ALPINE-CVE-2023-5215 |
| Alpine:v3.22 | libnbd | 1.18.0-r0 | ALPINE-CVE-2023-5215 |
| Alpine:v3.23 | libnbd | 1.18.0-r0 | ALPINE-CVE-2023-5215 |
| Alpine:v3.24 | libnbd | 1.18.0-r0 | ALPINE-CVE-2023-5215 |
| Debian:12 | libnbd | no fix listed | DEBIAN-CVE-2023-5215 |
| Debian:13 | libnbd | 1.16.5-1 | DEBIAN-CVE-2023-5215 |
| Debian:14 | libnbd | 1.16.5-1 | DEBIAN-CVE-2023-5215 |
| Ubuntu:22.04:LTS | libnbd | no fix listed | UBUNTU-CVE-2023-5215 |
| Ubuntu:24.04:LTS | libnbd | no fix listed | UBUNTU-CVE-2023-5215 |
| Ubuntu:25.10 | libnbd | no fix listed | UBUNTU-CVE-2023-5215 |
| Ubuntu:26.04:LTS | libnbd | no fix listed | UBUNTU-CVE-2023-5215 |
| Ubuntu:26.10 | libnbd | no fix listed | UBUNTU-CVE-2023-5215 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 8 Advanced Virtualization | see references |
| Red Hat | Red Hat Enterprise Linux 8 Advanced Virtualization | see references |
Weakness: CWE-241 · Vector: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- RHSA-2024:2204 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2023-5215 vdb-entry, x_refsource_REDHAT
- RHBZ#2241041 issue-tracking, x_refsource_REDHAT
- https://listman.redhat.com/archives/libguestfs/2023-September/032635.html