Bug 2006930 (CVE-2021-37972)

Summary: CVE-2021-37972 libjpeg-turbo: Out-of-bounds read in 64-bit SSE2 Huffman encoder
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: bdettelb, caswilli, erik-fedora, fjansen, jwong, kaycoth, klember, manisandro, negativo17, nforro, phracek, rh-spice-bugs, rjones, spotrh, tpopela, vmugicag, vonsch, yaneti
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libjpeg-turbo 2.1.1 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the libjpeg-turbo package, where it is susceptible to an out-of-bounds read on crafted input and malformed files. Proper bounds checking is not enforced when processing JPEG files. The highest threat from this vulnerability is system availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 14:45:59 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: 2006931, 2006932, 2007307, 2007309, 2007679    
Bug Blocks: 2007311    

Description Guilherme de Almeida Suckevicz 2021-09-22 16:42:31 UTC
An out of bounds read flaw was found in the libjpeg-turbo component of the Chromium browser.

Upstream bug(s):

https://code.google.com/p/chromium/issues/detail?id=1234259

External References:

https://chromereleases.googleblog.com/2021/09/stable-channel-update-for-desktop_21.html

Comment 1 Guilherme de Almeida Suckevicz 2021-09-22 16:43:35 UTC
Created chromium tracking bugs for this issue:

Affects: epel-all [bug 2006932]
Affects: fedora-all [bug 2006931]

Comment 2 Product Security DevOps Team 2021-09-22 18:21:54 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.

Comment 4 Guilherme de Almeida Suckevicz 2021-09-23 14:23:52 UTC
Created libjpeg-turbo tracking bugs for this issue:

Affects: fedora-all [bug 2007307]


Created mingw-libjpeg-turbo tracking bugs for this issue:

Affects: fedora-all [bug 2007309]

Comment 6 Tomas Hoger 2021-09-24 06:26:32 UTC
The upstream bug report remains private at this point.  However, its bug is referenced by this commit:

https://source.chromium.org/chromium/_/chromium/chromium/deps/libjpeg_turbo.git/+/ff19e5b2e176c61d552f68768e0e051867745321
https://chromium-review.googlesource.com/c/chromium/deps/libjpeg_turbo/+/3085321

This commit updates libjpeg-turbo bundled with Chromium sources from version 2.1.0 to 2.1.1.  The CVE assignment seems to be for this change mentioned in the commit message:

"""
Notable changes include a fix for a crash in the 64-bit SSE2 Huffman
encoder.
"""

This should correspond to the following libjpeg-turbo commit:

https://github.com/libjpeg-turbo/libjpeg-turbo/commit/2849d86aaae168fcac2e1b6c373c249781a41c5c

Note that the commit message notes the problem was introduced in commit 087c29e, which was added in version 2.0.90 according git tags.

Comment 7 Tomas Hoger 2021-09-24 07:01:17 UTC
This is libjpeg-turbo upstream bug report, that points back to the Chromium bug:

https://github.com/libjpeg-turbo/libjpeg-turbo/issues/543

Comment 11 Product Security DevOps Team 2022-05-17 14:45:56 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-2021-37972