CVE Vulnerabilities

CVE-2021-40574

Double Free

Published: Jan 13, 2022 | Modified: Mar 07, 2025
CVSS 3.x
7.8
HIGH
Source:
NVD
CVSS:3.1/AV:L/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
root.io logo minimus.io logo echo.ai logo

The binary MP4Box in Gpac from 0.9.0-preview to 1.0.1 has a double-free vulnerability in the gf_text_get_utf8_line function in load_text.c, which allows attackers to cause a denial of service, even code execution and escalation of privileges.

Weakness

The product calls free() twice on the same memory address.

Affected Software

NameVendorStart VersionEnd Version
GpacGpac0.9.0 (including)1.0.1 (including)
GpacUbuntubionic*
GpacUbuntufocal*
GpacUbuntuhirsute*
GpacUbuntuimpish*
GpacUbuntukinetic*
GpacUbuntulunar*
GpacUbuntutrusty*
GpacUbuntutrusty/esm*
GpacUbuntuxenial*

Potential Mitigations

References