1. CVE archive
  2. 2017
  3. CVE-2017-3145

CVE-2017-3145

7.5 High severity CVSS v3.1 · source NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 7.5 – High

Description

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.

Affected products

VendorProductVersionPlatform
debian debian linux 7.0 –
debian debian linux 8.0 –
debian debian linux 9.0 –
isc bind >= 9.4.0 <= 9.8.8 –
isc bind >= 9.9.0 <= 9.9.11 –
isc bind >= 9.10.0 <= 9.10.6 –
isc bind >= 9.11.0 <= 9.11.2 –
isc bind 9.9.3 s1 –
isc bind 9.9.11 s1 –
isc bind 9.10.5 s1 –
isc bind 9.10.6 s1 –
isc bind 9.12.0 alpha1 –
isc bind 9.12.0 b1 –
isc bind 9.12.0 b2 –
isc bind 9.12.0 rc1 –
juniper junos 12.1x46-d76 –
juniper junos 12.3x48-d70 –
juniper junos 15.1x49-d140 –
juniper junos 17.4r2 –
juniper junos 18.1r2 –
juniper junos 18.2r1 –
netapp data ontap edge all –
redhat enterprise linux desktop 6.0 –
redhat enterprise linux desktop 7.0 –
redhat enterprise linux server 6.0 –
redhat enterprise linux server 7.0 –
redhat enterprise linux server aus 6.4 –
redhat enterprise linux server aus 6.5 –
redhat enterprise linux server aus 6.6 –
redhat enterprise linux server aus 7.2 –
redhat enterprise linux server aus 7.3 –
redhat enterprise linux server aus 7.4 –
redhat enterprise linux server aus 7.6 –
redhat enterprise linux server eus 6.7 –
redhat enterprise linux server eus 7.3 –
redhat enterprise linux server eus 7.4 –
redhat enterprise linux server eus 7.5 –
redhat enterprise linux server eus 7.6 –
redhat enterprise linux server tus 6.6 –
redhat enterprise linux server tus 7.2 –
redhat enterprise linux server tus 7.3 –
redhat enterprise linux server tus 7.6 –
redhat enterprise linux workstation 6.0 –
redhat enterprise linux workstation 7.0 –
All 212 Isc Bind vulnerabilities

Vulnerability type

CWE-416 Use After Free

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.

Impact on systems

ScopeImpact
Integrity Modify Memory
The use of previously freed memory may corrupt valid data, if the memory area in question has been allocated and used properly elsewhere.
Availability DoS: Crash, Exit, or Restart
If chunk consolidation occurs after the use of previously freed data, the process may crash when invalid data is used as chunk information.
Confidentiality Read Memory
Read operations on freed memory can sometimes leak sensitive information instead of causing a crash
Integrity, Confidentiality, Availability Execute Unauthorized Code or Commands
If malicious data is entered before chunk consolidation can take place, it may be possible to take advantage of a write-what-where primitive to execute arbitrary code. 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.

How to prevent it

Architecture and Design · Language Selection Choose a language that provides automatic memory management.
Implementation · Attack Surface Reduction When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.

All 9,640 CWE-416 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org