cve.bz

CVE-2021-38171 Unchecked Return Value

9.8 criticalEPSS 2.4%Fix available

Critical (9.8). EPSS 2.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
2.4% (unchanged from 2.4% a week ago; 2.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 85th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-252 Unchecked Return Value
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-38171 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-38171?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-38171?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-38171 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
ffmpeg:ffmpeg4.4
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9ffmpeg7:3.2.16-1+deb9u1DLA-2818-1
Debian10ffmpeg7:4.1.8-0+deb10u1DSA-4990-1
Debian11ffmpeg7:4.3.3-0+deb11u1DSA-4998-1
Debian12, 13, 14ffmpeg7:4.4.1-1DEBIAN-CVE-2021-38171
Ubuntu18.04:LTSffmpeg7:3.4.11-0ubuntu0.1UBUNTU-CVE-2021-38171 USN-5472-1
Ubuntu20.04:LTSffmpeg7:4.2.7-0ubuntu0.1UBUNTU-CVE-2021-38171 USN-5472-1
Ubuntu22.04:LTSffmpeg7:4.4.2-0ubuntu0.22.04.1USN-5472-1
UbuntuPro:16.04:LTSffmpeg7:2.8.17-0ubuntu0.1+esm4UBUNTU-CVE-2021-38171 USN-5167-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 moreffmpeg3.4.2-4.37.1SUSE-SU-2021:3212-1
SUSELinux Enterprise Module for Desktop Applications 15 SP2, Linux Enterprise Module for Desktop Applications 15 SP3, Linux Enterprise Module for Package Hub 15 SP2 and 3 moreffmpeg3.4.2-11.11.1SUSE-SU-2021:3193-1
openSUSELeap 15.3ffmpeg3.4.2-11.11.1openSUSE-SU-2021:3193-1
openSUSETumbleweedffmpeg-44.4-5.2openSUSE-SU-2024:10754-1
Alpinev3.13ffmpeg4.3.3-r0ALPINE-CVE-2021-38171
Alpinev3.14, v3.15, v3.23 and 1 moreffmpeg4.4.1-r0ALPINE-CVE-2021-38171
Alpinev3.16, v3.17, v3.18 and 4 moreffmpeg, ffmpeg44.4.1-r0ALPINE-CVE-2021-38171

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

References

Check your stackJSON