Vulnerabilities > CVE-2016-5647 - Permissions, Privileges, and Access Controls vulnerability in Intel Graphics Driver
Attack vector
LOCAL Attack complexity
LOW Privileges required
LOW Confidentiality impact
HIGH Integrity impact
HIGH Availability impact
HIGH Summary
The igdkmd64 module in the Intel Graphics Driver through 15.33.42.435, 15.36.x through 15.36.30.4385, and 15.40.x through 15.40.4404 on Windows allows local users to cause a denial of service (crash) or gain privileges via a crafted D3DKMTEscape request.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Accessing, Modifying or Executing Executable Files An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
- Leverage Executable Code in Non-Executable Files An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
- Blue Boxing This type of attack against older telephone switches and trunks has been around for decades. A tone is sent by an adversary to impersonate a supervisor signal which has the effect of rerouting or usurping command of the line. While the US infrastructure proper may not contain widespread vulnerabilities to this type of attack, many companies are connected globally through call centers and business process outsourcing. These international systems may be operated in countries which have not upgraded Telco infrastructure and so are vulnerable to Blue boxing. Blue boxing is a result of failure on the part of the system to enforce strong authorization for administrative functions. While the infrastructure is different than standard current applications like web applications, there are historical lessons to be learned to upgrade the access control for administrative functions.
- Restful Privilege Elevation Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.
- Target Programs with Elevated Privileges This attack targets programs running with elevated privileges. The attacker would try to leverage a bug in the running program and get arbitrary code to execute with elevated privileges. For instance an attacker would look for programs that write to the system directories or registry keys (such as HKLM, which stores a number of critical Windows environment variables). These programs are typically running with elevated privileges and have usually not been designed with security in mind. Such programs are excellent exploit targets because they yield lots of power when they break. The malicious user try to execute its code at the same level as a privileged system call.
Seebug
bulletinFamily | exploit |
description | ### SUMMARY A vulnerability exists in the communication functionality of Intel Graphics Kernel Mode Driver. A specially crafted message can cause a vulnerability resulting in executing arbitrary code. An attacker can send specific message to trigger this vulnerability and escalate his privileges on the local system. ### TESTED VERSIONS Intel HD Graphics Windows Kernel Mode Driver, Version 10.18.14.4264 (requires physical machine) ### PRODUCT URLs http://intel.com ### CVSSv3 SCORE 8.4 - CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N/E:P/RL:U/RC:C ### DETAILS This vulnerability can be triggered by sending specially crafted D3DKMTEscape request to the Intel HD graphics driver. The faulting code is located in the Intel Graphics Kernel Mode Driver driver (igdkmd64 module): ``` .text:00000000001BE910 loc_1BE910: ; CODE XREF: sub_1BE4F0+43Ej .text:00000000001BE910 mov edx, [rdi+rbx*4+4] .text:00000000001BE914 mov rcx, rsi .text:00000000001BE917 call qword ptr [rsi+0C8h] .text:00000000001BE91D mov rcx, rax .text:00000000001BE920 call qword ptr [rax+250h] * arbitrary code execution here* ``` Instruction at 0x1BE920 tries to execute a memory location pointed by qword value located at @rax+0x250. In this case @rax value points to NULL (memory location at address 0). ### CRASH INFORMATION Additional information from the crash dump: ``` FOLLOWUP_IP: igdkmd64!hybDriverEntry+1485b0 fffff801`61fd0920 ff9050020000 call qword ptr [rax+250h] SYMBOL_STACK_INDEX: 0 SYMBOL_NAME: igdkmd64!hybDriverEntry+1485b0 FOLLOWUP_NAME: MachineOwner MODULE_NAME: igdkmd64 IMAGE_NAME: igdkmd64.sys DEBUG_FLR_IMAGE_TIMESTAMP: 55c196be STACK_COMMAND: .cxr 0xffffd00031747590 ; kb BUCKET_ID_FUNC_OFFSET: 1485b0 FAILURE_BUCKET_ID: 0x3B_igdkmd64!hybDriverEntry BUCKET_ID: 0x3B_igdkmd64!hybDriverEntry ANALYSIS_SOURCE: KM FAILURE_ID_HASH_STRING: km:0x3b_igdkmd64!hybdriverentry FAILURE_ID_HASH: {b388e4ef-f5cc-39ba-96af-1f55e1c7ae40} etAddr : Args to Child : Call Site fffff801`61fb33b1 : ffffd000`31748320 ffffe001`00000003 ffffd000`317480c0 00000000`00000046 : igdkmd64!hybDriverEntry+0x1485b0 fffff801`61ee4166 : ffffd000`31748320 00000025`000f003f ffffe001`7209e080 ffffc001`a13db100 : igdkmd64!hybDriverEntry+0x12b041 fffff801`61edfa4a : ffffc001`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : igdkmd64!hybDriverEntry+0x5bdf6 fffff801`61ed5b1f : 00000000`00000001 00000000`00000000 ffffc001`a5198900 00000000`00007fff : igdkmd64!hybDriverEntry+0x576da fffff801`61edc798 : ffff23ff`00000000 00000000`00000000 00000000`00000001 ffffc001`a5198940 : igdkmd64!hybDriverEntry+0x4d7af fffff801`61ed51b5 : 00000000`00000000 00000000`00000204 ffffc001`a5198740 00000000`00000000 : igdkmd64!hybDriverEntry+0x54428 fffff801`61e48613 : ffffd000`31748768 00000000`00000000 ffffe001`6dcd1000 ffffe001`6dcd1000 : igdkmd64!hybDriverEntry+0x4ce45 fffff801`61e48507 : ffffe001`6ddc4140 ffffd000`31748ad0 ffffe001`6ddc4140 00000000`00000001 : igdkmd64+0x26613 fffff801`60d1ea34 : ffffd000`31748768 ffffe001`6ddc4140 ffffd000`31748768 ffffe001`6ddc4140 : igdkmd64+0x26507 fffff801`60ceffef : ffffe001`6ddc4140 ffffd000`31748b80 ffffc001`a51d9000 fffff800`00000000 : dxgkrnl!DXGADAPTER::DdiEscape+0x48 fffff960`002c563b : ffffe001`6ddc4140 ffffe001`7209e080 00000000`7f5ac000 ffffe001`6ddc4140 : dxgkrnl!DxgkEscape+0x54f fffff800`ac5d41b3 : ffffe001`7209e080 00000000`7f5aa000 00000000`00e6fdb0 00000000`00000000 : win32k!NtGdiDdDDIEscape+0x53 00000000`770574aa : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : nt!KiSystemServiceCopyEnd+0x13 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : 0x770574aa ``` ### TIMELINE * 2016-03-07 - Vendor Notification * 2016-07-11 – Public Disclosure |
id | SSV:96731 |
last seen | 2017-11-19 |
modified | 2017-10-18 |
published | 2017-10-18 |
reporter | Root |
title | Intel HD Graphics Windows Kernel Driver (igdkmd64) Code Execution Vulnerability(CVE-2016-5647) |
Talos
id | TALOS-2016-0087 |
last seen | 2019-05-29 |
published | 2016-07-11 |
reporter | Talos Intelligence |
source | http://www.talosintelligence.com/vulnerability_reports/TALOS-2016-0087 |
title | Intel HD Graphics Windows Kernel Driver (igdkmd64) Code Execution Vulnerability |
References
- http://www.securityfocus.com/bid/91708
- http://www.securityfocus.com/bid/91708
- http://www.talosintelligence.com/reports/TALOS-2016-0087/
- http://www.talosintelligence.com/reports/TALOS-2016-0087/
- https://security-center.intel.com/advisory.aspx?intelid=INTEL-SA-00054&languageid=en-fr
- https://security-center.intel.com/advisory.aspx?intelid=INTEL-SA-00054&languageid=en-fr
- https://support.lenovo.com/us/en/product_security/ps500068
- https://support.lenovo.com/us/en/product_security/ps500068