GHSL-2024-258: OOB-read in gst_wavparse_adtl_chunk in GStreamer - CVE-2024-47778
An out-of-bounds read occurs in GStreamer's WAV parser because the size parameter is not properly validated, allowing it to exceed the data buffer bounds. An attacker could cause the parser to read up to 4GB of process memory or trigger a segmentation fault.
Originally disclosed on GitHub Security Lab
An OOB-read vulnerability has been discovered in gstwavparseadtlchunk within gstwavparse.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 size field from the input file is used without validating it against the actual buffer length, and a subtraction can underflow.
Impact
This vulnerability can result in reading up to 4GB of process memory or potentially causing a segmentation fault (SEGV) when accessing invalid memory.
What the attacker needed
Malicious WAV file; victim opens file with vulnerable GStreamer
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 WAV file contains chunks of data, each with a size field. The parser trusts this size without checking it against the actual buffer, so a malicious file can make it read past the end of the 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.