GHSL-2024-244: OOB-read in FOURCC_SMI_ parsing in GStreamer - CVE-2024-47596
The qtdemux parser reads a size field from a QuickTime file without checking it against the remaining buffer, then copies that many bytes into a new buffer. An attacker could supply a crafted file to read up to 4GB of process memory or crash the process.
Originally disclosed on GitHub Security Lab
An OOB-read has been discovered in the qtdemuxparsesvq3stsddata function within qtdemux.c.
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 size field read from the file was used without checking it against the remaining buffer length before copying.
Impact
An attacker could read up to 4GB of process memory or cause a segmentation fault by triggering access to invalid memory.
What the attacker needed
Crafted media file; victim opens the file
The fix
The issue was fixed and disclosed by the GStreamer project.
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.
A media player has to read a small header inside a video file that says how long a piece of data is. The code trusted that number and copied that many bytes from the file, even when the file was shorter, so it read past the end of the data. That can leak other memory contents or crash the program.
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.