Bug 2061542 (CVE-2022-26496)

Summary: CVE-2022-26496 nbd: stack-based buffer overflow during name parsing 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 21:32:40 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: 2061888, 2061889    
Bug Blocks: 2061543    

Description Patrick Del Bello 2022-03-07 19:23:47 UTC
In nbd-server in nbd before 3.24, there is a stack-based buffer overflow. An attacker can cause a buffer overflow in the parsing of the name field by sending a crafted NBD_OPT_INFO or NBD_OPT_GO message with an large value as the length of the name.

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

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

Affects: epel-7 [bug 2061888]
Affects: fedora-all [bug 2061889]

Comment 2 Product Security DevOps Team 2022-03-08 21:32:38 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.