Oracle Linux 7 : kernel (ELSA-2017-1842-1) (Stack Clash) - Nessus

Critical   Plugin ID: 102511

This page contains detailed information about the Oracle Linux 7 : kernel (ELSA-2017-1842-1) (Stack Clash) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 102511
Name: Oracle Linux 7 : kernel (ELSA-2017-1842-1) (Stack Clash)
Filename: oraclelinux_ELSA-2017-1842-1.nasl
Vulnerability Published: N/A
This Plugin Published: 2017-08-16
Last Modification Time: 2021-06-03
Plugin Version: 1.7
Plugin Type: local
Plugin Family: Oracle Linux Local Security Checks
Dependencies: ssh_get_info.nasl
Required KB Items [?]: Host/local_checks_enabled, Host/OracleLinux, Host/RedHat/release, Host/RedHat/rpm-list

Vulnerability Information


Severity: Critical
Vulnerability Published: N/A
Patch Published: 2017-08-15
CVE [?]: CVE-2014-7970, CVE-2015-8970, CVE-2016-3713, CVE-2016-6213, CVE-2016-6828, CVE-2016-7042, CVE-2016-7097, CVE-2016-7117, CVE-2016-7910, CVE-2016-8630, CVE-2016-8645, CVE-2016-8646, CVE-2016-8650, CVE-2016-8655, CVE-2016-9083, CVE-2016-9084, CVE-2016-9555, CVE-2016-9576, CVE-2016-9588, CVE-2016-9604, CVE-2016-9685, CVE-2016-9793, CVE-2016-9806, CVE-2016-10088, CVE-2016-10147, CVE-2016-10200, CVE-2016-10208, CVE-2017-2583, CVE-2017-2596, CVE-2017-2618, CVE-2017-2636, CVE-2017-2647, CVE-2017-2671, CVE-2017-5970, CVE-2017-5986, CVE-2017-6001, CVE-2017-6074, CVE-2017-6214, CVE-2017-6353, CVE-2017-6951, CVE-2017-7187, CVE-2017-7308, CVE-2017-7477, CVE-2017-7616, CVE-2017-7645, CVE-2017-7889, CVE-2017-7895, CVE-2017-8890, CVE-2017-9074, CVE-2017-9075, CVE-2017-9076, CVE-2017-9077, CVE-2017-1000364
CPE [?]: cpe:/o:oracle:linux:7, p-cpe:/a:oracle:linux:kernel, p-cpe:/a:oracle:linux:kernel-abi-whitelists, p-cpe:/a:oracle:linux:kernel-debug, p-cpe:/a:oracle:linux:kernel-debug-devel, p-cpe:/a:oracle:linux:kernel-devel, p-cpe:/a:oracle:linux:kernel-doc, p-cpe:/a:oracle:linux:kernel-headers, p-cpe:/a:oracle:linux:kernel-tools, p-cpe:/a:oracle:linux:kernel-tools-libs, p-cpe:/a:oracle:linux:kernel-tools-libs-devel, p-cpe:/a:oracle:linux:perf, p-cpe:/a:oracle:linux:python-perf
Exploited by Malware: True
In the News: True

Synopsis

The remote Oracle Linux host is missing one or more security updates.

Description

The remote Oracle Linux host is missing a security update for the kernel package(s).

Solution

