CVE-2021-38171
9.8 CRITICALadts_decode_extradata in libavformat/adtsenc.c in FFmpeg 4.4 does not check the init_get_bits return value, which is a necessary step bec...
Published: 2021-08-21 · Last updated: 2026-06-17
Severity and scoring
- CVSS
- 9.8 CRITICAL
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CWE
- CWE-252
Affected products
| Vendor | Product |
|---|---|
| debian | debian_linux, ffmpeg |
| ffmpeg | debian_linux, ffmpeg |
Description
adts_decode_extradata in libavformat/adtsenc.c in FFmpeg 4.4 does not check the init_get_bits return value, which is a necessary step because the second argument to init_get_bits can be crafted.
Source: NVD
References
- [NVD]https://nvd.nist.gov/vuln/detail/CVE-2021-38171
- [Patch]https://github.com/FFmpeg/FFmpeg/commit/9ffa49496d1aae4cbbb387aac28a9e061a6ab0a6
- [Other]https://lists.debian.org/debian-lts-announce/2021/11/msg00012.html
- [Other]https://patchwork.ffmpeg.org/project/ffmpeg/patch/AS8P193MB12542A86E22F8207EC971930B6F19%40AS8P193MB1254.EURP193.PROD.OUTLOOK.COM/
- [Other]https://security.gentoo.org/glsa/202312-14
- [Other]https://www.debian.org/security/2021/dsa-4990
- [Other]https://www.debian.org/security/2021/dsa-4998
- [Patch]https://github.com/FFmpeg/FFmpeg/commit/9ffa49496d1aae4cbbb387aac28a9e061a6ab0a6
- [Other]https://lists.debian.org/debian-lts-announce/2021/11/msg00012.html
- [Other]https://patchwork.ffmpeg.org/project/ffmpeg/patch/AS8P193MB12542A86E22F8207EC971930B6F19%40AS8P193MB1254.EURP193.PROD.OUTLOOK.COM/
- [Other]https://security.gentoo.org/glsa/202312-14
- [Other]https://www.debian.org/security/2021/dsa-4990
- [Other]https://www.debian.org/security/2021/dsa-4998
Related CVEs
Same vendor
- CVE-2026-49975 — Memory Allocation with Excessive Size Value vulnerability in Apache HTTP Server's mod_http leads to denial of service via malicious HTTP ... (7.5 HIGH)
- CVE-2026-31431 — In the Linux kernel, the following vulnerability has been resolved: crypto: algif_aead - Revert to operating out-of-place This mostly r... (7.8 HIGH)
- CVE-2026-4775 — A flaw was found in the libtiff library (7.8 HIGH)
- CVE-2026-3497 — Vulnerability in the OpenSSH GSSAPI delta included in various Linux distributions (7.5 HIGH)
- CVE-2026-2219 — It was discovered that dpkg-deb (a component of dpkg, the Debian package management system) does not properly validate the end of the dat... (7.5 HIGH)
Same CWE
- CVE-2026-46521 — ImageMagick is free and open-source software used for editing and manipulating digital images (5.5 MEDIUM)
- CVE-2026-40092 — nimiq-blockchain provides persistent block storage for Nimiq's Rust implementation (7.5 HIGH)
- CVE-2026-23301 — In the Linux kernel, the following vulnerability has been resolved: ASoC: SDCA: Add allocation failure check for Entity name Currently ... (5.5 MEDIUM)
- CVE-2025-58903 — An Unchecked Return Value vulnerability [CWE-252] in Fortinet FortiOS version 7.6.0 through 7.6.3 and before 7.4.8 API allows an authenti... (2.7 LOW)
- CVE-2021-38114 — libavcodec/dnxhddec.c in FFmpeg 4.4 does not check the return value of the init_vlc function, a similar issue to CVE-2013-0868 (5.5 MEDIUM)