CVE Vulnerabilities

CVE-2017-3145

Use After Free

Published: Jan 16, 2019 | Modified: Jun 21, 2023
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
7.5 IMPORTANT
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM

BIND was improperly sequencing cleanup operations on upstream recursion fetch contexts, leading in some cases to a use-after-free error that can trigger an assertion failure and crash in named. Affects BIND 9.0.0 to 9.8.x, 9.9.0 to 9.9.11, 9.10.0 to 9.10.6, 9.11.0 to 9.11.2, 9.9.3-S1 to 9.9.11-S1, 9.10.5-S1 to 9.10.6-S1, 9.12.0a1 to 9.12.0rc1.

Weakness

Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code.

Affected Software

Name Vendor Start Version End Version
Bind Isc 9.4.0 (including) 9.8.8 (including)
Bind Isc 9.9.0 (including) 9.9.11 (including)
Bind Isc 9.10.0 (including) 9.10.6 (including)
Bind Isc 9.11.0 (including) 9.11.2 (including)
Bind Isc 9.9.3-s1 (including) 9.9.3-s1 (including)
Bind Isc 9.9.11-s1 (including) 9.9.11-s1 (including)
Bind Isc 9.10.5-s1 (including) 9.10.5-s1 (including)
Bind Isc 9.10.6-s1 (including) 9.10.6-s1 (including)
Bind Isc 9.12.0-alpha1 (including) 9.12.0-alpha1 (including)
Bind Isc 9.12.0-b1 (including) 9.12.0-b1 (including)
Bind Isc 9.12.0-b2 (including) 9.12.0-b2 (including)
Bind Isc 9.12.0-rc1 (including) 9.12.0-rc1 (including)
Red Hat Enterprise Linux 6 RedHat bind-32:9.8.2-0.62.rc1.el6_9.5 *
Red Hat Enterprise Linux 6.4 Advanced Update Support RedHat bind-32:9.8.2-0.17.rc1.el6_4.13 *
Red Hat Enterprise Linux 6.5 Advanced Update Support RedHat bind-32:9.8.2-0.23.rc1.el6_5.8 *
Red Hat Enterprise Linux 6.6 Advanced Update Support RedHat bind-32:9.8.2-0.30.rc1.el6_6.10 *
Red Hat Enterprise Linux 6.6 Telco Extended Update Support RedHat bind-32:9.8.2-0.30.rc1.el6_6.10 *
Red Hat Enterprise Linux 6.7 Extended Update Support RedHat bind-32:9.8.2-0.37.rc1.el6_7.12 *
Red Hat Enterprise Linux 7 RedHat bind-32:9.9.4-51.el7_4.2 *
Red Hat Enterprise Linux 7.2 Advanced Update Support RedHat bind-32:9.9.4-29.el7_2.8 *
Red Hat Enterprise Linux 7.2 Telco Extended Update Support RedHat bind-32:9.9.4-29.el7_2.8 *
Red Hat Enterprise Linux 7.2 Update Services for SAP Solutions RedHat bind-32:9.9.4-29.el7_2.8 *
Red Hat Enterprise Linux 7.3 Extended Update Support RedHat bind-32:9.9.4-50.el7_3.3 *
Bind9 Ubuntu artful *
Bind9 Ubuntu trusty *
Bind9 Ubuntu upstream *
Bind9 Ubuntu xenial *

Extended Description

The use of previously-freed memory can have any number of adverse consequences, ranging from the corruption of valid data to the execution of arbitrary code, depending on the instantiation and timing of the flaw. The simplest way data corruption may occur involves the system’s reuse of the freed memory. Use-after-free errors have two common and sometimes overlapping causes:

In this scenario, the memory in question is allocated to another pointer validly at some point after it has been freed. The original pointer to the freed memory is used again and points to somewhere within the new allocation. As the data is changed, it corrupts the validly used memory; this induces undefined behavior in the process. If the newly allocated data happens to hold a class, in C++ for example, various function pointers may be scattered within the heap data. If one of these function pointers is overwritten with an address to valid shellcode, execution of arbitrary code can be achieved.

Potential Mitigations

References