Update the affected kernel packages.

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 Oracle Linux 7 : kernel (ELSA-2017-1842-1) (Stack Clash) vulnerability:

  1. Metasploit: exploit/linux/local/af_packet_packet_set_ring_priv_esc
    [AF_PACKET packet_set_ring Privilege Escalation]
  2. Metasploit: exploit/linux/local/af_packet_chocobo_root_priv_esc
    [AF_PACKET chocobo_root Privilege Escalation]
  3. Metasploit: exploit/solaris/local/rsh_stack_clash_priv_esc
    [Solaris RSH Stack Clash Privilege Escalation]
  4. Exploit-DB: exploits/linux/dos/40731.c
    [EDB-40731: Linux Kernel - TCP Related Read Use-After-Free]
  5. Exploit-DB: exploits/linux/dos/41457.c
    [EDB-41457: Linux Kernel 4.4.0 (Ubuntu) - DCCP Double-Free (PoC)]
  6. Exploit-DB: exploits/linux/local/41458.c
    [EDB-41458: Linux Kernel 4.4.0 (Ubuntu) - DCCP Double-Free Privilege Escalation]
  7. Exploit-DB: exploits/linux/local/41994.c
    [EDB-41994: Linux Kernel 4.8.0-41-generic (Ubuntu) - Packet Socket Local Privilege Escalation]
  8. Exploit-DB: exploits/linux/local/41995.c
    [EDB-41995: Linux Kernel 3.11 < 4.8 0 - 'SO_SNDBUFFORCE' / 'SO_RCVBUFFORCE' Local Privilege Escalation]
  9. 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)]
  10. Exploit-DB: exploits/linux/local/44696.rb
    [EDB-44696: Linux 4.4.0 < 4.4.0-53 - 'AF_PACKET chocobo_root' Local Privilege Escalation (Metasploit)]
  11. Exploit-DB: exploits/solaris/local/45625.rb
    [EDB-45625: Solaris - RSH Stack Clash Privilege Escalation (Metasploit)]
  12. 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]
  13. Exploit-DB: exploits/windows_x86-64/local/47170.c
    [EDB-47170: Linux Kernel 4.4.0-21 < 4.4.0-51 (Ubuntu 14.04/16.04 x64) - 'AF_PACKET' Race Condition Privilege Escalation]
  14. GitHub: https://github.com/Amet13/vulncontrol
    [CVE-2016-7097]
  15. GitHub: https://github.com/KosukeShimofuji/CVE-2016-7117
    [CVE-2016-7117]
  16. GitHub: https://github.com/Technoashofficial/kernel-exploitation-linux
    [CVE-2016-7117]
  17. GitHub: https://github.com/skbasava/Linux-Kernel-exploit
    [CVE-2016-7117]
  18. GitHub: https://github.com/xairy/linux-kernel-exploitation
    [CVE-2016-7117]
  19. GitHub: https://github.com/andrewwebber/kate
    [CVE-2016-7910]
  20. GitHub: https://github.com/RUB-SysSec/kAFL
    [CVE-2016-8650]
  21. GitHub: https://github.com/KosukeShimofuji/CVE-2016-8655
    [CVE-2016-8655: Linux af_packet.c race condition (local root)]
  22. GitHub: https://github.com/LakshmiDesai/CVE-2016-8655
    [CVE-2016-8655]
  23. GitHub: https://github.com/Metarget/metarget
    [CVE-2016-8655]
  24. GitHub: https://github.com/SeaJae/exploitPlayground
    [CVE-2016-8655]
  25. GitHub: https://github.com/Snoopy-Sec/Localroot-ALL-CVE
    [CVE-2016-8655]
  26. GitHub: https://github.com/Technoashofficial/kernel-exploitation-linux
    [CVE-2016-8655]
  27. GitHub: https://github.com/agkunkle/chocobo
    [CVE-2016-8655: Chocobo Root (CVE-2016-8655) Analysis]
  28. GitHub: https://github.com/anoaghost/Localroot_Compile
    [CVE-2016-8655]
  29. GitHub: https://github.com/bcoles/kernel-exploits
    [CVE-2016-8655]
  30. GitHub: https://github.com/bsauce/kernel-exploit-factory
    [CVE-2016-8655]
  31. GitHub: https://github.com/externalist/exploit_playground
    [CVE-2016-8655]
  32. GitHub: https://github.com/jondonas/linux-exploit-suggester-2
    [CVE-2016-8655]
  33. GitHub: https://github.com/likescam/exploit_playground_lists_androidCVE
    [CVE-2016-8655]
  34. GitHub: https://github.com/mzet-/linux-exploit-suggester
    [CVE-2016-8655]
  35. GitHub: https://github.com/n3t1nv4d3/kernel-exploits
    [CVE-2016-8655]
  36. GitHub: https://github.com/scarvell/cve-2016-8655
    [CVE-2016-8655: PoC for CVE-2016-8655 that causes a kernel panic]
  37. GitHub: https://github.com/skbasava/Linux-Kernel-exploit
    [CVE-2016-8655]
  38. GitHub: https://github.com/xairy/linux-kernel-exploitation
    [CVE-2016-8655]
  39. GitHub: https://github.com/xyongcn/exploit
    [CVE-2016-8655]
  40. GitHub: https://github.com/RedHatOfficial/rhsecapi
    [CVE-2016-9685]
  41. GitHub: https://github.com/RedHatProductSecurity/cve-pylib
    [CVE-2016-9685]
  42. GitHub: https://github.com/Al1ex/LinuxEelvation
    [CVE-2016-9793]
  43. GitHub: https://github.com/CKmaenn/kernel-exploits
    [CVE-2016-9793]
  44. GitHub: https://github.com/De4dCr0w/Linux-kernel-EoP-exp
    [CVE-2016-9793]
  45. GitHub: https://github.com/R0B1NL1N/Linux-Kernal-Exploits-m-
    [CVE-2016-9793]
  46. GitHub: https://github.com/R0B1NL1N/Linux-Kernel-Exploites
    [CVE-2016-9793]
  47. GitHub: https://github.com/Snoopy-Sec/Localroot-ALL-CVE
    [CVE-2016-9793]
  48. GitHub: https://github.com/amrelsadane123/Ecploit-kernel-4.10-linux-local
    [CVE-2016-9793]
  49. GitHub: https://github.com/anoaghost/Localroot_Compile
    [CVE-2016-9793]
  50. GitHub: https://github.com/bcoles/kernel-exploits
    [CVE-2016-9793]
  51. GitHub: https://github.com/bsauce/kernel-exploit-factory
    [CVE-2016-9793]
  52. GitHub: https://github.com/bsauce/kernel-security-learning
    [CVE-2016-9793]
  53. GitHub: https://github.com/h4x0r-dz/local-root-exploit-
    [CVE-2016-9793]
  54. GitHub: https://github.com/jiayy/android_vuln_poc-exp
    [CVE-2016-9793]
  55. GitHub: https://github.com/qiantu88/Linux--exp
    [CVE-2016-9793]
  56. GitHub: https://github.com/rakjong/LinuxElevation
    [CVE-2016-9793]
  57. GitHub: https://github.com/xairy/kernel-exploits
    [CVE-2016-9793]
  58. GitHub: https://github.com/xairy/kernel-exploits/tree/master/CVE-2016-9793
    [CVE-2016-9793]
  59. GitHub: https://github.com/xyongcn/exploit
    [CVE-2016-9793]
  60. GitHub: https://github.com/wcventure/PERIOD
    [CVE-2016-9806]
  61. GitHub: https://a13xp0p0v.github.io/2017/03/24/CVE-2017-2636.html
    [CVE-2017-2636]
  62. GitHub: https://github.com/Technoashofficial/kernel-exploitation-linux
    [CVE-2017-2636]
  63. GitHub: https://github.com/integeruser/on-pwning
    [CVE-2017-2636]
  64. GitHub: https://github.com/skbasava/Linux-Kernel-exploit
    [CVE-2017-2636]
  65. GitHub: https://github.com/snorez/blog
    [CVE-2017-2636]
  66. GitHub: https://github.com/snorez/exploits
    [CVE-2017-2636]
  67. GitHub: https://github.com/xairy/linux-kernel-exploitation
    [CVE-2017-2636]
  68. GitHub: https://github.com/xyongcn/exploit
    [CVE-2017-2636]
  69. GitHub: https://github.com/homjxi0e/CVE-2017-2671
    [CVE-2017-2671]
  70. GitHub: https://github.com/Amet13/vulncontrol
    [CVE-2017-5986]
  71. GitHub: https://github.com/Amet13/vulncontrol
    [CVE-2017-6001]
  72. GitHub: https://github.com/Al1ex/LinuxEelvation
    [CVE-2017-6074]
  73. GitHub: https://github.com/Amet13/vulncontrol
    [CVE-2017-6074]
  74. GitHub: https://github.com/AtaraxiaCoLtd/vlun_report
    [CVE-2017-6074]
  75. GitHub: https://github.com/BimsaraMalinda/Linux-Kernel-4.4.0-Ubuntu---DCCP-Double-Free-Privilege-Escalation-CVE-2017-6074
    [CVE-2017-6074]
  76. GitHub: https://github.com/CKmaenn/kernel-exploits
    [CVE-2017-6074]
  77. GitHub: https://github.com/De4dCr0w/Linux-kernel-EoP-exp
    [CVE-2017-6074]
  78. GitHub: https://github.com/Dk0n9/linux_exploit
    [CVE-2017-6074]
  79. GitHub: https://github.com/Metarget/metarget
    [CVE-2017-6074]
  80. GitHub: https://github.com/R0B1NL1N/Linux-Kernal-Exploits-m-
    [CVE-2017-6074]
  81. GitHub: https://github.com/R0B1NL1N/Linux-Kernel-Exploites
    [CVE-2017-6074]
  82. GitHub: https://github.com/Snoopy-Sec/Localroot-ALL-CVE
    [CVE-2017-6074]
  83. GitHub: https://github.com/Technoashofficial/kernel-exploitation-linux
    [CVE-2017-6074]
  84. GitHub: https://github.com/WhaleShark-Team/murasame
    [CVE-2017-6074]
  85. GitHub: https://github.com/amrelsadane123/Ecploit-kernel-4.10-linux-local
    [CVE-2017-6074]
  86. GitHub: https://github.com/anoaghost/Localroot_Compile
    [CVE-2017-6074]
  87. GitHub: https://github.com/bsauce/kernel-exploit-factory
    [CVE-2017-6074]
  88. GitHub: https://github.com/bsauce/kernel-security-learning
    [CVE-2017-6074]
  89. GitHub: https://github.com/ferovap/Tools
    [CVE-2017-6074]
  90. GitHub: https://github.com/h4x0r-dz/local-root-exploit-
    [CVE-2017-6074]
  91. GitHub: https://github.com/jiayy/android_vuln_poc-exp
    [CVE-2017-6074]
  92. GitHub: https://github.com/kaosagnt/ansible-everyday
    [CVE-2017-6074]
  93. GitHub: https://github.com/qiantu88/Linux--exp
    [CVE-2017-6074]
  94. GitHub: https://github.com/rakjong/LinuxElevation
    [CVE-2017-6074]
  95. GitHub: https://github.com/skbasava/Linux-Kernel-exploit
    [CVE-2017-6074]
  96. GitHub: https://github.com/spencerdodd/kernelpop
    [CVE-2017-6074]
  97. GitHub: https://github.com/xairy/kernel-exploits
    [CVE-2017-6074]
  98. GitHub: https://github.com/xairy/kernel-exploits/tree/master/CVE-2017-6074
    [CVE-2017-6074]
  99. GitHub: https://github.com/xairy/linux-kernel-exploitation
    [CVE-2017-6074]
  100. GitHub: https://github.com/xyongcn/exploit
    [CVE-2017-6074]
  101. GitHub: https://github.com/Al1ex/LinuxEelvation
    [CVE-2017-7308]
  102. GitHub: https://github.com/CKmaenn/kernel-exploits
    [CVE-2017-7308]
  103. GitHub: https://github.com/De4dCr0w/Linux-kernel-EoP-exp
    [CVE-2017-7308]
  104. GitHub: https://github.com/Metarget/metarget
    [CVE-2017-7308]
  105. GitHub: https://github.com/R0B1NL1N/Linux-Kernal-Exploits-m-
    [CVE-2017-7308]
  106. GitHub: https://github.com/R0B1NL1N/Linux-Kernel-Exploites
    [CVE-2017-7308]
  107. GitHub: https://github.com/RLee063/RLee063
    [CVE-2017-7308]
  108. GitHub: https://github.com/Snoopy-Sec/Localroot-ALL-CVE
    [CVE-2017-7308]
  109. GitHub: https://github.com/Technoashofficial/kernel-exploitation-linux
    [CVE-2017-7308]
  110. GitHub: https://github.com/amrelsadane123/Ecploit-kernel-4.10-linux-local
    [CVE-2017-7308]
  111. GitHub: https://github.com/anoaghost/Localroot_Compile
    [CVE-2017-7308]
  112. GitHub: https://github.com/bcoles/kernel-exploits
    [CVE-2017-7308]
  113. GitHub: https://github.com/bitdefender/vbh_sample
    [CVE-2017-7308]
  114. GitHub: https://github.com/bsauce/kernel-exploit-factory
    [CVE-2017-7308]
  115. GitHub: https://github.com/bsauce/kernel-security-learning
    [CVE-2017-7308]
  116. GitHub: https://github.com/ferovap/Tools
    [CVE-2017-7308]
  117. GitHub: https://github.com/h4x0r-dz/local-root-exploit-
    [CVE-2017-7308]
  118. GitHub: https://github.com/jiayy/android_vuln_poc-exp
    [CVE-2017-7308]
  119. GitHub: https://github.com/n3t1nv4d3/kernel-exploits
    [CVE-2017-7308]
  120. GitHub: https://github.com/qiantu88/Linux--exp
    [CVE-2017-7308]
  121. GitHub: https://github.com/rakjong/LinuxElevation
    [CVE-2017-7308]
  122. GitHub: https://github.com/skbasava/Linux-Kernel-exploit
    [CVE-2017-7308]
  123. GitHub: https://github.com/spencerdodd/kernelpop
    [CVE-2017-7308]
  124. GitHub: https://github.com/xairy/kernel-exploits
    [CVE-2017-7308]
  125. GitHub: https://github.com/xairy/kernel-exploits/tree/master/CVE-2017-7308
    [CVE-2017-7308]
  126. GitHub: https://github.com/xairy/linux-kernel-exploitation
    [CVE-2017-7308]
  127. GitHub: https://github.com/Technoashofficial/kernel-exploitation-linux
    [CVE-2017-7616]
  128. GitHub: https://github.com/skbasava/Linux-Kernel-exploit
    [CVE-2017-7616]
  129. GitHub: https://github.com/xairy/linux-kernel-exploitation
    [CVE-2017-7616]
  130. GitHub: https://github.com/7043mcgeep/cve-2017-8890-msf
    [CVE-2017-8890: For Metasploit pull request]
  131. GitHub: https://github.com/Al1ex/LinuxEelvation
    [CVE-2017-8890]
  132. GitHub: https://github.com/bsauce/kernel-exploit-factory
    [CVE-2017-8890]
  133. GitHub: https://github.com/bsauce/kernel-security-learning
    [CVE-2017-8890]
  134. GitHub: https://github.com/hardenedlinux/offensive_poc/tree/master/CVE-2017-8890
    [CVE-2017-8890]
  135. GitHub: https://github.com/mudongliang/LinuxFlaw/tree/master/CVE-2017-8890
    [CVE-2017-8890]
  136. GitHub: https://github.com/snorez/exploits
    [CVE-2017-8890]
  137. GitHub: https://github.com/tangsilian/android-vuln
    [CVE-2017-8890]
  138. GitHub: https://github.com/thinkycx/CVE-2017-8890
    [CVE-2017-8890]
  139. GitHub: https://github.com/pelucky/Read-Wechat-Subscription-in-email
    [CVE-2017-1000364]
  140. GitHub: https://github.com/martinmullins/CVE-2016-8655_Android
    [CVE-2016-8655: Android attempt at PoC CVE-2016-8655]
  141. GitHub: https://github.com/alexzorin/cve-2017-2636-el
    [CVE-2017-2636: Ansible role for workaround for CVE-2017-2636 (Red Hat) - ...]
  142. GitHub: https://github.com/beraphin/CVE-2017-8890
    [CVE-2017-8890: None]

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:N/C:C/I:C/A:C/E:H/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:8.7 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.7 (High)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C
CVSS Base Score:9.8 (Critical)
Impact Subscore:5.9
Exploitability Subscore:3.9
CVSS Temporal Score:9.4 (Critical)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:9.4 (Critical)
STIG Severity [?]: I
STIG Risk Rating: High

