Vulnerabilities > CVE-2017-0061 - Information Exposure vulnerability in Microsoft Windows 7, Windows Server 2008 and Windows Vista

047910
CVSS 5.3 - MEDIUM
Attack vector
NETWORK
Attack complexity
HIGH
Privileges required
NONE
Confidentiality impact
HIGH
Integrity impact
NONE
Availability impact
NONE
network
high complexity
microsoft
CWE-200
nessus
exploit available

Summary

The Color Management Module (ICM32.dll) memory handling functionality in Windows Vista SP2, Windows Server 2008 SP2 and R2, and Windows 7 SP1 allows remote attackers to bypass ASLR and execute code in combination with another vulnerability through a crafted website, aka "Microsoft Color Management Information Disclosure Vulnerability." This vulnerability is different from that described in CVE-2017-0063.

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Subverting Environment Variable Values
    The attacker directly or indirectly modifies environment variables used by or controlling the target software. The attacker's goal is to cause the target software to deviate from its expected operation in a manner that benefits the attacker.
  • Footprinting
    An attacker engages in probing and exploration activity to identify constituents and properties of the target. Footprinting is a general term to describe a variety of information gathering techniques, often used by attackers in preparation for some attack. It consists of using tools to learn as much as possible about the composition, configuration, and security mechanisms of the targeted application, system or network. Information that might be collected during a footprinting effort could include open ports, applications and their versions, network topology, and similar information. While footprinting is not intended to be damaging (although certain activities, such as network scans, can sometimes cause disruptions to vulnerable applications inadvertently) it may often pave the way for more damaging attacks.
  • Exploiting Trust in Client (aka Make the Client Invisible)
    An attack of this type exploits a programs' vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by placing themselves in the communication channel between client and server such that communication directly to the server is possible where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.
  • Browser Fingerprinting
    An attacker carefully crafts small snippets of Java Script to efficiently detect the type of browser the potential victim is using. Many web-based attacks need prior knowledge of the web browser including the version of browser to ensure successful exploitation of a vulnerability. Having this knowledge allows an attacker to target the victim with attacks that specifically exploit known or zero day weaknesses in the type and version of the browser used by the victim. Automating this process via Java Script as a part of the same delivery system used to exploit the browser is considered more efficient as the attacker can supply a browser fingerprinting method and integrate it with exploit code, all contained in Java Script and in response to the same web page request by the browser.
  • Session Credential Falsification through Prediction
    This attack targets predictable session ID in order to gain privileges. The attacker can predict the session ID used during a transaction to perform spoofing and session hijacking.

Exploit-Db

descriptionMicrosoft Color Management Module 'icm32.dll' - 'icm32!Fill_ushort_ELUTs_from_lut16Tag' Out-of-Bounds Read (MS17-013). CVE-2017-0061. Dos exploit for Windows...
fileexploits/windows/dos/41657.txt
idEDB-ID:41657
last seen2017-03-20
modified2017-03-20
platformwindows
port
published2017-03-20
reporterExploit-DB
sourcehttps://www.exploit-db.com/download/41657/
titleMicrosoft Color Management Module 'icm32.dll' - 'icm32!Fill_ushort_ELUTs_from_lut16Tag' Out-of-Bounds Read (MS17-013)
typedos

Msbulletin

bulletin_idMS17-013
bulletin_url
date2017-03-14T00:00:00
impactRemote Code Execution
knowledgebase_id4013075
knowledgebase_url
severityCritical
titleSecurity Update for Microsoft Graphics Component

Nessus

