CVE Vulnerabilities

CVE-2021-21861

Incorrect Conversion between Numeric Types

Published: Aug 16, 2021 | Modified: May 31, 2022
CVSS 3.x
8.8
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.x
6.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

An exploitable integer truncation vulnerability exists within the MPEG-4 decoding functionality of the GPAC Project on Advanced Content library v1.0.1. When processing the hdlr FOURCC code, a specially crafted MPEG-4 input can cause an improper memory allocation resulting in a heap-based buffer overflow that causes memory corruption. An attacker can convince a user to open a video to trigger this vulnerability.

Weakness

When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.

Affected Software

Name Vendor Start Version End Version
Gpac Gpac 1.0.1 (including) 1.0.1 (including)
Gpac Ubuntu bionic *
Gpac Ubuntu hirsute *
Gpac Ubuntu impish *
Gpac Ubuntu kinetic *
Gpac Ubuntu lunar *
Gpac Ubuntu trusty *
Gpac Ubuntu xenial *

Potential Mitigations

References