Go back to menu.

Plugin Source


This is the oraclelinux_ELSA-2017-1842-1.nasl nessus plugin source code. This script is Copyright (C) 2017-2021 Tenable Network Security, Inc.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# The package checks in this plugin were extracted from Oracle Linux
# Security Advisory ELSA-2017-1842-1.
#

if (NASL_LEVEL < 3000) exit(0);

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(102511);
  script_version("1.7");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/06/03");

  script_cve_id("CVE-2014-7970", "CVE-2015-8970", "CVE-2016-10088", "CVE-2016-10147", "CVE-2016-10200", "CVE-2016-10208", "CVE-2016-3713", "CVE-2016-6213", "CVE-2016-6828", "CVE-2016-7042", "CVE-2016-7097", "CVE-2016-7117", "CVE-2016-7910", "CVE-2016-8630", "CVE-2016-8645", "CVE-2016-8646", "CVE-2016-8650", "CVE-2016-8655", "CVE-2016-9083", "CVE-2016-9084", "CVE-2016-9555", "CVE-2016-9576", "CVE-2016-9588", "CVE-2016-9604", "CVE-2016-9685", "CVE-2016-9793", "CVE-2016-9806", "CVE-2017-1000364", "CVE-2017-2583", "CVE-2017-2596", "CVE-2017-2618", "CVE-2017-2636", "CVE-2017-2647", "CVE-2017-2671", "CVE-2017-5970", "CVE-2017-5986", "CVE-2017-6001", "CVE-2017-6074", "CVE-2017-6214", "CVE-2017-6353", "CVE-2017-6951", "CVE-2017-7187", "CVE-2017-7308", "CVE-2017-7477", "CVE-2017-7616", "CVE-2017-7645", "CVE-2017-7889", "CVE-2017-7895", "CVE-2017-8890", "CVE-2017-9074", "CVE-2017-9075", "CVE-2017-9076", "CVE-2017-9077");
  script_xref(name:"IAVA", value:"2017-A-0288-S");

  script_name(english:"Oracle Linux 7 : kernel (ELSA-2017-1842-1) (Stack Clash)");
  script_summary(english:"Checks rpm output for the updated packages");

  script_set_attribute(
    attribute:"synopsis", 
    value:"The remote Oracle Linux host is missing one or more security updates."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"The remote Oracle Linux host is missing a security update for
the kernel package(s)."
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://oss.oracle.com/pipermail/el-errata/2017-August/007125.html"
  );
  script_set_attribute(
    attribute:"solution", 
    value:"Update the affected kernel packages."
  );
  script_set_cvss_base_vector("CVSS2#AV:N/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:N/AC:L/PR:N/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:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:kernel");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:kernel-abi-whitelists");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:kernel-debug");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:kernel-debug-devel");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:kernel-devel");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:kernel-doc");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:kernel-headers");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:kernel-tools");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:kernel-tools-libs");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:kernel-tools-libs-devel");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:perf");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:python-perf");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:oracle:linux:7");

  script_set_attribute(attribute:"patch_publication_date", value:"2017/08/15");
  script_set_attribute(attribute:"in_the_news", value:"true");
  script_set_attribute(attribute:"plugin_publication_date", value:"2017/08/16");
  script_set_attribute(attribute:"stig_severity", value:"I");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2017-2021 Tenable Network Security, Inc.");
  script_family(english:"Oracle Linux Local Security Checks");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/OracleLinux", "Host/RedHat/release", "Host/RedHat/rpm-list");

  exit(0);
}


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