NASL familyWindows : Microsoft Bulletins
NASL idSMB_NT_MS17-013.NASL
descriptionThe remote Windows host is missing a security update. It is, therefore, affected by multiple vulnerabilities : - Multiple elevation of privilege vulnerabilities exist in the Windows Graphics Device Interface (GDI) component due to improper handling of objects in memory. A local attacker can exploit these vulnerabilities, via a specially crafted application, to execute arbitrary code in kernel mode. (CVE-2017-0001, CVE-2017-0005, CVE-2017-0025, CVE-2017-0047) - Multiple remote code execution vulnerabilities exist in the Windows Graphics component due to improper handling of objects in memory. An unauthenticated, remote attacker can exploit these vulnerabilities, by convincing a user to visit a specially crafted web page or open a specially crafted document, to execute arbitrary code. (CVE-2017-0014, CVE-2017-0108) - An information disclosure vulnerability exists in the Windows Graphics Device Interface (GDI) component due to improper handling of objects in memory. An unauthenticated, remote attacker can exploit this, by convincing a user to visit a specially crafted web page or open a specially crafted document, to disclose the contents of memory. (CVE-2017-0038) - Multiple information disclosure vulnerabilities exist in the Windows Graphics Device Interface (GDI) component due to improper handling of memory addresses. A local attacker can exploit these vulnerabilities, via a specially crafted application, to disclose sensitive information. (CVE-2017-0060, CVE-2017-0062, CVE-2017-0073) - Multiple information disclosure vulnerabilities exist in the Color Management Module (ICM32.dll) due to improper handling of objects in memory. An unauthenticated, remote attacker can exploit this, by convincing a user to visit a specially crafted web page, to disclose sensitive information and bypass usermode Address Space Layout Randomization (ASLR). (CVE-2017-0061, CVE-2017-0063)
last seen2020-06-01
modified2020-06-02
plugin id97794
published2017-03-17
reporterThis script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/97794
titleMS17-013: Security Update for Microsoft Graphics Component (4013075)
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(97794);
  script_version("1.14");
  script_cvs_date("Date: 2019/11/13");

  script_cve_id(
    "CVE-2017-0001",
    "CVE-2017-0005",
    "CVE-2017-0014",
    "CVE-2017-0025",
    "CVE-2017-0038",
    "CVE-2017-0047",
    "CVE-2017-0060",
    "CVE-2017-0061",
    "CVE-2017-0062",
    "CVE-2017-0063",
    "CVE-2017-0073",
    "CVE-2017-0108"
  );
  script_bugtraq_id(
    96013,
    96023,
    96033,
    96034,
    96057,
    96626,
    96637,
    96638,
    96643,
    96713,
    96715,
    96722
  );
  script_xref(name:"MSFT", value:"MS17-013");
  script_xref(name:"MSKB", value:"3127945");
  script_xref(name:"MSKB", value:"3127958");
  script_xref(name:"MSKB", value:"3141535");
  script_xref(name:"MSKB", value:"3172539");
  script_xref(name:"MSKB", value:"3178653");
  script_xref(name:"MSKB", value:"3178656");
  script_xref(name:"MSKB", value:"3178688");
  script_xref(name:"MSKB", value:"3178693");
  script_xref(name:"MSKB", value:"4010096");
  script_xref(name:"MSKB", value:"4010299");
  script_xref(name:"MSKB", value:"4010300");
  script_xref(name:"MSKB", value:"4010301");
  script_xref(name:"MSKB", value:"4010303");
  script_xref(name:"MSKB", value:"4010304");
  script_xref(name:"MSKB", value:"4012212");
  script_xref(name:"MSKB", value:"4012213");
  script_xref(name:"MSKB", value:"4012214");
  script_xref(name:"MSKB", value:"4012215");
  script_xref(name:"MSKB", value:"4012216");
  script_xref(name:"MSKB", value:"4012217");
  script_xref(name:"MSKB", value:"4012497");
  script_xref(name:"MSKB", value:"4012583");
  script_xref(name:"MSKB", value:"4017018");
  script_xref(name:"MSKB", value:"4012584");
  script_xref(name:"MSKB", value:"4012606");
  script_xref(name:"MSKB", value:"4013198");
  script_xref(name:"MSKB", value:"4013429");
  script_xref(name:"MSKB", value:"4013867");
  script_xref(name:"IAVA", value:"2017-A-0063");

  script_name(english:"MS17-013: Security Update for Microsoft Graphics Component (4013075)");
  script_summary(english:"Checks the version of win32k.sys or the installed rollup.");

  script_set_attribute(attribute:"synopsis", value:
"The remote Windows host is affected by multiple vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The remote Windows host is missing a security update. It is,
therefore, affected by multiple vulnerabilities :

  - Multiple elevation of privilege vulnerabilities exist in
    the Windows Graphics Device Interface (GDI) component
    due to improper handling of objects in memory. A local
    attacker can exploit these vulnerabilities, via a
    specially crafted application, to execute arbitrary code
    in kernel mode. (CVE-2017-0001, CVE-2017-0005,
    CVE-2017-0025, CVE-2017-0047)

  - Multiple remote code execution vulnerabilities exist in
    the Windows Graphics component due to improper handling
    of objects in memory. An unauthenticated, remote
    attacker can exploit these vulnerabilities, by
    convincing a user to visit a specially crafted web page
    or open a specially crafted document, to execute
    arbitrary code. (CVE-2017-0014, CVE-2017-0108)

  - An information disclosure vulnerability exists in the
    Windows Graphics Device Interface (GDI) component due to
    improper handling of objects in memory. An
    unauthenticated, remote attacker can exploit this, by
    convincing a user to visit a specially crafted web page
    or open a specially crafted document, to disclose the
    contents of memory. (CVE-2017-0038)

  - Multiple information disclosure vulnerabilities exist in
    the Windows Graphics Device Interface (GDI) component
    due to improper handling of memory addresses. A local
    attacker can exploit these vulnerabilities, via a
    specially crafted application, to disclose sensitive
    information. (CVE-2017-0060, CVE-2017-0062,
    CVE-2017-0073)

  - Multiple information disclosure vulnerabilities exist in
    the Color Management Module (ICM32.dll) due to improper
    handling of objects in memory. An unauthenticated,
    remote attacker can exploit this, by convincing a user
    to visit a specially crafted web page, to disclose
    sensitive information and bypass usermode Address Space
    Layout Randomization (ASLR). (CVE-2017-0061,
    CVE-2017-0063)");
  script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2017/ms17-013");
  script_set_attribute(attribute:"solution", value:
"Microsoft has released a set of patches for Windows XP, 2003, Vista,
2008, 7, 2008 R2, 2012, 8.1, RT 8.1, 2012 R2, 10, and 2016.
Additionally, Microsoft has released a set of patches for Office 2007,
Office 2010, Word Viewer, Skype for Business 2016, Lync 2010, Lync
2010 Attendee, Lync 2013, Lync Basic 2013, Live Meeting 2007 Console,
and Silverlight 5.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:H/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2017-0108");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"exploited_by_malware", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2017/03/14");
  script_set_attribute(attribute:"patch_publication_date", value:"2017/03/14");
  script_set_attribute(attribute:"plugin_publication_date", value:"2017/03/17");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:microsoft:windows");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:word_viewer");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:live_meeting_console");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:lync");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:lync_basic");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:lync_attendee");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:skype_for_business");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:silverlight");
  script_set_attribute(attribute:"stig_severity", value:"II");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows : Microsoft Bulletins");

  script_copyright(english:"This script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("silverlight_detect.nasl", "microsoft_lync_server_installed.nasl", "smb_hotfixes.nasl", "office_installed.nasl", "ms_bulletin_checks_possible.nasl", "smb_check_rollup.nasl");
  script_require_keys("SMB/MS_Bulletin_Checks/Possible");
  script_require_ports(139, 445, "Host/patch_management_checks");

  exit(0);
}

