CVE-2024-47613
Executive Summary
CVE-2024-47613 is a null pointer dereference vulnerability in GStreamer, a widely used multimedia framework. The flaw resides in the gst_gdk_pixbuf_dec_flush function within gstgdkpixbufdec.c. When processing a crafted input file, the out_pix pointer can be set to NULL, leading to a segmentation fault (SEGV) when memcpy attempts to write to address 0x00. This results in a Denial of Service (DoS) condition. The vulnerability affects GStreamer versions prior to 1.24.10 and has a CVSS score of 0.0 (pending official scoring), but based on the impact, it is assessed as a medium-severity local DoS. No public exploit code or PoC is currently available.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
GStreamer is a critical dependency in many Linux distributions, media applications, and embedded systems. This vulnerability can be exploited via crafted media files, potentially affecting any application that uses GStreamer for image decoding (e.g., GNOME, video players, web browsers). Package managers (apt, yum, etc.) should update to version 1.24.10 or later.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Local (AV:L) – Requires local access to the system or user interaction to open a malicious file.
- Attack Complexity (AC): Low (AC:L) – No special conditions required.
- Privileges Required (PR): None (PR:N) – No authentication needed.
- User Interaction (UI): Required (UI:R) – User must open a crafted file.
- Scope (S): Unchanged (S:U) – Vulnerability does not affect other components.
- Confidentiality (C): None (C:N) – No data exposure.
- Integrity (I): None (I:N) – No data modification.
- Availability (A): High (A:H) – Service crash (DoS).
Threat Level: Medium (5.5) – Exploitable locally with user interaction, leading to denial of service.
Deep Dive & Mechanics
The vulnerability is in the gst_gdk_pixbuf_dec_flush function of gstgdkpixbufdec.c. This function is part of the GdkPixbuf decoder element in GStreamer. The function is responsible for flushing decoded frames. It uses memcpy to copy pixel data from an internal buffer to an output buffer (out_pix). The out_pix pointer is derived from the frame structure, which is read from the input file. Under certain conditions (e.g., malformed file), the frame pointer can be NULL, causing out_pix to be NULL. The subsequent memcpy call then attempts to write to address 0x00, triggering a segmentation fault.
Root Cause: Lack of null pointer validation before dereferencing out_pix in the memcpy call.
Attack Vector: An attacker crafts a malicious image file (e.g., PNG, JPEG, or other formats supported by GdkPixbuf) that causes the decoder to set the frame pointer to NULL. When a user or application opens this file using GStreamer, the crash occurs.
Vulnerable vs. Patched Code
Vulnerable Code (before 1.24.10):
// In gstgdkpixbufdec.c
static void
gst_gdk_pixbuf_dec_flush (GstGdkPixbufDec * dec)
{
GstBuffer *out_buf;
GstMapInfo map;
guchar *out_pix;
// ... other code ...
out_pix = dec->frame[0]; // No null check
memcpy (out_pix, map.data, map.size); // NULL dereference if out_pix is NULL
// ... rest of function ...
}
Patched Code (1.24.10):
static void
gst_gdk_pixbuf_dec_flush (GstGdkPixbufDec * dec)
{
GstBuffer *out_buf;
GstMapInfo map;
guchar *out_pix;
// ... other code ...
out_pix = dec->frame[0];
if (out_pix == NULL) { // Added null check
GST_ERROR_OBJECT (dec, "Frame pointer is NULL, aborting flush");
return;
}
memcpy (out_pix, map.data, map.size);
// ... rest of function ...
}
The patch adds a null pointer check before the memcpy call, preventing the crash.
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- GStreamer version < 1.24.10 installed.
- Ability to craft a malformed image file that triggers the NULL pointer.
Steps:
- Create a malformed image file (e.g., PNG) that sets the frame pointer to NULL. This requires deep knowledge of the GdkPixbuf decoder internals. No public PoC exists.
- Host the file on a web server or deliver via email.
- Victim opens the file using any application that uses GStreamer (e.g.,
gst-launch-1.0 filesrc location=malicious.png ! decodebin ! fakesink). - The application crashes with a segmentation fault.
Example command (if PoC existed):
gst-launch-1.0 filesrc location=malicious.png ! decodebin ! fakesink
Blue Team (Detection & Defense)
Detection:
- Monitor for crashes in GStreamer processes (e.g.,
gst-launch-1.0,totem,rhythmbox). - Use the YARA and Sigma rules below to detect malicious files or exploitation attempts.
Defense:
- Update GStreamer to version 1.24.10 or later.
- Implement file validation before processing with GStreamer.
- Use sandboxing for media processing applications.
Indicators of Compromise (IOCs)
- File Hashes: No known malicious files yet.
- Process Names:
gst-launch-1.0,totem,rhythmbox, or any process using GStreamer. - Crash Signatures: Segmentation fault in
gst_gdk_pixbuf_dec_flushat address 0x00. - Network: None (local exploitation).
Detection Engineering
YARA Rule
rule CVE_2024_47613_GStreamer_NULL_Deref {
meta:
description = "Detects malformed image files targeting CVE-2024-47613"
author = "Valters IT"
date = "2025-04-10"
reference = "https://nvd.nist.gov/vuln/detail/CVE-2024-47613"
strings:
$null_frame = { 00 00 00 00 } // Potential NULL frame pointer in file structure
condition:
$null_frame at 0 and filesize < 1MB
}
Sigma Rule
title: GStreamer NULL Pointer Dereference Exploitation Attempt
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects crashes in GStreamer processes due to CVE-2024-47613
author: Valters IT
logsource:
category: process_creation
product: linux
detection:
selection:
Image|endswith:
- '/gst-launch-1.0'
- '/totem'
- '/rhythmbox'
CommandLine|contains: 'Segmentation fault'
condition: selection
falsepositives:
- Legitimate crashes from other bugs
level: medium
Suricata Rule
alert tcp any any -> any any (msg:"CVE-2024-47613 GStreamer NULL Pointer Dereference"; flow:to_client,established; file_store; content:"|00 00 00 00|"; within:4; reference:cve,2024-47613; classtype:attempted-dos; sid:1000001; rev:1;)
Remediation & Mitigation
- Immediate: Update GStreamer to version 1.24.10 or later.
- Workaround: If update is not possible, avoid opening untrusted image files with applications using GStreamer.
- Long-term: Implement input validation and fuzzing for media decoders.
- Monitoring: Deploy the detection rules above to identify exploitation attempts.
Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert