Bug 2552420

Summary: openjpeg: openjpeg: heap buffer overflow in opj_dwt_encode_and_deinterleave_v() [fedora-all]
Product: [Fedora] Fedora Reporter: Laura Pardo <lpardo>
Component: openjpegAssignee: Stewart Smith <trawets>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: manisandro, trawets
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["68944e86-408d-4dc9-b0c9-ff3519b0ef4b"]}
Fixed In Version: openjpeg-2.5.4-5.fc45 openjpeg-2.5.4-5.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-10-31 18:52:47 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:    
Bug Blocks: 2552170    

Description Laura Pardo 2026-10-14 15:43:08 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

A heap buffer overflow was found in OpenJPEG's DWT encoder in the opj_dwt_encode_and_deinterleave_v() function in src/lib/openjp2/dwt.c. When a resolution level has zero height with an odd starting coordinate, the function accesses 32 bytes beyond the end of its heap-allocated scratch buffer, causing both out-of-bounds reads and writes. This can lead to heap corruption and process abort.

The vulnerability was introduced in commit a38e970f (2020-05-22) which added vectorized vertical pass support. It affects OpenJPEG versions 2.4.0 through 2.5.4 and the current upstream master. Versions 2.3.1 and earlier are not affected.

The reporter confirms heap out-of-bounds read, heap out-of-bounds write / heap corruption, and process abort / denial of service. The reporter makes no claim about exploitability. This is an encoder-side issue, not decoder-side.

Upstream issue: https://github.com/uclouvain/openjpeg/issues/1673
Upstream proposed fix: https://github.com/uclouvain/openjpeg/pull/1674
oss-security disclosure: https://www.openwall.com/lists/oss-security/2026/10/05/5

Comment 1 Fedora Update System 2026-10-28 22:29:20 UTC
FEDORA-2026-a4c3cdcb67 (openjpeg-2.5.4-5.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-a4c3cdcb67

Comment 2 Fedora Update System 2026-10-28 22:29:24 UTC
FEDORA-2026-e0d454da76 (openjpeg-2.5.4-5.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-e0d454da76

Comment 3 Fedora Update System 2026-10-29 02:02:13 UTC
FEDORA-2026-e0d454da76 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-e0d454da76`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-e0d454da76

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2026-10-29 02:48:23 UTC
FEDORA-2026-a4c3cdcb67 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-a4c3cdcb67`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-a4c3cdcb67

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2026-10-31 18:52:47 UTC
FEDORA-2026-e0d454da76 (openjpeg-2.5.4-5.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2026-11-03 01:38:40 UTC
FEDORA-2026-a4c3cdcb67 (openjpeg-2.5.4-5.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.