NVIDIA Display Driver Service Remote Stack Buffer Overflow (credentialed check) - Nessus

High   Plugin ID: 63417

This page contains detailed information about the NVIDIA Display Driver Service Remote Stack Buffer Overflow (credentialed check) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 63417
Name: NVIDIA Display Driver Service Remote Stack Buffer Overflow (credentialed check)
Filename: nvidia_nvsr_buffer_overflow.nasl
Vulnerability Published: 2012-12-25
This Plugin Published: 2013-01-08
Last Modification Time: 2018-11-15
Plugin Version: 1.18
Plugin Type: local
Plugin Family: Windows
Dependencies: wmi_enum_display_drivers.nbin
Required KB Items [?]: Settings/ParanoidReport, WMI/DisplayDrivers/NVIDIA

Vulnerability Information


Severity: High
Vulnerability Published: 2012-12-25
Patch Published: 2013-01-05
CVE [?]: N/A
CPE [?]: cpe:/a:nvidia:display_driver

Synopsis

A video display service on the remote Windows host is affected by a stack-based buffer overflow vulnerability.

Description

The NVIDIA Display Driver Service on the remote Windows host is affected by a remote stack-based buffer overflow. An authenticated, remote attacker, by connecting to the nsvr named pipe and making a specially crafted request, could exploit this to execute arbitrary code as SYSTEM.

Solution

Upgrade to NVIDIA graphics drivers version 307.74 / 310.90 or later.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the NVIDIA Display Driver Service Remote Stack Buffer Overflow (credentialed check) vulnerability:

  1. Metasploit: exploit/windows/local/nvidia_nvsvc
    [Nvidia (nvsvc) Display Driver Service Local Privilege Escalation]
  2. Exploit-DB: exploits/windows/local/24207.c
    [EDB-24207: Nvidia Display Driver Service (Nsvr) - Local Buffer Overflow]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:L/Au:S/C:C/I:C/A:C/E:F/RL:U/RC:ND
CVSS Base Score:9.0 (High)
Impact Subscore:10.0
Exploitability Subscore:8.0
CVSS Temporal Score:8.6 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.6 (High)

Go back to menu.

Plugin Source


This is the nvidia_nvsr_buffer_overflow.nasl nessus plugin source code. This script is Copyright (C) 2013-2018 Tenable Network Security, Inc.

