Bug 2386543 (CVE-2025-54874)

Summary: CVE-2025-54874 openjpeg: OpenJPEG OOB heap memory write
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: bbrownin, orion
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
An out-of-bounds heap memory write (OOB) flaw was found in OpenJPEG. A call to opj_jp2_read_header may lead to an OOB heap memory write when the data stream p_stream is too short and p_image is not initialized.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2386567, 2386570, 2386561, 2386563, 2386566, 2386568, 2386569    
Bug Blocks:    

Description OSIDB Bzimport 2025-08-05 15:01:23 UTC
OpenJPEG is an open-source JPEG 2000 codec. In OpenJPEG 2.5.3 and earlier, a call to opj_jp2_read_header may lead to OOB heap memory write when the data stream p_stream is too short and p_image is not initialized.

Comment 2 Orion Poplawski 2025-08-10 04:48:46 UTC
I believe that this issue was introduced in openjpeg 2.5.1, see https://github.com/uclouvain/openjpeg/pull/1573 and so does not apply to earlier versions of openjpeg

Comment 3 errata-xmlrpc 2025-08-18 01:18:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2025:13944 https://access.redhat.com/errata/RHSA-2025:13944