CVE-2026-17072: Gstreamer1-plugins-good: gst-plugins-good: 4-byte heap over-read in gst_matroska_parse_flac_stream_headers when parsing flac codec data in matroska containers

Published Jul 24, 2026
·
Updated

A 4-byte heap-buffer-overflow (out-of-bounds read) was found in gst-plugins-good's Matroska demuxer, in the function gstmatroskaparseflacstreamheaders() in gst/matroska/matroska-ids.c. When parsing FLAC codec private data embedded in a Matroska (MKV/WebM) container, the function iterates over FLAC metadata blocks. Each block has a 4-byte header (1 byte flags + 3 bytes length) followed by a body of 'len' bytes. The bounds check at line 309 validates 'off + len > codecdatasize' but the subsequent gstbuffernewmemdup() at line 314 copies 'len + 4' bytes (body + header). When off + len == codecdatasize, the guard passes but the memdup reads 4 bytes past the end of the heap-allocated codecdata buffer. The correct check should be 'off + 4 + len > codecdatasize'. This function is called from matroska-demux.c line 7397 when processing AFLAC audio tracks.

Affected versions: <= 1.28.5 Fixed in version: 1.28.6 (upcoming) Fix MR: https://gitlab.freedesktop.org/gstreamer/gstreamer-security/-/mergerequests/111 (GST-SA-2026-0073) Reporter: Yazan Balawneh, CyStack Security Team ASan confirmation on GStreamer 1.28.4, Kali Linux x8664: heap-buffer-overflow READ of size 42, 0 bytes after 42-byte region. PSIRT Ticket: PSIRTSUPT-19737

Other sources

A flaw was found in GStreamer's gst-plugins-good. A heap-based out-of-bounds read of 4 bytes can occur when parsing FLAC audio stream headers embedded in a Matroska or WebM container file. The vulnerability is triggered by a boundary check that does not account for the full size of the data being copied, allowing a small read past the end of the allocated buffer. An attacker could exploit this by crafting a malicious Matroska or WebM file and tricking a user into opening it, potentially leaking a small amount of adjacent heap memory.

MITRE

Affected Software

2 affected components
GStreamer gst-plugins-good (Matroska demuxer)<=1.28.5
GStreamer gst-plugins-good (Matroska demuxer)=1.28.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade gst-plugins-good (GStreamer) gst_matroska_parse_flac_stream_headers to a version that resolves this vulnerability.

    Fixed in 1.28.6Patch GST-SA-2026-0073
  2. Compensating control

    Until the fixed release is deployed, avoid opening untrusted Matroska/WebM files with FLAC audio tracks (matroska-demux processing of A_FLAC) to reduce exposure to the heap out-of-bounds read.

Event History

Jul 24, 2026
Data Sourced
via Red Hat·02:13 PM
DescriptionSeverityAffected Software
Jul 28, 2026
CVE Published
via MITRE·10:25 AM
Data Sourced
via MITRE·10:25 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:17 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-17072?

The severity of CVE-2026-17072 is classified as low with a score of 3.3.

2

How can I mitigate CVE-2026-17072?

To mitigate CVE-2026-17072, you should update to the latest version of GStreamer gst-plugins-good that addresses the vulnerability.

3

What type of vulnerability is CVE-2026-17072?

CVE-2026-17072 is a heap-buffer-overflow vulnerability due to an out-of-bounds read in the Matroska demuxer of GStreamer.

4

Is CVE-2026-17072 a remote exploit?

CVE-2026-17072 is considered a low-risk vulnerability primarily affecting local usage scenarios.

5

What software is affected by CVE-2026-17072?

CVE-2026-17072 affects the GStreamer gst-plugins-good, specifically its Matroska demuxer.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203