Bug 2122674

Summary: binutils: Infinite loop in display_debug_abbrev() function in binutils/dwarf.c
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: adudiak, ailan, aoliva, bdettelb, caswilli, dffrench, dhalasz, dvlasenk, elima, erik-fedora, fjansen, fweimer, gzaronik, jakub, jburrell, jkoehler, jwong, kaycoth, klember, kshier, ktietz, manisandro, marcandre.lureau, mcermak, micjohns, mnewsome, mpolacek, mprchlik, ngough, nickc, ohudlick, rgodfrey, rjones, sipoyare, sthirugn, virt-maint, vkrizan, vmugicag, yahmad
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-09-06 17:57:20 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: 2122675, 2122676    
Bug Blocks: 2122677    

Description Pedro Sampaio 2022-08-30 14:54:42 UTC
An infinite loop may be triggered in display_debug_abbrev() function in binutils/dwarf.c while opening a crafted ELF, which may lead to denial of service by a local attacker.

Upstream bug:

https://sourceware.org/bugzilla/show_bug.cgi?id=29370

Comment 1 Pedro Sampaio 2022-08-30 14:55:41 UTC
Created binutils tracking bugs for this issue:

Affects: fedora-all [bug 2122675]


Created mingw-binutils tracking bugs for this issue:

Affects: fedora-all [bug 2122676]

Comment 2 Siddhesh Poyarekar 2022-08-30 17:37:12 UTC
(In reply to Pedro Sampaio from comment #0)
> An infinite loop may be triggered in display_debug_abbrev() function in
> binutils/dwarf.c while opening a crafted ELF, which may lead to denial of
> service by a local attacker.

By that rationale, running `while true; do echo; done` is a security issue.  Is there another reason why this should be considered a security issue?

Comment 3 Siddhesh Poyarekar 2022-09-06 17:57:20 UTC
This will be fixed in #2122675 as a regular bug.  This does not look security-relevant.