CVE-2025-57612

7.5 HIGH

📋 TL;DR

A null pointer dereference vulnerability in rust-ffmpeg's name() method allows attackers to cause denial of service by triggering a crash. This affects applications using rust-ffmpeg 0.3.0 after commit 5ac0527 to process audio with unrecognized sample formats. Developers integrating this library into their Rust applications are primarily affected.

💻 Affected Systems

Products:
  • rust-ffmpeg
Versions: 0.3.0 (after commit 5ac0527)
Operating Systems: All platforms where rust-ffmpeg is used
Default Config Vulnerable: ⚠️ Yes
Notes: Only vulnerable when processing audio with unrecognized sample formats through the affected name() method.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete application crash leading to denial of service, potentially disrupting dependent services or causing data loss if processing occurs during critical operations.

🟠

Likely Case

Application instability or crashes when processing malformed or specially crafted audio files, resulting in service disruption.

🟢

If Mitigated

Controlled application termination with proper error handling, minimal service impact if deployed with redundancy.

🌐 Internet-Facing: MEDIUM - Exploitable if application accepts user-uploaded audio files or processes external media streams, but requires specific input conditions.
🏢 Internal Only: LOW - Typically requires intentional exploitation or malformed internal media files to trigger.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires providing an unrecognized sample format to trigger the NULL return from av_get_sample_fmt_name().

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Check GitHub issue #192 for specific fix commit

Vendor Advisory: https://github.com/meh/rust-ffmpeg/issues/192

Restart Required: Yes

Instructions:

1. Monitor GitHub issue #192 for official patch
2. Update rust-ffmpeg dependency to patched version
3. Rebuild and redeploy affected applications
4. Test with sample audio files to verify fix

🔧 Temporary Workarounds

Input Validation

all

Validate audio sample formats before passing to rust-ffmpeg

Error Handling Wrapper

all

Wrap rust-ffmpeg calls with try-catch and null checks

🧯 If You Can't Patch

  • Implement strict input validation for all audio processing
  • Deploy redundant instances with load balancing to maintain availability during crashes

🔍 How to Verify

Check if Vulnerable:

Check Cargo.toml for rust-ffmpeg version 0.3.0 and verify commit hash is after 5ac0527

Check Version:

grep rust-ffmpeg Cargo.toml

Verify Fix Applied:

Test with audio files containing various sample formats and monitor for crashes

📡 Detection & Monitoring

Log Indicators:

  • Application crashes with segmentation fault
  • Null pointer exception logs
  • Unexpected process termination during audio processing

Network Indicators:

  • Sudden drop in audio processing service availability

SIEM Query:

process.name="your_application" AND (event.type="crash" OR error.message="segmentation fault")

🔗 References

📤 Share & Export