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

CVE-2017-0263

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

Description

The kernel-mode drivers in Microsoft Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8.1, Windows Server 2012 Gold and R2, Windows RT 8.1, Windows 10 Gold, 1511, 1607, 1703, and Windows Server 2016 allow local users to gain privileges via a crafted application, aka "Win32k Elevation of Privilege Vulnerability."

Affected products

VendorProductVersionPlatform
microsoft windows 10 1507 all –
microsoft windows 10 1511 all –
microsoft windows 10 1607 all –
microsoft windows 10 1703 all –
microsoft windows 7 all sp1 –
microsoft windows 8.1 all –
microsoft windows rt 8.1 all –
microsoft windows server 2008 all sp2 –
microsoft windows server 2008 r2 sp1 –
microsoft windows server 2012 all –
microsoft windows server 2012 r2 –
microsoft windows server 2016 all –
All 3,551 Microsoft Windows Server 2008 vulnerabilities
All 5,318 Microsoft Windows Server 2012 vulnerabilities
All 2,367 Microsoft Windows 7 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,638 CWE-416 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org