#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(63417);
  script_version("1.18");
  script_cvs_date("Date: 2018/11/15 20:50:27");

  script_bugtraq_id(57123);
  script_xref(name:"EDB-ID", value:"24207");

  script_name(english:"NVIDIA Display Driver Service Remote Stack Buffer Overflow (credentialed check)");
  script_summary(english:"Checks Driver Version");

  script_set_attribute(attribute:"synopsis", value:
"A video display service on the remote Windows host is affected by a
stack-based buffer overflow vulnerability.");
  script_set_attribute(attribute:"description", value:
"The NVIDIA Display Driver Service on the remote Windows host is
affected by a remote stack-based buffer overflow. An authenticated,
remote attacker, by connecting to the nsvr named pipe and making a
specially crafted request, could exploit this to execute arbitrary
code as SYSTEM.");
  script_set_attribute(attribute:"see_also", value:"https://seclists.org/dailydave/2013/q1/6");
  script_set_attribute(attribute:"see_also", value:"http://www.geforce.com/drivers/results/55026");
  script_set_attribute(attribute:"see_also", value:"http://www.geforce.com/drivers/results/55121");
  script_set_attribute(attribute:"see_also", value:"http://www.geforce.com/drivers/results/55217");
  script_set_attribute(attribute:"see_also", value:"http://www.geforce.com/drivers/results/55220");
  script_set_attribute(attribute:"see_also", value:"http://www.geforce.com/drivers/results/55599");
  script_set_attribute(attribute:"see_also", value:"http://www.nvidia.com/download/driverResults.aspx/56056");
  script_set_attribute(attribute:"solution", value:
"Upgrade to NVIDIA graphics drivers version 307.74 / 310.90 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:U/RC:ND");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Nvidia (nvsvc) Display Driver Service Local Privilege Escalation');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2012/12/25");
  script_set_attribute(attribute:"patch_publication_date", value:"2013/01/05");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/01/08");

  script_set_attribute(attribute:"potential_vulnerability", value:"true");
  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:nvidia:display_driver");
  script_end_attributes();

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

  script_copyright(english:"This script is Copyright (C) 2013-2018 Tenable Network Security, Inc.");

  script_dependencies("wmi_enum_display_drivers.nbin");
  script_require_keys("WMI/DisplayDrivers/NVIDIA", "Settings/ParanoidReport");
  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");

kb_base = 'WMI/DisplayDrivers/';

# double check in case optimization is disabled
kbs = get_kb_list(kb_base + '*/Name');
if (isnull(kbs)) exit(0, 'No display drivers were found.');

nvidia_found = FALSE;
foreach name (kbs)
  if ("NVIDIA" >< name) nvidia_found = TRUE;

if (!nvidia_found) exit(0, 'No NVIDIA display drivers were found.');

if (report_paranoia < 2) audit(AUDIT_PARANOID);

report = '';

foreach kb (keys(kbs))
{
  name = kbs[kb];
  # only check NVIDIA drivers
  if ("NVIDIA" >!< name) continue;

  id = kb - '/Name';

  version = get_kb_item_or_exit(id + '/Version');
  driver_date = get_kb_item_or_exit(id + '/DriverDate');

  disp_driver_date = driver_date;

  fix = '';

  # 304 Branch (304.xx - 309.xx)
  if (version =~ "^30[4-9]\." && ver_compare(ver:version, fix:"307.74", strict:FALSE) == -1)
    fix = '307.74';

  # 310 Branch (310.xx - 318.xx)
  if (version =~ "^31[0-8]\." && ver_compare(ver:version, fix:"310.90", strict:FALSE) == -1)
    fix = '310.90';

  if (fix != '')
  {
    report += '\n  Device name    : ' + name +
              '\n  Driver version : ' + version +
              '\n  Driver date    : ' + disp_driver_date +
              '\n  Fixed version  : ' + fix + '\n';
  }
}

if (report != '')
{
  if (report_verbosity > 0) security_hole(port:0, extra: report);
  else security_hole(0);
}
else exit(0, "No vulnerable NVIDIA display adapters were found.");

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/nvidia_nvsr_buffer_overflow.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\nvidia_nvsr_buffer_overflow.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/nvidia_nvsr_buffer_overflow.nasl

Go back to menu.

How to Run


Here is how to run the NVIDIA Display Driver Service Remote Stack Buffer Overflow (credentialed check) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Windows plugin family.
  6. On the right side table select NVIDIA Display Driver Service Remote Stack Buffer Overflow (credentialed check) plugin ID 63417.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl nvidia_nvsr_buffer_overflow.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a nvidia_nvsr_buffer_overflow.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - nvidia_nvsr_buffer_overflow.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state nvidia_nvsr_buffer_overflow.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 83521 - NVIDIA Display Driver 174.x < 307.78 / 310.x < 311.00 Multiple Vulnerabilities
  • 149045 - NVIDIA Windows GPU Display Driver (April 2021)
  • 152124 - NVIDIA Windows GPU Display Driver (July 2021)
  • 87412 - NVIDIA Graphics Driver 340.x < 341.92 / 352.x < 354.35 / 358.x < 358.87 Multiple Vulnerabilities
  • 105777 - NVIDIA Windows GPU Display Driver 384.x / 385.x / 386.x < 386.07 / 390.x < 390.65 Multiple Vulnerabilities (Meltdown)(Spectre)
  • 146429 - NVIDIA Linux GPU Display (January 2021) (CVE-2021-1056)
  • 152123 - NVIDIA Linux GPU Display Driver (July 2021)
  • 105776 - NVIDIA Linux GPU Display Driver 384.x < 384.111 / 390.x < 390.12 Multiple Vulnerabilities (Meltdown)(Spectre)
  • 156794 - Debian DLA-2888-1 : nvidia-graphics-drivers - LTS security update
  • 79958 - FreeBSD : NVIDIA UNIX driver -- remote denial of service or arbitrary code execution (fdf72a0e-8371-11e4-bc20-001636d274f3)
  • 80025 - Ubuntu 12.04 LTS / 14.04 LTS / 14.10 : nvidia-graphics-drivers-304, nvidia-graphics-drivers-304-updates, nvidia-graphics-drivers-331, nvidia-graphics-drivers-331-updates vulnerabilities (USN-2438-1)
  • 105723 - Ubuntu 14.04 LTS / 16.04 LTS / 17.04 / 17.10 : nvidia-graphics-drivers-384 vulnerability (USN-3521-1) (Spectre)
  • 144897 - Ubuntu 18.04 LTS / 20.04 LTS / 20.10 : NVIDIA graphics drivers vulnerabilities (USN-4689-1)
  • 151837 - Ubuntu 18.04 LTS / 20.04 LTS / 20.10 / 21.04 : NVIDIA graphics drivers vulnerabilities (USN-5019-1)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file nvidia_nvsr_buffer_overflow.nasl version 1.18. For more plugins, visit the Nessus Plugin Library.

Go back to menu.