Bug 1921325 (CVE-2021-3272)

Summary: CVE-2021-3272 jasper: Heap-based buffer over-read in jp2_decode() in jp2_dec.c
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: erik-fedora, jridky, kaycoth, manisandro, mike, rh-spice-bugs, rjones
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: jasper 2.0.25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-10 02:22:15 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: 1921326, 1921328, 1922283, 1922284, 1922285    
Bug Blocks: 1921327    

Description Pedro Sampaio 2021-01-27 21:59:35 UTC
jp2_decode in jp2/jp2_dec.c in libjasper in JasPer 2.0.24 has a heap-based buffer over-read when there is an invalid relationship between the number of channels and the number of image components.

Upstream issue:

https://github.com/jasper-software/jasper/issues/259

Comment 1 Pedro Sampaio 2021-01-27 22:00:16 UTC
Created jasper tracking bugs for this issue:

Affects: fedora-all [bug 1921328]


Created mingw-jasper tracking bugs for this issue:

Affects: fedora-all [bug 1921326]

Comment 2 Tomas Hoger 2021-01-29 15:24:54 UTC
Upstream fix:

https://github.com/jasper-software/jasper/commit/49174ab592cdfa6f1a929a2ee3d4b4976f9459fd

There is no upstream version with the fix yet, but it should be included in 2.0.25.

Comment 5 errata-xmlrpc 2021-11-09 17:51:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 6 Product Security DevOps Team 2021-11-10 02:22:13 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-3272