Bug 2552420 - openjpeg: openjpeg: heap buffer overflow in opj_dwt_encode_and_deinterleave_v() [fedora-all]
Summary: openjpeg: openjpeg: heap buffer overflow in opj_dwt_encode_and_deinterleave_v...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openjpeg
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Stewart Smith
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["68944e86-408d-4dc9-b0c9-f...
Depends On:
Blocks: 2552170
TreeView+ depends on / blocked
 
Reported: 2026-10-14 15:43 UTC by Laura Pardo
Modified: 2026-11-03 01:38 UTC (History)
2 users (show)

Fixed In Version: openjpeg-2.5.4-5.fc45 openjpeg-2.5.4-5.fc44
Clone Of:
Environment:
Last Closed: 2026-10-31 18:52:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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