GHSL-2024-263: Null pointer dereference in parse_lrc in GStreamer - CVE-2024-47835
The parse_lrc function in GStreamer's subtitle parser calls strchr to find a closing bracket in a line, but does not check if the result is NULL. If the line lacks that character, a null pointer dereference occurs, causing a segmentation fault and denial of service.
Originally disclosed on GitHub Security Lab
A null pointer dereference vulnerability has been detected in the parselrc function within gstsubparse.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
Malformed subtitle file
The fix
The issue was fixed and disclosed.
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). Here, the code searches for a specific character in a line of text, but if that character is missing, it still tries to use the result, which crashes the program. This can be triggered by a malformed subtitle file, causing the media player to crash.
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.