include("audit.inc");
include("smb_hotfixes_fcheck.inc");
include("smb_hotfixes.inc");
include("smb_func.inc");
include("smb_reg_query.inc");
include("misc_func.inc");
include("global_settings.inc");
include("install_func.inc");
include("misc_func.inc");


get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible");

kbs = make_list('3127945',
                '3127958',
                '3141535',
                '3172539',
                '3178653',
                '3178656',
                '3178688',
                '3178693',
                '4010096',
                '4010299',
                '4010300',
                '4010301',
                '4010303',
                '4010304',
                '4012212',
                '4012213',
                '4012214',
                '4012215',
                '4012216',
                '4012217',
                '4012497',
                '4012583',
                '4017018',
                '4012584',
                '4012606',
                '4013198',
                '4013429',
                '4013867'
);

bulletin = 'MS17-013';
common_office_path = '';

function perform_office_checks() {
  local_var office_vers, office_sp, common_path, path, prod, kb, vuln, installs;
  office_vers = hotfix_check_office_version();
  vuln = 0;
  # Office 2003 checks
  if (office_vers["11.0"])
  {
    local_var wvchecks = {
      "11.0": {"version" : "11.0.8440.0",
               "kb"      : "3178693"}
    };

    # check if Word Viewer is installed
    installs = get_kb_list("SMB/Office/WordViewer/*/ProductPath");

    # install checks only if found
    if (keys(installs))
    {
      if (hotfix_check_office_product(product:"WordViewer",
                                      display_name:"Word Viewer",
                                      checks:wvchecks,
                                      bulletin:bulletin))
        vuln++;

        # word viewer DLL check in common files dir
        common_path = hotfix_get_officecommonfilesdir(officever:"11.0");
        path = hotfix_append_path(path:common_path, value:"Microsoft Shared\Office11");
        if (hotfix_check_fversion(file:"usp10.dll",
                                  version:"1.0626.6002.24058",
                                  min_version:"1.0.0.0",
                                  path:path,
                                  bulletin:bulletin,
                                  kb:"3178653",
                                  product:"Microsoft Word Viewer") == HCF_OLDER)
          vuln++;
      }
  }
  # Office 2007 checks
  if (office_vers["12.0"])
  {
    office_sp = get_kb_item("SMB/Office/2007/SP");
    if (!isnull(office_sp) && office_sp == 3)
    {
      prod = "Microsoft Office 2007 SP3";
      common_path = hotfix_get_officecommonfilesdir(officever:"12.0");
      path = hotfix_append_path(path:common_path, value:"Microsoft Shared\Office12");
      if (hotfix_check_fversion(file:"ogl.dll",
                                version:"12.0.6764.5000",
                                min_version:"12.0.0.0",
                                path:path,
                                bulletin:bulletin,
                                kb:"3127945",
                                product:prod) == HCF_OLDER ||
          hotfix_check_fversion(file:"usp10.dll",
                                version:"1.0626.6002.24058",
                                min_version:"1.0.0.0",
                                path:path,
                                bulletin:bulletin,
                                kb:"3141535",
                                product:prod) == HCF_OLDER)
        vuln++;
      path = common_path + "\Live Meeting 8\Addins\";
      if (hotfix_check_fversion(file:"LMAddins.dll",
                                version:"8.0.6362.264",
                                min_version:"8.0.0.0",
                                path:path,
                                bulletin:bulletin,
                                kb:"4010304",
                                product: "Live Meeting 2007 Add-in") == HCF_OLDER)
        vuln ++;
    } # end of SP3 checks
  } # end of Office 2007 checks
  if (office_vers["14.0"])
  {
    office_sp = get_kb_item("SMB/Office/2010/SP");
    if (!isnull(office_sp) && office_sp == 2)
    {
      prod = "Microsoft Office 2010 SP2";
      common_path = hotfix_get_officecommonfilesdir(officever:"14.0");
      path = hotfix_append_path(path:common_path, value:"Microsoft Shared\Office14");
      if ((hotfix_check_fversion(file:"ogl.dll",
                                version:"14.0.7179.5000",
                                min_version:"14.0.0.0",
                                path:path,
                                bulletin:bulletin,
                                kb:"3127958",
                                product:prod) == HCF_OLDER) ||
          (hotfix_check_fversion(file:"usp10.dll",
                                version:"1.0626.7601.23668",
                                min_version:"1.0.0.0",
                                path:path,
                                bulletin:bulletin,
                                kb:"3178688",
                                product:prod) == HCF_OLDER))
        vuln++;
    } # end sp2

  } # end office 2010`
  return vuln;
}

