Bug 1934692 (CVE-2021-25291)

Summary: CVE-2021-25291 python-pillow: out-of-bounds read in TiffReadRGBATile in TiffDecode.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bdettelb, cstratak, kaycoth, manisandro, miminar, orion, paul, python-maint, rhel8-maint, tomckay, torsava
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-pillow 8.1.1 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in python-pillow. Invalid tile boundaries could lead to an OOB Read in TiffReadRGBATile in TiffDecode.c.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-19 14:08:54 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: 1934693, 1934694, 1934695, 1934696, 1935584, 1939588    
Bug Blocks: 1934710    

Description Guilherme de Almeida Suckevicz 2021-03-03 17:04:42 UTC
Invalid tile boundaries could lead to an OOB Read in TiffReadRGBATile in In TiffDecode.c.

Reference:
https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html

Comment 1 Guilherme de Almeida Suckevicz 2021-03-03 17:05:53 UTC
Created mingw-python-pillow tracking bugs for this issue:

Affects: fedora-all [bug 1934695]


Created python-pillow tracking bugs for this issue:

Affects: fedora-all [bug 1934693]


Created python2-pillow tracking bugs for this issue:

Affects: fedora-all [bug 1934694]


Created python3-pillow tracking bugs for this issue:

Affects: epel-7 [bug 1934696]

Comment 7 Riccardo Schirone 2021-03-16 16:28:59 UTC
Statement:

This issue did not affect the versions of python-pillow as shipped with Red Hat Enterprise Linux 8 as they did not include the vulnerable code, which was introduced in a newer upstream version than what what shipped.

Disable the invoice generation feature to mitigate this vulnerability in Red Hat Quay.

Comment 10 errata-xmlrpc 2021-10-19 12:10:56 UTC
This issue has been addressed in the following products:

  Red Hat Quay 3

Via RHSA-2021:3917 https://access.redhat.com/errata/RHSA-2021:3917

Comment 11 Product Security DevOps Team 2021-10-19 14:08:54 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-25291