Skip to content

Potential Vulnerability in Cloned Code#118

Open
tabudz wants to merge 1 commit intolinkingvision:masterfrom
tabudz:CVE-2021-38171
Open

Potential Vulnerability in Cloned Code#118
tabudz wants to merge 1 commit intolinkingvision:masterfrom
tabudz:CVE-2021-38171

Conversation

@tabudz
Copy link
Copy Markdown

@tabudz tabudz commented Mar 8, 2026

Summary

Our tool detected a potential vulnerability in 3rdparty/ffmpeg/libavformat/adtsenc.c which was cloned from FFmpeg/FFmpeg but did not receive the security patch applied. The original issue was reported and fixed under https://nvd.nist.gov/vuln/detail/CVE-2021-38171.

Proposed Fix

Apply the same patch as the one in FFmpeg/FFmpeg to eliminate the vulnerability.

Reference

https://nvd.nist.gov/vuln/detail/CVE-2021-38171
FFmpeg/FFmpeg@9ffa494

…_extradata

As the second argument for init_get_bits (buf) can be crafted, a return value check for this function call is necessary.
'buf' is  part of  'AVPacket pkt'.
replace init_get_bits with init_get_bits8.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants