GHSL-2024-248: OOB-read in format_channel_mask in GStreamer - CVE-2024-47600
An out-of-bounds read occurs in the format_channel_mask function of gst-discoverer.c because a fixed-size array of 64 elements is indexed using a channel count that can exceed 64. An attacker could cause the tool to read unintended stack memory and potentially dereference an invalid pointer, leading to memory corruption or undefined behaviour.
Originally disclosed on GitHub Security Lab
An OOB-read vulnerability has been detected in the formatchannelmask function in gst-discoverer.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
Impact
The vulnerability can result in reading unintended bytes from the stack, and dereferencing the result can lead to further memory corruption or undefined behaviour.
What the attacker needed
Crafted media file with >64 audio channels
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 program has a list that can only hold 64 items, but it tries to read item number 65 or higher. That reads memory that was not meant to be read, which can crash the program or leak data. The bug is in a tool that inspects media files.
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.