Bug 1935396 (CVE-2021-27922) - CVE-2021-27922 python-pillow: Excessive memory allocation in ICNS image reader
Summary: CVE-2021-27922 python-pillow: Excessive memory allocation in ICNS image reader
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-27922
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1935397 1935398 1935399 1935400 1935584 1939596 1939597
Blocks: 1934710
TreeView+ depends on / blocked
 
Reported: 2021-03-04 19:48 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-11-09 17:24 UTC (History)
12 users (show)

Fixed In Version: python-pillow 8.1.2
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in python-pillow. Attackers can cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for an ICNS container, and thus an attempted memory allocation can be very large.
Clone Of:
Environment:
Last Closed: 2021-10-19 14:09:10 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:3917 0 None None None 2021-10-19 12:11:06 UTC
Red Hat Product Errata RHSA-2021:4149 0 None None None 2021-11-09 17:24:33 UTC

Description Guilherme de Almeida Suckevicz 2021-03-04 19:48:46 UTC
Pillow before 8.1.2 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for an ICNS container, and thus an attempted memory allocation can be very large.

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

Comment 1 Guilherme de Almeida Suckevicz 2021-03-04 19:49:23 UTC
Created mingw-python-pillow tracking bugs for this issue:

Affects: fedora-all [bug 1935399]


Created python-pillow tracking bugs for this issue:

Affects: fedora-all [bug 1935397]


Created python2-pillow tracking bugs for this issue:

Affects: fedora-all [bug 1935398]


Created python3-pillow tracking bugs for this issue:

Affects: epel-7 [bug 1935400]

Comment 3 Jason Shepherd 2021-03-08 03:04:20 UTC
Statement:

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

Comment 5 Riccardo Schirone 2021-03-16 16:47:25 UTC
Upstream patch seems to be https://github.com/python-pillow/Pillow/commit/480f6819b592d7f07b9a9a52a7656c10bbe07442

Comment 7 errata-xmlrpc 2021-10-19 12:11:04 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 8 Product Security DevOps Team 2021-10-19 14:09:10 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-27922

Comment 9 errata-xmlrpc 2021-11-09 17:24:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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


Note You need to log in before you can comment on or make changes to this bug.