title: Libnbd: crash or misbehaviour when nbd server returns an unexpected block size
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.
problem types: Improper Handling of Unexpected Data Type
affected:
{
product: libnbd
vendor: n/a
versions:
version: 1.18.0, status: unaffected
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: virt:rhel/libnbd
defaultStatus: affected
cpes: cpe:/o:redhat:enterprise_linux:8
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8 Advanced Virtualization
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: virt:av/libnbd
defaultStatus: affected
cpes: cpe:/a:redhat:advanced_virtualization:8::el8
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8 Advanced Virtualization
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: virt-devel:av/libnbd
defaultStatus: affected
cpes: cpe:/a:redhat:advanced_virtualization:8::el8
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 9
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: libnbd
defaultStatus: affected
cpes: cpe:/o:redhat:enterprise_linux:9
}
{
product: Fedora
vendor: Fedora
collectionURL: https://packages.fedoraproject.org/
packageName: libnbd
defaultStatus: affected
}
metrics:
other: [
content: {'value': 'Low', 'namespace': 'https://access.redhat.com/security/updates/classification/'}
type: Red Hat severity rating
]