Bug 2061541 (CVE-2022-26495)

Summary: CVE-2022-26495 nbd: heap-based buffer overflow in nbd-server.c
Product: [Other] Security Response Reporter: Patrick Del Bello <pdelbell>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: enslaver, robinlee.sysu, xjakub
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-08 20:49:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2061886, 2061887    
Bug Blocks: 2061543    

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.

https://sourceforge.net/projects/nbd/files/nbd/
https://lists.debian.org/nbd/2022/01/msg00037.html

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.