CVE-2023-5871 Libnbd: malicious nbd server may crash libnbd

Medium 5.3 Published Updated

A malicious Network Block Device server can crash the libnbd library, causing a denial of service for applications using it.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-5871?

CVE-2023-5871 is a medium-severity denial of service vulnerability in Redhat Enterprise Linux, published on 27 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-617

Which versions are affected by CVE-2023-5871?

It affects 2 products.

Linux distribution packages (3)
libnbd openSUSE:Leap 15.4All versions1.18.1-150300.8.18.1
libnbd openSUSE:Leap 15.5All versions1.18.1-150300.8.18.1
libnbd openSUSE:TumbleweedAll versions1.18.1-2.1

Products include Redhat Enterprise Linux, Redhat Libnbd.

How do I fix CVE-2023-5871?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-5871 being exploited?

There is no known exploitation of CVE-2023-5871 in the wild and no public exploit code.

All Redhat Enterprise Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2023-5871, GHSA-m8ch-v4g3-cq3g, SUSE-SU-2023:4463-1, UBUNTU-CVE-2023-5871, openSUSE-SU-2024:13422-1.

Is CVE-2023-5871 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free