Bug 2061541 (CVE-2022-26495) - CVE-2022-26495 nbd: heap-based buffer overflow in nbd-server.c
Summary: CVE-2022-26495 nbd: heap-based buffer overflow in nbd-server.c
Alias: CVE-2022-26495
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 2061886 2061887
Blocks: 2061543
TreeView+ depends on / blocked
Reported: 2022-03-07 19:23 UTC by Patrick Del Bello
Modified: 2022-03-08 20:49 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2022-03-08 20:49:39 UTC

Attachments (Terms of Use)

Description Patrick Del Bello 2022-03-07 19:23:26 UTC
In nbd-server in nbd before 3.24, there is an integer overflow with a resultant heap-based buffer overflow. A value of 0xffffffff in the name length field will cause a zero-sized buffer to be allocated for the name, resulting in a write to a dangling pointer. This issue exists for the NBD_OPT_INFO, NBD_OPT_GO, and NBD_OPT_EXPORT_NAME messages.


Comment 1 Guilherme de Almeida Suckevicz 2022-03-08 16:56:14 UTC
Created nbd tracking bugs for this issue:

Affects: epel-7 [bug 2061886]
Affects: fedora-all [bug 2061887]

Comment 2 Product Security DevOps Team 2022-03-08 20:49:37 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.

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