GHSL-2024-262: OOB-read in gst_avi_subtitle_parse_gab2_chunk in GStreamer - CVE-2024-47774
An out-of-bounds read was found in GStreamer's AVI subtitle parser because a length field from the file was not properly validated, allowing an integer overflow. An attacker could cause a crash or potentially leak information by supplying a crafted AVI file.
Originally disclosed on GitHub Security Lab
An OOB-read vulnerability has been identified in the gstavisubtitleparsegab2chunk function within gstavisubtitle.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
Likely the length check uses addition that can overflow, so a very large name_length bypasses the bounds check and later indexing reads out of bounds.
Impact
This could crash the application or leak information, though the text does not confirm exploitability beyond that.
What the attacker needed
Crafted AVI 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 reads a number from a file to decide how much data to expect. If that number is huge, a check can wrap around and the program reads past the end of its buffer. This can crash the program or leak memory contents.
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.