GHSL-2024-247: Null pointer dereference in gst_jpeg_dec_negotiate in GStreamer - CVE-2024-47599
The gst_jpeg_dec_negotiate function in GStreamer's JPEG decoder does not check whether gst_video_decoder_set_output_state returns NULL. If it does, subsequent dereferences of the outstate pointer cause a null pointer dereference, leading to a segmentation fault and denial of service.
Originally disclosed on GitHub Security Lab
A null pointer dereference vulnerability has been discovered in the gstjpegdecnegotiate function in gstjpegdec.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
This vulnerability can result in a Denial of Service (DoS) by triggering a segmentation fault (SEGV).
What the attacker needed
None
The fix
The issue was fixed and disclosed by GStreamer.
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 null pointer dereference happens when a program tries to use a memory address that points to nothing (NULL). In this case, a function that sets up video output can fail and return NULL, but the code does not check for that and later tries to read from that NULL pointer, which crashes the program. An attacker could use this to make the application crash, causing a denial of service.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.