Bug 2078745 (CVE-2022-28506)

Summary: CVE-2022-28506 giflib: buffer overflow in function DumpScreen2RGB()
Product: [Other] Security Response Reporter: Vipul Nair <vinair>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jaromir.capik, manisandro, mmuzila, nforro, vgaikwad
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in giflib, in the command-line tool gif2rgb. Information disclosure is possible due to a buffer overflow in the DumpScreen2RGB() function.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-19 18:15:03 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: 2078747, 2078748, 2080225, 2080226    
Bug Blocks: 2078746    

Description Vipul Nair 2022-04-26 06:50:17 UTC
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.

https://sourceforge.net/p/giflib/bugs/159/
https://github.com/verf1sh/Poc/blob/master/asan_report_giflib.png
https://github.com/verf1sh/Poc/blob/master/giflib_poc

Comment 1 Vipul Nair 2022-04-26 06:54:08 UTC
Created giflib tracking bugs for this issue:

Affects: fedora-all [bug 2078747]


Created mingw-giflib tracking bugs for this issue:

Affects: fedora-all [bug 2078748]