function lync_is_vuln()
{
  local_var vuln, lync_count, lync_installs, lync_install;
  local_var lync = "Microsoft Lync";
  lync_count = get_install_count(app_name:lync);
  vuln = 0;
  if (int(lync_count) <= 0)
    return FALSE;

  lync_installs = get_installs(app_name:lync);

  foreach (lync_install in lync_installs[1])
  {
     if (("Live Meeting 2007 Console" >< lync_install["Product"]) &&
         (hotfix_check_fversion(file:"pubutil.dll",
                                version:"8.0.6362.264",
                                min_version:"8.0.0.0",
                                path:lync_install["path"],
                                bulletin:bulletin,
                                kb:"4010303",
                                product:"Live Meeting 2007 Console") == HCF_OLDER))
       vuln++;
        # the same check works for both Microsoft Lync 2010 and
        # Microsoft Lync 2010 Attendee (Ocpptview.dll, v.4.0.7577.4525)
     if (("Microsoft Lync 2010" >< lync_install["Product"]) &&
         (hotfix_check_fversion(file:"Ocpptview.dll",
                                 version:"4.0.7577.4525",
                                 min_version:"4.0.0.0",
                                 path:lync_install["path"],
                                 kb:"4010299",
                                 product:"Microsoft Lync 2010") == HCF_OLDER))
       vuln++;
     if ((lync_install["version"] =~ "^4\.0\." && "Server" >!< lync_install["Product"]
           && "Attendee" >< lync_install["Product"]))
     {
        if("user level" >< lync_install["Product"] &&
          hotfix_check_fversion(file:"MeetingJoinAxAOC.DLL",
                               version:"4.0.7577.4525",
                               min_version:"4.0.0.0",
                               path:lync_install["path"],
                               kb:"4010300",
                               product:"Microsoft Lync 2010 Attendee") == HCF_OLDER)
          vuln++;
        else if (hotfix_check_fversion(file:"MeetingJoinAxAOC.DLL",
                               version:"4.0.7577.4525",
                               min_version:"4.0.0.0",
                               path:lync_install["path"],
                               kb:"4010301",
                               product:"Microsoft Lync 2010 Attendee") == HCF_OLDER)
          vuln++;
    }
     if("Microsoft Lync" >< lync_install["Product"] && lync_install["version"] =~ "^15\." &&
         (hotfix_check_fversion(file:"Lync.exe",
                                 version:"15.0.4911.1000",
                                 min_version:"15.0.0.0",
                                 path:lync_install["path"],
                                 kb:"3172539",
                                 product:"Microsoft Lync 2013") == HCF_OLDER))
       vuln++;
        # Skype for business
     if ((lync_install["version"] =~ "^16\.0\." && "Server" >!< lync_install["Product"]) &&
         (hotfix_check_fversion(file:"Lync.exe",
                                 version:"16.0.4510.1000",
                                 min_version:"16.0.0.0",
                                 path:lync_install["path"],
                                 kb:"3178656",
                                 product:"Skype for Business 2016") == HCF_OLDER))
       vuln++;
  }

  return vuln;
}

