rust-ffmpeg Null Pointer Dereference Vulnerability in name() 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 name() method, which fails to validate the return value from the av_get_sample_fmt_name() C function. This oversight allows an attacker to cause a denial-of-service condition by providing an unrecognized sample format, leading to a null pointer dereference.
Impact
Exploitation of this vulnerability causes a null pointer dereference, leading to a denial-of-service condition.
Reproduction
The vulnerability can be reproduced by calling the name() method on a sample format that is not recognized, such as AV_SAMPLE_FMT_NONE. This will trigger the null pointer dereference, as the av_get_sample_fmt_name() function will return NULL for unrecognized formats.
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.
