rust-ffmpeg Null Pointer Dereference Vulnerability in the dump() Method Allowing Denial-of-Service
Vulnerability
A null pointer dereference vulnerability has been identified in rust-ffmpeg version 0.3.0 (after commit 5ac0527). The issue arises in the dump() method, which fails to validate the return value of avfilter_graph_dump() for NULL. This oversight can lead to a denial-of-service condition, as the method may crash if the memory allocation for avfilter_graph_dump() fails.
Impact
Exploitation of this vulnerability causes a null pointer dereference, leading to a crash and creating a denial-of-service condition.
Reproduction
The vulnerability can be reproduced by calling the dump() method on a SwsContextWrapper object after avfilter_graph_dump() has been modified to return NULL (simulating a memory allocation failure).
Remediation
No specific remediation is available, but the issue can be addressed by checking for NULL return values before using pointers in the affected methods.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