function silverlight_is_vuln()
{
  local_var silver, path, report, fix;
  local_var vuln = 0;
  silver = get_kb_item("SMB/Silverlight/Version");
  if (!isnull(silver) && silver =~ "^5\.")
  {
    fix = "5.1.50905.0";
    if (ver_compare(ver:silver, fix:fix) == -1)
    {
      path = get_kb_item("SMB/Silverlight/Path");
      if (isnull(path)) path = 'n/a';

      report =
        '\n  Path              : ' + path +
        '\n  Installed version : ' + silver +
        '\n  Fixed version     : ' + fix +
        '\n';
      hotfix_add_report(report, bulletin:bulletin, kb:"4013867");
      vuln++;
    }
  }
  return vuln;
}

if (get_kb_item("Host/patch_management_checks")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE);

get_kb_item_or_exit("SMB/Registry/Enumerated");
get_kb_item_or_exit("SMB/WindowsVersion", exit_code:1);

# double check this
if (hotfix_check_sp_range(xp:'2,3', win2003:'2', vista:'2', win7:'1', win8:'0', win81:'0', win10:'0') <= 0) audit(AUDIT_OS_SP_NOT_VULN);

share = hotfix_get_systemdrive(as_share:TRUE, exit_on_fail:TRUE);
if (!is_accessible_share(share:share)) audit(AUDIT_SHARE_FAIL, share);

productname = get_kb_item_or_exit("SMB/ProductName", exit_code:1);
win_8 = ("Windows 8" >< productname && "8.1" >!< productname);

vuln = 0;
vuln += lync_is_vuln();
vuln += perform_office_checks();
vuln += silverlight_is_vuln();