if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
if (!get_kb_item("Host/OracleLinux")) audit(AUDIT_OS_NOT, "Oracle Linux");
release = get_kb_item("Host/RedHat/release");
if (isnull(release) || !eregmatch(pattern: "Oracle (?:Linux Server|Enterprise Linux)", string:release)) audit(AUDIT_OS_NOT, "Oracle Linux");
os_ver = eregmatch(pattern: "Oracle (?:Linux Server|Enterprise Linux) .*release ([0-9]+(\.[0-9]+)?)", string:release);
if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Oracle Linux");
os_ver = os_ver[1];
if (! ereg(pattern:"^7([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Oracle Linux 7", "Oracle Linux " + os_ver);

if (!get_kb_item("Host/RedHat/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, "Oracle Linux", cpu);
if ("x86_64" >!< cpu) audit(AUDIT_ARCH_NOT, "x86_64", cpu);

flag = 0;
if (rpm_exists(release:"EL7", rpm:"kernel-3.10.0") && rpm_check(release:"EL7", cpu:"x86_64", reference:"kernel-3.10.0-693.0.0.0.1.el7")) flag++;
if (rpm_exists(release:"EL7", rpm:"kernel-abi-whitelists-3.10.0") && rpm_check(release:"EL7", cpu:"x86_64", reference:"kernel-abi-whitelists-3.10.0-693.0.0.0.1.el7")) flag++;
if (rpm_exists(release:"EL7", rpm:"kernel-debug-3.10.0") && rpm_check(release:"EL7", cpu:"x86_64", reference:"kernel-debug-3.10.0-693.0.0.0.1.el7")) flag++;
if (rpm_exists(release:"EL7", rpm:"kernel-debug-devel-3.10.0") && rpm_check(release:"EL7", cpu:"x86_64", reference:"kernel-debug-devel-3.10.0-693.0.0.0.1.el7")) flag++;
if (rpm_exists(release:"EL7", rpm:"kernel-devel-3.10.0") && rpm_check(release:"EL7", cpu:"x86_64", reference:"kernel-devel-3.10.0-693.0.0.0.1.el7")) flag++;
if (rpm_exists(release:"EL7", rpm:"kernel-doc-3.10.0") && rpm_check(release:"EL7", cpu:"x86_64", reference:"kernel-doc-3.10.0-693.0.0.0.1.el7")) flag++;
if (rpm_exists(release:"EL7", rpm:"kernel-headers-3.10.0") && rpm_check(release:"EL7", cpu:"x86_64", reference:"kernel-headers-3.10.0-693.0.0.0.1.el7")) flag++;
if (rpm_exists(release:"EL7", rpm:"kernel-tools-3.10.0") && rpm_check(release:"EL7", cpu:"x86_64", reference:"kernel-tools-3.10.0-693.0.0.0.1.el7")) flag++;
if (rpm_exists(release:"EL7", rpm:"kernel-tools-libs-3.10.0") && rpm_check(release:"EL7", cpu:"x86_64", reference:"kernel-tools-libs-3.10.0-693.0.0.0.1.el7")) flag++;
if (rpm_exists(release:"EL7", rpm:"kernel-tools-libs-devel-3.10.0") && rpm_check(release:"EL7", cpu:"x86_64", reference:"kernel-tools-libs-devel-3.10.0-693.0.0.0.1.el7")) flag++;
if (rpm_check(release:"EL7", cpu:"x86_64", reference:"perf-3.10.0-693.0.0.0.1.el7")) flag++;
if (rpm_check(release:"EL7", cpu:"x86_64", reference:"python-perf-3.10.0-693.0.0.0.1.el7")) flag++;


if (flag)
{
  if (report_verbosity > 0) security_hole(port:0, extra:rpm_report_get());
  else security_hole(0);
  exit(0);
}
else
{
  tested = pkg_tests_get();
  if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
  else audit(AUDIT_PACKAGE_NOT_INSTALLED, "affected kernel");
}

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

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/oraclelinux_ELSA-2017-1842-1.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\oraclelinux_ELSA-2017-1842-1.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/oraclelinux_ELSA-2017-1842-1.nasl

Go back to menu.

How to Run


Here is how to run the Oracle Linux 7 : kernel (ELSA-2017-1842-1) (Stack Clash) 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 Oracle Linux Local Security Checks plugin family.
  6. On the right side table select Oracle Linux 7 : kernel (ELSA-2017-1842-1) (Stack Clash) plugin ID 102511.
  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 oraclelinux_ELSA-2017-1842-1.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a oraclelinux_ELSA-2017-1842-1.nasl -t <IP/HOST>

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

/opt/nessus/bin/nasl -T - oraclelinux_ELSA-2017-1842-1.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 oraclelinux_ELSA-2017-1842-1.nasl -t <IP/HOST>

Go back to menu.

References


IAVA | Information Assurance Vulnerability Alert:
  • 2017-A-0288-S
See also: Similar and related Nessus plugins:
  • 103673 - FireEye Operating System Multiple Vulnerabilities (AX < 7.7.7 / EX < 8.0.1)
  • 101138 - Oracle Linux 7 : kernel (ELSA-2017-1615-1) (Stack Clash)
  • 100912 - SUSE SLES11 Security Update : kernel (SUSE-SU-2017:1613-1) (Stack Clash)
  • 100987 - Ubuntu 12.04 LTS : linux-lts-trusty vulnerability (USN-3335-2)
  • 100990 - Ubuntu 12.04 LTS : linux vulnerabilities (USN-3338-1)
  • 101149 - Ubuntu 12.04 LTS : linux regression (USN-3338-2) (Stack Clash)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file oraclelinux_ELSA-2017-1842-1.nasl version 1.7. For more plugins, visit the Nessus Plugin Library.

Go back to menu.