Bug 2569424 (CVE-2026-125734)

Summary: CVE-2026-125734 gst-plugins-bad: gst-plugins-bad: mxfdemux out-of-bounds read via unvalidated signed index-table-segment fields
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: rhel-process-autobot, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in GStreamer gst-plugins-bad mxfdemux handling of MXF Index Table Segment data. Crafted index metadata can lead to an out-of-range lookup during a seek and terminate the media process. A Fedora 43 test reproduced an assertion-triggered abort. The upstream advisory also notes possible information disclosure, but an attacker-visible leak has not been demonstrated.
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: 2583183, 2583184    
Bug Blocks:    

Description OSIDB Bzimport 2026-11-10 11:34:43 UTC
GStreamer's gst-plugins-bad mxfdemux element parses MXF 'Index Table Segment' metadata packs in mxf_index_table_segment_parse() (gst/mxf/mxftypes.c, local tags 0x3f0c/0x3f0d). The 64-bit IndexStartPosition and IndexDuration values are read directly from the file with GST_READ_UINT64_BE() and stored, unvalidated, into the signed gint64 fields MXFIndexTableSegment::index_start_position and index_duration (gst/mxf/mxftypes.h:157-158). No range check rejects values whose top bit is set, so a crafted file can make index_start_position evaluate as a large negative number. This value is then used, still unvalidated, in gst/mxf/mxfdemux.c find_edit_entry(): (1) the segment-selection loop (lines 2267-2290) treats index_duration==0 as an 'open-ended' sentinel and matches a segment for any position >= index_start_position with no upper bound; (2) the backward keyframe search (lines 2298-2312) computes 'candidate - segment->index_start_position' as a direct array index into segment->index_entries with no bounds check at all; (3) the non-keyframe lookup (lines 2379-2386) is nominally bounded by a g_assert (line 2382-2383) but the comparison uses '<=' instead of '<', permitting a one-element overread, and the assert is only present on this one path. find_edit_entry() is invoked from the ordinary per-essence-element demuxing path (gst_mxf_demux_handle_generic_container_essence_element, around mxfdemux.c:2842) as well as from seek/keyframe-search paths (mxfdemux.c:3920, 4038, 4202, 4226), so a crafted index table is reachable simply by demuxing (and more directly by seeking) a malicious MXF file, without requiring any unusual pipeline configuration. The result is an out-of-bounds heap read of MXFIndexEntry records, which can crash the process or, if the overread lands in mapped memory, propagate adjacent heap bytes into index_entry.offset/pts/dts used for subsequent reads. Static review of mxfdemux.c and mxftypes.c did not locate a concrete 64-bit-to-32-bit truncation site for the index/position fields reviewed here (they are consistently gint64/guint64); that part of the advisory's summary could not be corroborated and may describe a different code path bundled into the same fix commit. Fixed upstream in gst-plugins-bad 1.28.4 (merge request !11792; exact commit not available in this sandbox). Reporter attribution: not stated in the public advisory.

Verification: static review of GStreamer 1.28.3 only; no dynamic PoC was run. The separate 64-bit-to-32-bit truncation claim was not corroborated.