CVE-2023-5215 Libnbd: crash or misbehaviour when nbd server returns an unexpected block size

Medium 5.3 Published Updated

A malicious NBD server can cause client crashes or misbehavior by returning an oversized block size, affecting applications using the libnbd library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-5215?

CVE-2023-5215 is a medium-severity vulnerability in Redhat Enterprise Linux, published on 28 Sep 2023. It can only be exploited from the same machine or local network, with no action from the victim.

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.

Weakness: CWE-252, CWE-241

Which versions are affected by CVE-2023-5215?

It affects 2 products.

Linux distribution packages (3)
libnbd openSUSE:Leap 15.4All versions1.18.1-150300.8.15.1
libnbd openSUSE:Leap 15.5All versions1.18.1-150300.8.15.1
libnbd openSUSE:TumbleweedAll versions1.18.0-1.1

Products include Redhat Enterprise Linux, Redhat Libnbd.

How do I fix CVE-2023-5215?

Apply the vendor's patch.

Is CVE-2023-5215 being exploited?

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

All Redhat Enterprise Linux vulnerabilities

Sources

Also known as AZL-31095, AZL-34933, CLSA-2026-1778007485, DEBIAN-CVE-2023-5215, GHSA-fj2q-5f6j-5xf4, MGASA-2024-0174 and 3 more.

Is CVE-2023-5215 in your software?

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

Check your SBOMs for free