Virtuozzo 7 : readykernel-patch (VZA-2017-027) - Nessus
High Plugin ID: 99201This page contains detailed information about the Virtuozzo 7 : readykernel-patch (VZA-2017-027) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.
Plugin Overview
ID: 99201
Name: Virtuozzo 7 : readykernel-patch (VZA-2017-027)
Filename: Virtuozzo_VZA-2017-027.nasl
Vulnerability Published: N/A
This Plugin Published: 2017-04-06
Last Modification Time: 2021-01-04
Plugin Version: 3.14
Plugin Type: local
Plugin Family: Virtuozzo Local Security Checks
Dependencies:
ssh_get_info.nasl
Required KB Items [?]: Host/local_checks_enabled, Host/readykernel-info, Host/Virtuozzo/release, Host/Virtuozzo/rpm-list
Vulnerability Information
Severity: High
Vulnerability Published: N/A
Patch Published: 2017-04-04
CVE [?]: CVE-2017-7308
CPE [?]: cpe:/o:virtuozzo:virtuozzo:7, p-cpe:/a:virtuozzo:virtuozzo:readykernel
Exploited by Malware: True
Synopsis
The remote Virtuozzo host is missing a security update.
Description
According to the version of the vzkernel package and the readykernel-patch installed, the Virtuozzo installation on the remote host is affected by the following vulnerability :
- The packet_set_ring function in net/packet/af_packet.c in the Linux kernel through 4.10.6 does not properly validate certain block-size data, which allows local users to cause a denial of service (overflow) or possibly have unspecified other impact via crafted system calls.
Note that Tenable Network Security has extracted the preceding description block directly from the Virtuozzo security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
Solution
Update the readykernel patch.
Public Exploits
Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub, Core Impact)
Exploit Ease: Exploits are available
Here's the list of publicly known exploits and PoCs for verifying the Virtuozzo 7 : readykernel-patch (VZA-2017-027) vulnerability:
- Metasploit: exploit/linux/local/af_packet_packet_set_ring_priv_esc
[AF_PACKET packet_set_ring Privilege Escalation] - Exploit-DB: exploits/linux/local/41994.c
[EDB-41994: Linux Kernel 4.8.0-41-generic (Ubuntu) - Packet Socket Local Privilege Escalation] - Exploit-DB: exploits/linux/local/44654.rb
[EDB-44654: Linux 4.8.0 < 4.8.0-46 - AF_PACKET packet_set_ring Privilege Escalation (Metasploit)] - Exploit-DB: exploits/linux/local/47168.c
[EDB-47168: Linux Kernel 4.8.0-34 < 4.8.0-45 (Ubuntu / Linux Mint) - Packet Socket Local Privilege Escalation] - GitHub: https://github.com/Al1ex/LinuxEelvation
[CVE-2017-7308] - GitHub: https://github.com/CKmaenn/kernel-exploits
[CVE-2017-7308] - GitHub: https://github.com/De4dCr0w/Linux-kernel-EoP-exp
[CVE-2017-7308] - GitHub: https://github.com/Metarget/metarget
[CVE-2017-7308] - GitHub: https://github.com/R0B1NL1N/Linux-Kernal-Exploits-m-
[CVE-2017-7308] - GitHub: https://github.com/R0B1NL1N/Linux-Kernel-Exploites
[CVE-2017-7308] - GitHub: https://github.com/RLee063/RLee063
[CVE-2017-7308] - GitHub: https://github.com/Snoopy-Sec/Localroot-ALL-CVE
[CVE-2017-7308] - GitHub: https://github.com/Technoashofficial/kernel-exploitation-linux
[CVE-2017-7308] - GitHub: https://github.com/amrelsadane123/Ecploit-kernel-4.10-linux-local
[CVE-2017-7308] - GitHub: https://github.com/anoaghost/Localroot_Compile
[CVE-2017-7308] - GitHub: https://github.com/bcoles/kernel-exploits
[CVE-2017-7308] - GitHub: https://github.com/bitdefender/vbh_sample
[CVE-2017-7308] - GitHub: https://github.com/bsauce/kernel-exploit-factory
[CVE-2017-7308] - GitHub: https://github.com/bsauce/kernel-security-learning
[CVE-2017-7308] - GitHub: https://github.com/ferovap/Tools
[CVE-2017-7308] - GitHub: https://github.com/h4x0r-dz/local-root-exploit-
[CVE-2017-7308] - GitHub: https://github.com/jiayy/android_vuln_poc-exp
[CVE-2017-7308] - GitHub: https://github.com/n3t1nv4d3/kernel-exploits
[CVE-2017-7308] - GitHub: https://github.com/qiantu88/Linux--exp
[CVE-2017-7308] - GitHub: https://github.com/rakjong/LinuxElevation
[CVE-2017-7308] - GitHub: https://github.com/skbasava/Linux-Kernel-exploit
[CVE-2017-7308] - GitHub: https://github.com/spencerdodd/kernelpop
[CVE-2017-7308] - GitHub: https://github.com/xairy/kernel-exploits
[CVE-2017-7308] - GitHub: https://github.com/xairy/kernel-exploits/tree/master/CVE-2017-7308
[CVE-2017-7308] - GitHub: https://github.com/xairy/linux-kernel-exploitation
[CVE-2017-7308]
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:L/AC:L/Au:N/C:C/I:C/A:C/E:H/RL:OF/RC:C
CVSS Base Score: | 7.2 (High) |
Impact Subscore: | 10.0 |
Exploitability Subscore: | 3.9 |
CVSS Temporal Score: | 6.3 (Medium) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 6.3 (Medium) |
CVSS Base Score: | 7.8 (High) |
Impact Subscore: | 5.9 |
Exploitability Subscore: | 1.8 |
CVSS Temporal Score: | 7.5 (High) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 7.5 (High) |
Go back to menu.
Plugin Source
This is the Virtuozzo_VZA-2017-027.nasl nessus plugin source code. This script is Copyright (C) 2017-2021 and is owned by Tenable, Inc. or an Affiliate thereof.
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(99201);
script_version("3.14");
script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/04");
script_cve_id(
"CVE-2017-7308"
);
script_name(english:"Virtuozzo 7 : readykernel-patch (VZA-2017-027)");
script_summary(english:"Checks the readykernel output for the updated patch.");
script_set_attribute(attribute:"synopsis", value:
"The remote Virtuozzo host is missing a security update.");
script_set_attribute(attribute:"description", value:
"According to the version of the vzkernel package and the
readykernel-patch installed, the Virtuozzo installation on the remote
host is affected by the following vulnerability :
- The packet_set_ring function in net/packet/af_packet.c
in the Linux kernel through 4.10.6 does not properly
validate certain block-size data, which allows local
users to cause a denial of service (overflow) or
possibly have unspecified other impact via crafted
system calls.
Note that Tenable Network Security has extracted the preceding
description block directly from the Virtuozzo security advisory.
Tenable has attempted to automatically clean and format it as much as
possible without introducing additional issues.");
script_set_attribute(attribute:"see_also", value:"https://help.virtuozzo.com/customer/portal/articles/2781369");
# https://readykernel.com/patch/Virtuozzo-7/readykernel-patch-15.2-17.0-1.vl7/
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?a07655c0");
# https://readykernel.com/patch/Virtuozzo-7/readykernel-patch-18.7-17.0-1.vl7/
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?4266c438");
# https://readykernel.com/patch/Virtuozzo-7/readykernel-patch-20.18-17.0-1.vl7/
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?2e3073ec");
script_set_attribute(attribute:"solution", value:"Update the readykernel patch.");
script_set_cvss_base_vector("CVSS2#AV:L/AC:L/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:L/UI:N/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:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"exploit_framework_core", value:"true");
script_set_attribute(attribute:"exploited_by_malware", value:"true");
script_set_attribute(attribute:"metasploit_name", value:'AF_PACKET packet_set_ring Privilege Escalation');
script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"patch_publication_date", value:"2017/04/04");
script_set_attribute(attribute:"plugin_publication_date", value:"2017/04/06");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:virtuozzo:virtuozzo:readykernel");
script_set_attribute(attribute:"cpe", value:"cpe:/o:virtuozzo:virtuozzo:7");
script_set_attribute(attribute:"generated_plugin", value:"current");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Virtuozzo Local Security Checks");
script_copyright(english:"This script is Copyright (C) 2017-2021 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("ssh_get_info.nasl");
script_require_keys("Host/local_checks_enabled", "Host/Virtuozzo/release", "Host/Virtuozzo/rpm-list", "Host/readykernel-info");
exit(0);
}
include("global_settings.inc");
include("readykernel.inc");
if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
release = get_kb_item("Host/Virtuozzo/release");
if (isnull(release) || "Virtuozzo" >!< release) audit(AUDIT_OS_NOT, "Virtuozzo");
os_ver = pregmatch(pattern: "Virtuozzo Linux release ([0-9]+\.[0-9])(\D|$)", string:release);
if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Virtuozzo");
os_ver = os_ver[1];
if (! preg(pattern:"^7([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Virtuozzo 7.x", "Virtuozzo " + os_ver);
if (!get_kb_item("Host/Virtuozzo/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
cpu = get_kb_item("Host/cpu");
if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Virtuozzo", cpu);
rk_info = get_kb_item("Host/readykernel-info");
if (empty_or_null(rk_info)) audit(AUDIT_UNKNOWN_APP_VER, "Virtuozzo");
checks = make_list2(
make_array(
"kernel","vzkernel-3.10.0-327.18.2.vz7.15.2",
"patch","readykernel-patch-15.2-17.0-1.vl7"
),
make_array(
"kernel","vzkernel-3.10.0-327.36.1.vz7.18.7",
"patch","readykernel-patch-18.7-17.0-1.vl7"
),
make_array(
"kernel","vzkernel-3.10.0-327.36.1.vz7.20.18",
"patch","readykernel-patch-20.18-17.0-1.vl7"
)
);
readykernel_execute_checks(checks:checks, severity:SECURITY_HOLE, release:"Virtuozzo-7");
The latest version of this script can be found in these locations depending on your platform:
- Linux / Unix:
/opt/nessus/lib/nessus/plugins/Virtuozzo_VZA-2017-027.nasl
- Windows:
C:\ProgramData\Tenable\Nessus\nessus\plugins\Virtuozzo_VZA-2017-027.nasl
- Mac OS X:
/Library/Nessus/run/lib/nessus/plugins/Virtuozzo_VZA-2017-027.nasl
Go back to menu.
How to Run
Here is how to run the Virtuozzo 7 : readykernel-patch (VZA-2017-027) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):
- Click to start a New Scan.
- Select Advanced Scan.
- Navigate to the Plugins tab.
- On the top right corner click to Disable All plugins.
- On the left side table select Virtuozzo Local Security Checks plugin family.
- On the right side table select Virtuozzo 7 : readykernel-patch (VZA-2017-027) plugin ID 99201.
- Specify the target on the Settings tab and click to Save the scan.
- 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 Virtuozzo_VZA-2017-027.nasl -t <IP/HOST>
Run the plugin with audit trail message on the console:
/opt/nessus/bin/nasl -a Virtuozzo_VZA-2017-027.nasl -t <IP/HOST>
Run the plugin with trace script execution written to the console (useful for debugging):
/opt/nessus/bin/nasl -T - Virtuozzo_VZA-2017-027.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 Virtuozzo_VZA-2017-027.nasl -t <IP/HOST>
Go back to menu.
References
See also:
- https://www.tenable.com/plugins/nessus/99201
- https://help.virtuozzo.com/customer/portal/articles/2781369
- http://www.nessus.org/u?2e3073ec
- http://www.nessus.org/u?4266c438
- http://www.nessus.org/u?a07655c0
- https://vulners.com/nessus/VIRTUOZZO_VZA-2017-027.NASL
- 102773 - Oracle Linux 6 / 7 : Unbreakable Enterprise kernel (ELSA-2017-3609)
- 102774 - OracleVM 3.4 : Unbreakable / etc (OVMSA-2017-0145) (Stack Clash)
- 103354 - SUSE SLES11 Security Update : kernel (SUSE-SU-2017:2525-1) (Stack Clash)
- 104371 - Oracle Linux 6 : Unbreakable Enterprise kernel (ELSA-2017-3637)
- 105145 - Oracle Linux 6 : Unbreakable Enterprise kernel (ELSA-2017-3658)
- 106469 - OracleVM 3.4 : Unbreakable / etc (OVMSA-2018-0015) (BlueBorne) (Meltdown) (Spectre) (Stack Clash)
- 110600 - RHEL 6 : kernel (RHSA-2018:1854) (Spectre)
- 110645 - CentOS 6 : kernel (CESA-2018:1854) (Spectre)
- 110701 - Oracle Linux 6 : kernel (ELSA-2018-1854)
- 110887 - Scientific Linux Security Update : kernel on SL6.x i386/x86_64 (20180619) (Spectre)
- 111860 - Photon OS 1.0: Krb5 / Linux PHSA-2017-0011 (deprecated)
- 121680 - Photon OS 1.0: Linux PHSA-2017-0011
- 124825 - EulerOS Virtualization 3.0.1.0 : kernel (EulerOS-SA-2019-1502)
- 124837 - EulerOS Virtualization for ARM 64 3.0.1.0 : kernel (EulerOS-SA-2019-1516)
- 127408 - NewStart CGSL MAIN 4.05 : kernel Multiple Vulnerabilities (NS-SA-2019-0143)
- 99197 - Ubuntu 12.04 LTS / 14.04 LTS / 16.04 LTS / 16.10 : linux, linux-aws, linux-gke, linux-raspi2, linux-snapdragon, linux-ti-omap4 vulnerability (USN-3256-1)
- 99198 - Ubuntu 12.04 LTS / 14.04 LTS / 16.04 LTS : linux-hwe, linux-lts-trusty, linux-lts-xenial vulnerability (USN-3256-2)
- 99423 - Fedora 25 : kernel (2017-26c9ecd7a4)
- 99424 - Fedora 24 : kernel (2017-8e7549fb91)
- 99733 - Debian DLA-922-1 : linux security update
- 99927 - openSUSE Security Update : the Linux Kernel (openSUSE-2017-532)
Version
This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file Virtuozzo_VZA-2017-027.nasl version 3.14. For more plugins, visit the Nessus Plugin Library.
Go back to menu.