if (
  # Windows XP SP3 (x86)
  hotfix_is_vulnerable(os:"5.1", sp:3, file:"gdi32.dll", version:"5.1.2600.7209", min_version:"5.1.2600.5000", dir:"\system32", bulletin:bulletin, kb:"4012583", arch:"x86") ||
  # Windows Server 2003 SP2 (x64) / Windows XP SP2 (x64)
  hotfix_is_vulnerable(os:"5.2", sp:2, file:"gdi32.dll", version:"5.2.3790.6022", min_version:"5.2.3790.3000", dir:"\system32", bulletin:bulletin, kb:"4012583", arch:"x64") ||

  # Vista / 2008
  hotfix_is_vulnerable(os:"6.0", sp:2, file:"Gdi32.dll", version:"6.0.6002.24081", min_version:"6.0.6002.23000", dir:"\system32", bulletin:bulletin, kb:"4017018") ||
  hotfix_is_vulnerable(os:"6.0", sp:2, file:"Gdi32.dll", version:"6.0.6002.19758", min_version:"6.0.6002.18000", dir:"\system32", bulletin:bulletin, kb:"4017018") ||
  hotfix_is_vulnerable(os:'6.0', sp:2, file:'Icm32.dll', version:'6.0.6002.24065', min_version:'6.0.6002.23000', dir:"\system32", bulletin:bulletin, kb:"4012584") ||
  hotfix_is_vulnerable(os:'6.0', sp:2, file:'Icm32.dll', version:'6.0.6002.19741', min_version:'6.0.6002.18000', dir:"\system32", bulletin:bulletin, kb:"4012584") ||
  hotfix_is_vulnerable(os:'6.0', sp:2, file:'Win32k.sys', version:'6.0.6002.24065', min_version:'6.0.6002.23000', dir:"\system32", bulletin:bulletin, kb:"4012497") ||
  hotfix_is_vulnerable(os:'6.0', sp:2, file:'Win32k.sys', version:'6.0.6002.19741', min_version:'6.0.6002.18000', dir:"\system32", bulletin:bulletin, kb:"4012497") ||

  # Windows 8
  hotfix_is_vulnerable(os:'6.2', file:'gdiplus.dll', version:'6.2.9200.22082', min_version:'6.2.9200.17000', dir:"\system32", bulletin:bulletin, kb:"4012583") ||

  # 7 SP1 / 2008 R2 SP1
  smb_check_rollup(os:"6.1",
                   sp:1,
                   rollup_date:"03_2017",
                   bulletin:bulletin,
                   rollup_kb_list:make_list(4012212, 4012215)) ||

  # 8.1 / 2012 R2
  smb_check_rollup(os:"6.3",
                   sp:0,
                   rollup_date: "03_2017",
                   bulletin:bulletin,
                   rollup_kb_list:make_list(4012213, 4012216)) ||
  # 2012
  (smb_check_rollup(os:"6.2",
                   sp:0,
                   rollup_date: "03_2017",
                   bulletin:bulletin,
                   rollup_kb_list:make_list(4012214, 4012217)) &&
   (!win_8) # must be 2012, not Win 8 to check rollup
  ) ||
  # 2012 R2
  smb_check_rollup(os:"6.3",
                   sp:0,
                   rollup_date: "03_2017",
                   bulletin:bulletin,
                   rollup_kb_list:make_list(4012213, 4012216)) ||
  # 10 (1507)
  smb_check_rollup(os:"10",
                   sp:0,
                   os_build:"10240",
                   rollup_date: "03_2017",
                   bulletin:bulletin,
                   rollup_kb_list:make_list(4012606)) ||
  # 10 (1511)
  smb_check_rollup(os:"10",
                   sp:0,
                   os_build:"10586",
                   rollup_date: "03_2017",
                   bulletin:bulletin,
                   rollup_kb_list:make_list(4013198)) ||
  # 10 (1607)
  smb_check_rollup(os:"10",
                   sp:0,
                   os_build:"14393",
                   rollup_date: "03_2017",
                   bulletin:bulletin,
                   rollup_kb_list:make_list(4013429)) ||
  vuln
)
{
  set_kb_item(name:'SMB/Missing/'+bulletin, value:TRUE);
  hotfix_security_hole();
  hotfix_check_fversion_end();
  exit(0);
}
else
{
  hotfix_check_fversion_end();
  audit(AUDIT_HOST_NOT, hotfix_get_audit_report());
}

Seebug

