cve.bz

CVE-2023-5215 redhat: Unchecked Return Value

6.5 mediumExploit referenceEPSS 0.8%Fix available

Medium (6.5) in redhat. EPSS 0.8% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 58th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-252 Unchecked Return Value
CWE-241 Improper Handling of Unexpected Data Type
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-5215 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-5215?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-5215?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-5215 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 90:1.18.1-3.el9

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12libnbdno fix listedDEBIAN-CVE-2023-5215
Debian13, 14libnbd1.16.5-1DEBIAN-CVE-2023-5215
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 3 morelibnbdno fix listedUBUNTU-CVE-2023-5215
Red Hatenterprise_linux:9::appstreamlibnbd, nbdfuse, python3-libnbd and 6 more0:1.18.1-3.el9RHSA-2024:2204
Red Hatenterprise_linux:9::crblibnbd-devel, ocaml-libnbd, libnbd-debuginfo and 5 more0:1.18.1-3.el9RHSA-2024:2204
openSUSELeap 15.4, Leap 15.5libnbd1.18.1-150300.8.15.1SUSE-SU-2023:4222-1
openSUSETumbleweedlibnbd1.18.0-1.1openSUSE-SU-2024:13278-1
AlmaLinux9libnbd, nbdfuse, libnbd-devel and 4 more1.18.1-3.el9ALSA-2024:2204
Alpinev3.20, v3.21, v3.22 and 2 morelibnbd1.18.0-r0ALPINE-CVE-2023-5215
Azure Linux2libnbd1.12.1-3AZL-31095
Azure Linux3libnbd1.12.1-3AZL-34933

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9libnbd-0:1.18.1-3.el9Fixed 2024-04-30RHSA-2024:2204
Red Hat Enterprise Linux 8virt:rhel/libnbdFix deferred
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:av/libnbdFix deferred
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt-devel:av/libnbdFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-5215.

Attack patterns (CAPEC)

  • CAPEC-48 Passing Local Filenames to Functions That Expect a URL Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON