CVE Vulnerabilities

CVE-2021-38171

Unchecked Return Value

Published: Aug 21, 2021 | Modified: Dec 23, 2023
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
7.5 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

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.

Weakness

The product does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

Affected Software

Name Vendor Start Version End Version
Ffmpeg Ffmpeg 4.4 (including) 4.4 (including)
Ffmpeg Ubuntu bionic *
Ffmpeg Ubuntu esm-apps/xenial *
Ffmpeg Ubuntu focal *
Ffmpeg Ubuntu hirsute *
Ffmpeg Ubuntu impish *
Ffmpeg Ubuntu trusty *
Ffmpeg Ubuntu upstream *
Ffmpeg Ubuntu xenial *

Potential Mitigations

References