MS Windows Ancillary Function Driver Elevation of Privilege Vulnerability (2975684)

Summary
This host is missing a critical security update according to Microsoft Bulletin MS14-040.
Impact
Successful exploitation will allow attackers to gain elevated privileges and execute arbitrary code and take complete control of an affected system. Impact Level: System
Solution
Run Windows Update and update the listed hotfixes or download and update mentioned hotfixes in the advisory from the below link, https://technet.microsoft.com/library/security/ms14-040
Insight
Flaw is due to a double-free error in the Ancillary Function Driver within 'afd.sys'.
Affected
Microsoft Windows 2003 x32 Service Pack 3 and prior Microsoft Windows 2003 x64 Service Pack 2 and prior Microsoft Windows Vista x32/x64 Service Pack 2 and prior Microsoft Windows Server 2008 x32/x64 Service Pack 2 and prior Microsoft Windows 7 x32/x64 Service Pack 1 and prior Microsoft Windows Server 2008 R2 x64 Service Pack 1 and prior Microsoft Windows 8 x32/x64 Microsoft Windows 8.1 x32/x64 Microsoft Windows Server 2012 Microsoft Windows Server 2012 R2
Detection
Get the vulnerable file version and check appropriate patch is applied or not.
References