Bug 1882339 (CVE-2020-24889)

Summary: CVE-2020-24889 libraw: buffer overflow vulnerability in LibRaw::GetNormalizedModel in src/metadata/normalize_model.cpp may lead to context-dependent arbitrary code execution
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dchen, debarshir, gwync, hobbes1069, jridky, manisandro, nphilipp, siddharth.kde, siddhesh, than
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: 2020-09-25 02:41:06 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: 1882341, 1882342, 1882343    
Bug Blocks: 1882348    

Description Dhananjay Arunesh 2020-09-24 10:46:27 UTC
A buffer overflow vulnerability in LibRaw version < 20.0 LibRaw::GetNormalizedModel in src/metadata/normalize_model.cpp may lead to context-dependent arbitrary code execution.

References:
https://github.com/LibRaw/LibRaw/issues/334

Comment 1 Dhananjay Arunesh 2020-09-24 10:49:51 UTC
Created LibRaw tracking bugs for this issue:

Affects: epel-6 [bug 1882342]
Affects: fedora-all [bug 1882341]

Comment 2 Dhananjay Arunesh 2020-09-24 10:51:49 UTC
Created mingw-LibRaw tracking bugs for this issue:

Affects: fedora-all [bug 1882343]

Comment 3 Todd Cullum 2020-09-24 20:49:23 UTC
Correction: affected version should say = 0.20.0.

The vulnerable code was first introduced to LibRaw in 0.20.0. See:

1. https://www.libraw.org/news/libraw-0-20-Release
2. https://github.com/LibRaw/LibRaw/commit/d1975cb0e055d2bfe58c9d845c9a3e57c346a2f9#diff-7ba01eaad8f8766e799b7d3b1fba5640

Comment 4 Todd Cullum 2020-09-24 21:36:42 UTC
Statement:

This flaw does not affect LibRaw as shipped with Red Hat Enterprise Linux 7 or 8 as the vulnerable code was introduced in a subsequent version of LibRaw.

Comment 5 Product Security DevOps Team 2020-09-25 02:41:06 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-24889