Bug 2241041 (CVE-2023-5215) - CVE-2023-5215 libnbd: Crash or misbehaviour when NBD server returns an unexpected block size
Summary: CVE-2023-5215 libnbd: Crash or misbehaviour when NBD server returns an unexpe...
Keywords:
Status: NEW
Alias: CVE-2023-5215
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2241042 2241043 2241044
Blocks: 2240178 2241096
TreeView+ depends on / blocked
 
Reported: 2023-09-27 19:49 UTC by Pedro Sampaio
Modified: 2024-04-30 09:47 UTC (History)
7 users (show)

Fixed In Version: libnbd 1.18.0
Doc Type: If docs needed, set a value
Doc Text:
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.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:2204 0 None None None 2024-04-30 09:47:55 UTC

Description Pedro Sampaio 2023-09-27 19:49:50 UTC
In libnbd since v1.0 a server can reply with a block size larger than 2^63 (the NBD spec states size is a 64-bit unsigned value) possibly leading to application crash or other unintended behavior for NBD clients that doesn't treat the return value correctly.

References:

https://listman.redhat.com/archives/libguestfs/2023-September/032635.html

Comment 1 Pedro Sampaio 2023-09-27 19:52:29 UTC
Created libnbd tracking bugs for this issue:

Affects: fedora-all [bug 2241042]

Comment 6 errata-xmlrpc 2024-04-30 09:47:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:2204 https://access.redhat.com/errata/RHSA-2024:2204


Note You need to log in before you can comment on or make changes to this bug.