Bug 2235437 (CVE-2021-40262)

Summary: CVE-2021-40262 freeimage: stack exhaustion via Validate() in PluginRAW.cpp
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: manisandro
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: 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: 2235439, 2235438, 2235440    
Bug Blocks:    

Description Guilherme de Almeida Suckevicz 2023-08-28 17:12:13 UTC
A stack exhaustion issue was discovered in FreeImage before 1.18.0 via the Validate function in PluginRAW.cpp.

Reference:
https://sourceforge.net/p/freeimage/bugs/338/

Comment 1 Guilherme de Almeida Suckevicz 2023-08-28 17:12:36 UTC
Created freeimage tracking bugs for this issue:

Affects: epel-all [bug 2235439]
Affects: fedora-all [bug 2235440]


Created mingw-freeimage tracking bugs for this issue:

Affects: fedora-all [bug 2235438]

Comment 2 Sandro Mani 2023-08-28 21:03:22 UTC
I'm assuming this should read FreeImage before *3.18.0*? And where is it stated that only < 3.18.0 is affected? I can't find or deduce this information from the upstream report.

Comment 3 Guilherme de Almeida Suckevicz 2023-08-29 14:07:08 UTC
Hi, the CVE description probably meant 3.18.0, this is the way it's in the Mitre CVE page[1] though.

I don't have affected information and the report is not very clear. However, given the upstream issue is still opened and the vulnerable code is present in 'trunk', I would say all versions before and including 3.18.0 are affected.

[1]. https://www.cve.org/CVERecord?id=CVE-2021-40262