CVE-2026-100231: Gstreamer1-plugins-bad-free: gstreamer1-plugins-bad-free: heap out-of-bounds write in asfmux due to incorrect utf-16 size calculation for non-bmp characters

Published Sep 25, 2026
·
Updated

A flaw was found in the GStreamer multimedia framework's ASF muxer plugin (asfmux). When writing string metadata tags containing Unicode characters outside the Basic Multilingual Plane (such as emoji) to an ASF container, the plugin incorrectly calculates the buffer size needed for the UTF-16LE representation. The size calculation assumes each Unicode code point requires 2 bytes, but non-BMP characters require 4 bytes (surrogate pairs). This leads to a heap out-of-bounds write when the actual UTF-16LE conversion is written into the undersized buffer. An attacker could exploit this by providing media with crafted metadata tags to an application that transcodes or remuxes to ASF format while preserving metadata, potentially causing a denial of service or limited memory corruption.

Other sources

GStreamer's asfmux plugin (gst-plugins-bad) contains a heap out-of-bounds write in the ASF header buffer allocation path. The functions contentdescriptioncalcsizefortag() (line 429) and addmetadatatagsize() (line 539) in subprojects/gst-plugins-bad/gst/asfmux/gstasfmux.c compute the UTF-16LE buffer size for string metadata tags using the formula 2 (1 + gutf8strlen(text, -1)). This counts Unicode code points and assumes each maps to one 16-bit UTF-16 code unit. However, non-BMP characters (U+10000 and above, e.g. emoji) require UTF-16 surrogate pairs (4 bytes per character). The write path in gstasfmuxwritestringwithsize() (line 881) uses gconvert() which produces the correct (larger) UTF-16LE byte count. The header buffer is allocated at gstasfmuxstartfile() (line 1332) using the pre-computed sizes. The resulting under-allocation is 2 bytes per non-BMP code point. The overflowing bytes are attacker-derived UTF-16LE content written via memcpy() at line 898.

The issue affects GStreamer versions containing the asfmux plugin in gst-plugins-bad. Reproduced at commit 4cb910d273bef5445c90e77e7b781ab99e236e1f (main branch). The affected size calculation is unchanged on current main.

Fix: Not yet available upstream (reported privately to GStreamer security team, awaiting triage).

Reporter: Bruno Fournier (xxtqqtx) PSIRT Ticket: PSIRTSUPT-24645

— Red Hat

Affected Software

13 affected components
GStreamer gst-plugins-bad
ubuntu/gst-plugins-bad1.0*
ubuntu/gst-plugins-bad1.0*
ubuntu/gst-plugins-bad1.0*
ubuntu/gst-plugins-bad1.0*
ubuntu/gst-plugins-bad1.0*
ubuntu/gst-plugins-bad1.0*
ubuntu/gst-plugins-bad1.0*
ubuntu/gst-plugins-bad1.0*
debian/gst-plugins-bad1.0*
debian/gst-plugins-bad1.0*
debian/gst-plugins-bad1.0*
debian/gst-plugins-bad1.0<=1.22.0-4+deb12u7, <=1.22.0-4+deb12u8, <=1.26.2-3+deb13u3, <=1.28.8-1, <=1.28.9-1

Event History

Sep 25, 2026
Data Sourced
via Red Hat·03:25 PM
DescriptionSeverityAffected Software
Oct 14, 2026
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
DescriptionSeverityWeakness
Data Sourced
via OSV·10:17 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·10:17 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which systems and workflows are exposed?

Applications using GStreamer's gst-plugins-bad asfmux plugin are exposed when they transcode or remux content into ASF format while preserving string metadata tags. The issue is triggered by metadata containing Unicode characters outside the Basic Multilingual Plane, such as emoji.

2

What must an attacker control to trigger the flaw?

An attacker needs to provide media or metadata with crafted string tags containing non-BMP Unicode characters and have an application process it through the ASF muxer. User interaction is required according to the supplied CVSS vector.

3

What is the likely impact?

The undersized UTF-16LE metadata buffer can be written out of bounds on the heap. This can cause a denial of service or limited memory corruption.

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