Bug 2569424 (CVE-2026-125734) - CVE-2026-125734 gst-plugins-bad: gst-plugins-bad: mxfdemux out-of-bounds read via unvalidated signed index-table-segment fields
Summary: CVE-2026-125734 gst-plugins-bad: gst-plugins-bad: mxfdemux out-of-bounds read...
Keywords:
Status: NEW
Alias: CVE-2026-125734
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2583183 2583184
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-10 11:34 UTC by OSIDB Bzimport
Modified: 2026-11-24 12:33 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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.


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