CVE Vulnerabilities

CVE-2019-3817

Use After Free

Published: Mar 27, 2019 | Modified: Nov 21, 2024
CVSS 3.x
8.8
HIGH
Source:
NVD
CVSS:3.0/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
7.5 MODERATE
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Ubuntu

A use-after-free flaw has been discovered in libcomps before version 0.1.10 in the way ObjMRTrees are merged. An attacker, who is able to make an application read a crafted comps XML file, may be able to crash the application or execute malicious code.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

Name Vendor Start Version End Version
Libcomps Rpm * 0.1.10 (excluding)
Red Hat Enterprise Linux 7 Extras RedHat libcomps-0:0.1.8-13.el7 *
Red Hat Enterprise Linux 8 RedHat createrepo_c-0:0.11.0-3.el8 *
Red Hat Enterprise Linux 8 RedHat dnf-0:4.2.7-6.el8 *
Red Hat Enterprise Linux 8 RedHat dnf-plugins-core-0:4.0.8-3.el8 *
Red Hat Enterprise Linux 8 RedHat libcomps-0:0.1.11-2.el8 *
Red Hat Enterprise Linux 8 RedHat libdnf-0:0.35.1-8.el8 *
Red Hat Enterprise Linux 8 RedHat librepo-0:1.10.3-3.el8 *
Red Hat Enterprise Linux 8 RedHat librhsm-0:0.0.3-3.el8 *
Red Hat Enterprise Linux 8 RedHat libsolv-0:0.7.4-3.el8 *
Red Hat Enterprise Linux 8 RedHat microdnf-0:3.0.1-3.el8 *
Red Hat Enterprise Linux 8 RedHat createrepo_c-0:0.11.0-3.el8 *
Red Hat Enterprise Linux 8 RedHat dnf-0:4.2.7-6.el8 *
Red Hat Enterprise Linux 8 RedHat dnf-plugins-core-0:4.0.8-3.el8 *
Red Hat Enterprise Linux 8 RedHat libcomps-0:0.1.11-2.el8 *
Red Hat Enterprise Linux 8 RedHat libdnf-0:0.35.1-8.el8 *
Red Hat Enterprise Linux 8 RedHat librepo-0:1.10.3-3.el8 *
Red Hat Enterprise Linux 8 RedHat librhsm-0:0.0.3-3.el8 *
Red Hat Enterprise Linux 8 RedHat libsolv-0:0.7.4-3.el8 *
Red Hat Enterprise Linux 8 RedHat microdnf-0:3.0.1-3.el8 *

Potential Mitigations

References