Bug 1185805 - (CVE-2021-25287) VUL-0: CVE-2021-25287: python-Pillow: out-of-bounds read in J2kDecode in j2ku_graya_la
(CVE-2021-25287)
VUL-0: CVE-2021-25287: python-Pillow: out-of-bounds read in J2kDecode in j2ku...
Status: IN_PROGRESS
Classification: Novell Products
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents
unspecified
Other Other
: P3 - Medium : Normal
: ---
Assigned To: Security Team bot
Security Team bot
https://smash.suse.de/issue/283759/
:
Depends on: CVE-2021-25288
Blocks:
  Show dependency treegraph
 
Reported: 2021-05-09 16:11 UTC by Gianluca Gabrielli
Modified: 2021-06-22 13:14 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gianluca Gabrielli 2021-05-09 16:11:29 UTC
CVE-2021-25287

There is an out-of-bounds read in J2kDecode in j2ku_graya_la. For J2k images with multiple bands, it’s legal to have different widths for each band, e.g. 1 byte for L, 4 bytes for A. This dates to Pillow 2.4.0.

References:
https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#security
https://github.com/python-pillow/Pillow/pull/5377

References:
https://bugzilla.redhat.com/show_bug.cgi?id=1958226
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-25287
Comment 1 Gianluca Gabrielli 2021-05-09 16:12:31 UTC
Affected packages:

SUSE:SLE-12-SP2:Update:Products:Cloud7:Update/python-Pillow   2.8.1
SUSE:SLE-12-SP3:Update:Products:Cloud8:Update/python-Pillow   4.2.1
SUSE:SLE-12-SP4:Update:Products:Cloud9:Update/python-Pillow   5.2.0
openSUSE:Factory/python-Pillow                                8.2.0


Upstream patch [0]

[0] https://github.com/python-pillow/Pillow/commit/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87.patch
Comment 5 Christian Almeida de Oliveira 2021-05-28 08:22:17 UTC
https://jira.suse.com/browse/SOC-11530
Comment 6 Swamp Workflow Management 2021-06-10 13:23:52 UTC
SUSE-SU-2021:1938-1: An update that fixes 14 vulnerabilities is now available.

Category: security (important)
Bug References: 1180832,1180834,1183101,1183102,1183105,1183107,1183108,1183110,1185784,1185785,1185786,1185803,1185804,1185805
CVE References: CVE-2020-35653,CVE-2020-35655,CVE-2021-25287,CVE-2021-25288,CVE-2021-25290,CVE-2021-25292,CVE-2021-25293,CVE-2021-27921,CVE-2021-27922,CVE-2021-27923,CVE-2021-28675,CVE-2021-28676,CVE-2021-28677,CVE-2021-28678
JIRA References: 
Sources used:
SUSE OpenStack Cloud Crowbar 9 (src):    python-Pillow-5.2.0-3.8.1
SUSE OpenStack Cloud 9 (src):    python-Pillow-5.2.0-3.8.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 7 Swamp Workflow Management 2021-06-10 13:27:49 UTC
SUSE-SU-2021:1939-1: An update that fixes 10 vulnerabilities is now available.

Category: security (important)
Bug References: 1180834,1183101,1183105,1183107,1183108,1185785,1185786,1185803,1185804,1185805
CVE References: CVE-2020-35653,CVE-2021-25287,CVE-2021-25288,CVE-2021-25290,CVE-2021-25292,CVE-2021-27922,CVE-2021-27923,CVE-2021-28675,CVE-2021-28676,CVE-2021-28677
JIRA References: 
Sources used:
SUSE OpenStack Cloud Crowbar 8 (src):    python-Pillow-4.2.1-3.14.1
SUSE OpenStack Cloud 8 (src):    python-Pillow-4.2.1-3.14.1
HPE Helion Openstack 8 (src):    python-Pillow-4.2.1-3.14.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 8 Swamp Workflow Management 2021-06-10 13:45:46 UTC
SUSE-SU-2021:1940-1: An update that fixes 9 vulnerabilities is now available.

Category: security (important)
Bug References: 1180834,1183105,1183107,1183108,1185785,1185786,1185803,1185804,1185805
CVE References: CVE-2020-35653,CVE-2021-25287,CVE-2021-25288,CVE-2021-25290,CVE-2021-27922,CVE-2021-27923,CVE-2021-28675,CVE-2021-28676,CVE-2021-28677
JIRA References: 
Sources used:
SUSE OpenStack Cloud 7 (src):    python-Pillow-2.8.1-4.22.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 10 Christian Almeida de Oliveira 2021-06-22 13:14:30 UTC
fixes for affected SOC versions released, back to security team.