CVE Vulnerabilities

CVE-2018-8099

Double Free

Published: Mar 14, 2018 | Modified: Nov 21, 2024
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
4.3 LOW
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Ubuntu
LOW

Incorrect returning of an error code in the index.c:read_entry() function leads to a double free in libgit2 before v0.26.2, which allows an attacker to cause a denial of service via a crafted repository index file.

Weakness

The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations.

Affected Software

Name Vendor Start Version End Version
Libgit2 Libgit2 * 0.26.2 (excluding)
Libgit2 Ubuntu artful *
Libgit2 Ubuntu bionic *
Libgit2 Ubuntu esm-apps/bionic *
Libgit2 Ubuntu esm-apps/xenial *
Libgit2 Ubuntu esm-infra-legacy/trusty *
Libgit2 Ubuntu trusty *
Libgit2 Ubuntu trusty/esm *
Libgit2 Ubuntu upstream *
Libgit2 Ubuntu xenial *

Potential Mitigations

References