GHSL-2024-261: OOB-read in parse_ds64 in GStreamer - CVE-2024-47775
The parse_ds64 function in GStreamer's WAV parser reads 32-bit values from a buffer without checking its size, causing an out-of-bounds read. An attacker could exploit this to crash the application or leak sensitive data.
Originally disclosed on GitHub Security Lab
An OOB-read vulnerability has been found in the parseds64 function 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
The parse_ds64 function does not verify that the buffer contains enough data before performing multiple 32-bit reads.
Impact
This vulnerability allows reading beyond the bounds of the data buffer, potentially leading to a crash (denial of service) or the leak of sensitive data.
What the attacker needed
Malicious WAV file
The fix
The issue was fixed by ensuring the buffer contains the expected amount of data before performing read operations.
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 program that reads audio files can be tricked into reading past the end of a small buffer. This can crash the program or expose memory contents. The fix is to check the buffer size before reading.
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.