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.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.8%top 43.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
AlmaLinux:9libnbd1.18.1-3.el9ALSA-2024:2204
AlmaLinux:9libnbd-bash-completion1.18.1-3.el9ALSA-2024:2204
AlmaLinux:9libnbd-devel1.18.1-3.el9ALSA-2024:2204
AlmaLinux:9nbdfuse1.18.1-3.el9ALSA-2024:2204
AlmaLinux:9ocaml-libnbd1.18.1-3.el9ALSA-2024:2204
AlmaLinux:9ocaml-libnbd-devel1.18.1-3.el9ALSA-2024:2204
AlmaLinux:9python3-libnbd1.18.1-3.el9ALSA-2024:2204
Alpine:v3.20libnbd1.18.0-r0ALPINE-CVE-2023-5215
Alpine:v3.21libnbd1.18.0-r0ALPINE-CVE-2023-5215
Alpine:v3.22libnbd1.18.0-r0ALPINE-CVE-2023-5215
Alpine:v3.23libnbd1.18.0-r0ALPINE-CVE-2023-5215
Alpine:v3.24libnbd1.18.0-r0ALPINE-CVE-2023-5215
Debian:12libnbdno fix listedDEBIAN-CVE-2023-5215
Debian:13libnbd1.16.5-1DEBIAN-CVE-2023-5215
Debian:14libnbd1.16.5-1DEBIAN-CVE-2023-5215
Ubuntu:22.04:LTSlibnbdno fix listedUBUNTU-CVE-2023-5215
Ubuntu:24.04:LTSlibnbdno fix listedUBUNTU-CVE-2023-5215
Ubuntu:25.10libnbdno fix listedUBUNTU-CVE-2023-5215
Ubuntu:26.04:LTSlibnbdno fix listedUBUNTU-CVE-2023-5215
Ubuntu:26.10libnbdno fix listedUBUNTU-CVE-2023-5215

Affected products (as reported)

Weakness: CWE-241 · Vector: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

References