CVE & CISA-KEV Catalog

CVE-2021-38171

CRITICALEPSS 83th pctl
9.8
CVSS v3
NVD

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.

How to fix

Remediation Available
ffmpegDebian
Fixed in:7:4.4.1-1CVE-2021-38171
Fixed in:7:4.4.1-1CVE-2021-38171
Fixed in:7:4.4.1-1CVE-2021-38171
ffmpegUbuntu
Fixed in:7:2.8.17-0ubuntu0.1+esm4USN-5167-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:7:3.4.11-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:7:4.2.7-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:7:4.4.2-0ubuntu0.22.04.1USN-5472-1
libavcodec-extraUbuntu
Fixed in:7:2.8.17-0ubuntu0.1+esm4USN-5167-1

This Ubuntu release reached end-of-life on 2021-04-02.

libavcodec-extra57Ubuntu
Fixed in:7:3.4.11-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

libavcodec-extra58Ubuntu
Fixed in:7:4.2.7-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:7:4.4.2-0ubuntu0.22.04.1USN-5472-1
libavcodec-ffmpeg-extra56Ubuntu
Fixed in:7:2.8.17-0ubuntu0.1+esm4USN-5167-1

This Ubuntu release reached end-of-life on 2021-04-02.

libavcodec-ffmpeg56Ubuntu
Fixed in:7:2.8.17-0ubuntu0.1+esm4USN-5167-1

This Ubuntu release reached end-of-life on 2021-04-02.

libavcodec57Ubuntu
Fixed in:7:3.4.11-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

libavcodec58Ubuntu
Fixed in:7:4.2.7-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:7:4.4.2-0ubuntu0.22.04.1USN-5472-1
libavdevice-ffmpeg56Ubuntu
Fixed in:7:2.8.17-0ubuntu0.1+esm4USN-5167-1

This Ubuntu release reached end-of-life on 2021-04-02.

libavdevice57Ubuntu
Fixed in:7:3.4.11-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

libavdevice58Ubuntu
Fixed in:7:4.2.7-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:7:4.4.2-0ubuntu0.22.04.1USN-5472-1
libavfilter-extra6Ubuntu
Fixed in:7:3.4.11-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

libavfilter-extra7Ubuntu
Fixed in:7:4.2.7-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:7:4.4.2-0ubuntu0.22.04.1USN-5472-1
libavfilter-ffmpeg5Ubuntu
Fixed in:7:2.8.17-0ubuntu0.1+esm4USN-5167-1

This Ubuntu release reached end-of-life on 2021-04-02.

libavfilter6Ubuntu
Fixed in:7:3.4.11-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

libavfilter7Ubuntu
Fixed in:7:4.2.7-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:7:4.4.2-0ubuntu0.22.04.1USN-5472-1
libavformat-extra58Ubuntu
Fixed in:7:4.4.2-0ubuntu0.22.04.1USN-5472-1
libavformat-ffmpeg56Ubuntu
Fixed in:7:2.8.17-0ubuntu0.1+esm4USN-5167-1

This Ubuntu release reached end-of-life on 2021-04-02.

libavformat57Ubuntu
Fixed in:7:3.4.11-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

libavformat58Ubuntu
Fixed in:7:4.2.7-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:7:4.4.2-0ubuntu0.22.04.1USN-5472-1
libavresample-ffmpeg2Ubuntu
Fixed in:7:2.8.17-0ubuntu0.1+esm4USN-5167-1

This Ubuntu release reached end-of-life on 2021-04-02.

libavresample3Ubuntu
Fixed in:7:3.4.11-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

libavresample4Ubuntu
Fixed in:7:4.2.7-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

libavutil-ffmpeg54Ubuntu
Fixed in:7:2.8.17-0ubuntu0.1+esm4USN-5167-1

This Ubuntu release reached end-of-life on 2021-04-02.

libavutil55Ubuntu
Fixed in:7:3.4.11-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

libavutil56Ubuntu
Fixed in:7:4.2.7-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:7:4.4.2-0ubuntu0.22.04.1USN-5472-1
libpostproc-ffmpeg53Ubuntu
Fixed in:7:2.8.17-0ubuntu0.1+esm4USN-5167-1

This Ubuntu release reached end-of-life on 2021-04-02.

libpostproc54Ubuntu
Fixed in:7:3.4.11-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

libpostproc55Ubuntu
Fixed in:7:4.2.7-0ubuntu0.1USN-5472-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:7:4.4.2-0ubuntu0.22.04.1USN-5472-1

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

2.41%probability of exploitation in 30 days
83rdpercentile

Elevated risk: more likely to be exploited than 83% of all known CVEs.

References

Related Vulnerabilities

Other CWE-252 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2005-4360High7.887%--
CVE-2007-3798Critical9.870%-Fix
CVE-2010-0211Critical9.828%-Fix
CVE-2022-23626High8.59.9%-Fix
CVE-2019-10902High7.54.7%--
CVE-2018-20216High7.53.9%-Fix

Common questions

How do I fix CVE-2021-38171?

Published advisories record a fix for 36 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2021-38171 being actively exploited?

Not that we know of. CVE-2021-38171 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 2.4% is the estimated probability that it will be exploited in the next 30 days. That is higher than 83% of all scored CVEs.

How severe is CVE-2021-38171?

CVE-2021-38171 has a CVSS v3 base score of 9.8, rated critical. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2021-38171 affect?

Published advisories record a fix for ffmpeg (Debian), ffmpeg (Ubuntu), libavcodec-extra (Ubuntu), libavcodec-extra57 (Ubuntu), and 32 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2021-38171
CVE-2021-38171 severity badge

Markdown

[![CVE-2021-38171](https://tridentstack.com/cve/badge/CVE-2021-38171.svg)](https://tridentstack.com/cve/CVE-2021-38171)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-38171"><img src="https://tridentstack.com/cve/badge/CVE-2021-38171.svg" alt="CVE-2021-38171"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.