CVE-2023-5871
Medium · 5.3CVSS
5.3
EPSS
0.9%
Published
Nov 27, 2023
CISA due date
—
Cloudanix analysis
A problem in software that connects to remote hard drives over a network can let a bad server crash the connecting program.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A malicious NBD server can trigger a denial of service condition in libnbd clients by exploiting the flaw during protocol interaction over the network.
Why it matters to the business
Systems relying on libnbd for remote block device access may experience unexpected crashes or service interruptions when connecting to untrusted servers, leading to operational downtime and potential data access issues.
How an attack unfolds
An attacker hosts a malicious NBD server that responds to client connections with crafted protocol messages designed to trigger the flaw, causing the connecting libnbd client to crash or hang.
How to fix it
Upgrade libnbd to the fixed commit 999560eb9edf5037b4fcb4ffbbb0cfa75d88d0b1 or later in the GIT repository. Rebuild and redeploy any dependent applications after updating.
How to confirm the fix worked
Verify the installed libnbd version or commit hash matches or exceeds 999560eb9edf5037b4fcb4ffbbb0cfa75d88d0b1. Test connections to known-good NBD servers to confirm stability.
Typical attack path
- Attacker deploys a malicious NBD server on a network reachable by the target client.
- Target application or tool using libnbd initiates a connection to the attacker's server.
- Server sends malicious responses during the NBD protocol handshake or data exchange.
- Client crashes or enters a denial of service state, interrupting the application.
How to detect it
Review application logs and system crash reports for unexpected terminations of processes using libnbd when connecting to external NBD endpoints. Check network traffic for connections to untrusted servers around the time of incidents.
What your security team should do
- Apply the fixed commit immediately to all affected libnbd installations.
- Audit configurations to ensure connections are only made to trusted NBD servers.
- Monitor for application crashes in libnbd-dependent services and review update logs.
The record
A flaw was found in libnbd, due to a malicious Network Block Device (NBD), a protocol for accessing Block Devices such as hard disks over a Network. This issue may allow a malicious NBD server to cause a Denial of Service.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| AlmaLinux:9 | libnbd | 0 | 1.18.1-3.el9 |
| AlmaLinux:9 | libnbd-bash-completion | 0 | 1.18.1-3.el9 |
| AlmaLinux:9 | libnbd-devel | 0 | 1.18.1-3.el9 |
| AlmaLinux:9 | nbdfuse | 0 | 1.18.1-3.el9 |
| AlmaLinux:9 | ocaml-libnbd | 0 | 1.18.1-3.el9 |
| AlmaLinux:9 | ocaml-libnbd-devel | 0 | 1.18.1-3.el9 |
| AlmaLinux:9 | python3-libnbd | 0 | 1.18.1-3.el9 |
| Debian:13 | libnbd | 0 | 1.18.1-1 |
| Red Hat:enterprise_linux:9::appstream | libnbd | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::appstream | libnbd-bash-completion | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::appstream | libnbd-debuginfo | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::appstream | libnbd-debugsource | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::appstream | libnbd-devel | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::appstream | nbdfuse | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::appstream | nbdfuse-debuginfo | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::appstream | ocaml-libnbd | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::appstream | ocaml-libnbd-debuginfo | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::appstream | ocaml-libnbd-devel | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::appstream | python3-libnbd | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::appstream | python3-libnbd-debuginfo | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::crb | libnbd | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::crb | libnbd-bash-completion | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::crb | libnbd-debuginfo | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::crb | libnbd-debugsource | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::crb | libnbd-devel | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::crb | nbdfuse | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::crb | nbdfuse-debuginfo | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::crb | ocaml-libnbd | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::crb | ocaml-libnbd-debuginfo | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::crb | ocaml-libnbd-devel | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::crb | python3-libnbd | 0 | 0:1.18.1-3.el9 |
| Red Hat:enterprise_linux:9::crb | python3-libnbd-debuginfo | 0 | 0:1.18.1-3.el9 |
| Ubuntu:20.04:LTS | libnbd | 0 | No fix |
| Ubuntu:22.04:LTS | libnbd | 0 | No fix |
| Ubuntu:24.04:LTS | libnbd | 0 | No fix |
| Ubuntu:24.10 | libnbd | 0 | 1.20.0-1 |
| Ubuntu:Pro:20.04:LTS | libnbd | 0 | No fix |
| openSUSE:Leap 15.4 | libnbd | 0 | 1.18.1-150300.8.18.1 |
| openSUSE:Leap 15.5 | libnbd | 0 | 1.18.1-150300.8.18.1 |
| openSUSE:Tumbleweed | libnbd | 0 | 1.18.1-2.1 |
Related vulnerabilities
- CVE-2024-7383 A flaw was found in libnbd. Also affects libnbd
- CVE-2025-14946 A flaw was found in libnbd. Also affects libnbd
- CVE-2026-105754 vLLM is an inference and serving engine for large language models. CWE-617
- CVE-2026-105753 vLLM is an inference and serving engine for large language models. CWE-617
- CVE-2026-98151 In the Linux kernel, the following vulnerability has been resolved: bpf: Fix REG… CWE-617
- CVE-2026-84450 libheif is a HEIF and AVIF file format decoder and encoder. CWE-617
- CVE-2026-8674 Initializing the DNS stub resolver from an /etc/resolv.conf file, or a LOCALDOMAIN… CWE-617
- CVE-2026-80274 If a BIND resolver sends a query for a DNSSEC-signed authoritative zone, and the… CWE-617