bulletinFamilyexploit
descriptionWe have encountered a crash in the Windows Color Management library (icm32.dll), in the icm32!Fill_ushort_ELUTs_from_lut16Tag function, while trying to display a TIFF image with a malformed embedded color profile: ``` (7c1c.93b0): Access violation - code c0000005 (first chance) First chance exceptions are reported before any exception handling. This exception may be expected and handled. eax=00000001 ebx=0028f0dc ecx=0984f7c0 edx=00006ff0 esi=0980f800 edi=00000100 eip=6ac4f701 esp=0028ecc8 ebp=0028ecf4 iopl=0 nv up ei pl nz na pe nc cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00210206 icm32!Fill_ushort_ELUTs_from_lut16Tag+0xe4: 6ac4f701 0fb711 movzx edx,word ptr [ecx] ds:002b:0984f7c0=???? 0:000> kb ChildEBP RetAddr Args to Child 0028ecf4 6ac495bd 0028f0dc ff837f84 00004000 icm32!Fill_ushort_ELUTs_from_lut16Tag+0xe4 0028ed28 6ac4b117 0028f0dc 0028ef54 00002100 icm32!ExtractElutFromLut16+0xec 0028ed80 6ac4ca1d 0028f0dc 0028ef54 41324230 icm32!ExtractAll_MFT_LutsFromLut16+0x10a 0028edac 6ac4ccbf 0028f0dc 0028ef54 41324230 icm32!ExtractAll_MFT_Luts+0x8c 0028ee3c 6ac4d562 0028f0dc 0028ef54 00000000 icm32!ExtractAllLuts+0x257 0028f148 6ac4e947 0953ee58 09534ff0 061f7f70 icm32!CreateCombi+0x725 0028f2ec 6ac43c84 0953ee58 09534ff0 00000000 icm32!PrepareCombiLUTs+0x3a6 0028f498 6ac42dba 0953ee58 09534ff0 09534ff0 icm32!CMMConcatInitPrivate+0x23e 0028f4b4 6ac41630 0028f520 09534ff0 0028f5c4 icm32!CWConcatColorWorld4MS+0x42 0028f4e0 6ac41fce 0028f520 00180002 00000000 icm32!CMCreateMultiProfileTransformInternal+0x10b 0028f508 6c5ec8af 0028f5bc 00000002 0028f5c4 icm32!CMCreateMultiProfileTransform+0x20 0028f57c 6d2fd7c8 0028f5bc 00000002 0028f5c4 mscms!CreateMultiProfileTransform+0x22d 0028f5a0 6d2fb62c 0028f5bc 0028f5c4 00000000 WindowsCodecsExt!ICMModule::CreateMultiProfileTransform+0x27 0028f5d4 6d2f58cd 06277f90 40c8e2f0 40cf42f0 WindowsCodecsExt!CIcmColorTransform::CreateVectorTransform+0x6f 0028f640 69b25e74 09744f88 0970afac 0028f6b4 WindowsCodecsExt!CFormatConverterNChannel::Initialize+0x4b2 0028f6d8 6c8ea4be 0970cf90 0970afac 0028f710 WindowsCodecs!CFormatConverterResolver::Initialize+0x318 0028f724 6c8ec909 0010300c 00000000 07b67f68 gdiplus!GpWicDecoder::InitFormatConverter+0x7e 0028f760 6c8e9d72 00000000 07b55fd0 07b4df98 gdiplus!GpWicDecoder::DecodeFrame+0xb5 0028f774 6c8ddeb8 07b67f68 07b4df98 07b4df98 gdiplus!GpWicDecoder::GetImageInfo+0x29 0028f798 6c8de328 07b4df98 0000027f 07b4df38 gdiplus!GpDecodedImage::InternalGetImageInfo+0x3f 0028f7b8 6c830aee 07b55fd0 07b4df98 07b4bcd8 gdiplus!GpDecodedImage::GetImageInfo+0x18 0028f7cc 6c832cd3 0028f880 0028f7e8 6c83330d gdiplus!CopyOnWriteBitmap::CopyOnWriteBitmap+0x48 0028f7d8 6c83330d 0028f880 07b45f28 0028f7f8 gdiplus!CopyOnWriteBitmap::Create+0x1d 0028f7e8 6c8342aa 0028f880 07b43ff4 0028f81c gdiplus!GpBitmap::GpBitmap+0x2c 0028f7f8 6c803e8d 0028f880 085a1000 07b43ff0 gdiplus!GpImage::LoadImageW+0x69 0028f81c 003b171f 0028f880 07b43ff4 b2121dcf gdiplus!GdipLoadImageFromFile+0x74 [...] ``` The issue reproduces on Windows 7. It is easiest to reproduce with PageHeap enabled. In order to reproduce the problem with the provided samples, it might be necessary to use a custom program which displays images using GDI+, or any existing GDI+ client (such as Microsoft Office). Attached is a TIFF file which triggers the crash.
idSSV:92862
last seen2017-11-19
modified2017-03-30
published2017-03-30
reporterRoot
titleMicrosoft Color Management Module (icm32.dll) out-of-bounds read (CVE-2017-0061)