Skip to content
Memory corruption Advisory Advanced CVE-2024-47539

GHSL-2024-195: OOB-write in convert_to_s334_1a in GStreamer - CVE-2024-47539

An out-of-bounds write occurs in the convert_to_s334_1a function of GStreamer's qtdemux.c due to a mismatch between the allocated storage size and the loop condition when ccpair_size is even. An attacker could overwrite up to 3 bytes beyond the allocated buffer, leading to memory corruption such as double free or corrupted top size.

antonio-morales Follow

Originally disclosed on GitHub Security Lab

An out-of-bounds write vulnerability was identified in the converttos3341a function in isomp4/qtdemux.c.

antonio-morales, on GitHub Security Lab

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The allocated size for the storage array is ccpair_size / 2 * 3, but the loop condition i * 2 < ccpair_size allows one extra iteration when ccpair_size is even, causing a write beyond the buffer.

Impact

This vulnerability lets attackers overwrite the metadata of certain malloc chunks, leading to various memory errors such as double free or corruption and malloc(): corrupted top size.

What the attacker needed

Crafted media file

The fix

The issue was fixed and disclosed on 2024-12-03.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This is a memory corruption bug in a media file parser. When the program processes a specially crafted file, it writes a few bytes past the end of a memory buffer, which can crash the program or potentially allow an attacker to run malicious code.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by antonio-morales

View all

45 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.