Fedora 23 : kernel (2016-06f1572324) - Nessus

High   Plugin ID: 92055

This page contains detailed information about the Fedora 23 : kernel (2016-06f1572324) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 92055
Name: Fedora 23 : kernel (2016-06f1572324)
Filename: fedora_2016-06f1572324.nasl
Vulnerability Published: 2016-05-23
This Plugin Published: 2016-07-14
Last Modification Time: 2021-01-11
Plugin Version: 1.10
Plugin Type: local
Plugin Family: Fedora Local Security Checks
Dependencies: linux_alt_patch_detect.nasl, ssh_get_info.nasl
Required KB Items [?]: Host/local_checks_enabled, Host/RedHat/release, Host/RedHat/rpm-list

Vulnerability Information


Severity: High
Vulnerability Published: 2016-05-23
Patch Published: 2016-06-02
CVE [?]: CVE-2016-0758, CVE-2016-3713, CVE-2016-4440, CVE-2016-4485, CVE-2016-4486, CVE-2016-4557, CVE-2016-4558, CVE-2016-4569, CVE-2016-4581, CVE-2016-4913
CPE [?]: cpe:/o:fedoraproject:fedora:23, p-cpe:/a:fedoraproject:fedora:kernel

Synopsis

The remote Fedora host is missing a security update.

Description

The 4.5.5 stable update contains a number of important fixes across the tree.

----

The 4.5.4 stable update contains a number of important fixes across the tree.

----

The 4.5.3 stable rebase contains enhanced hardware support, additional features, and a number of important fixes across the tree.

Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.

Solution

Update the affected kernel package.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the Fedora 23 : kernel (2016-06f1572324) vulnerability:

  1. Metasploit: exploit/linux/local/bpf_priv_esc
    [Linux BPF doubleput UAF Privilege Escalation]
  2. Exploit-DB: exploits/linux/local/40759.rb
    [EDB-40759: Linux Kernel 4.4 (Ubuntu 16.04) - 'BPF' Local Privilege Escalation (Metasploit)]
  3. Exploit-DB: exploits/linux/local/46006.c
    [EDB-46006: Linux Kernel 4.4 - 'rtnetlink' Stack Memory Disclosure]
  4. GitHub: https://github.com/andrewwebber/kate
    [CVE-2016-0758]
  5. GitHub: https://github.com/bcoles/kasld
    [CVE-2016-4486]
  6. GitHub: https://github.com/dylandreimerink/gobpfld
    [CVE-2016-4557]
  7. GitHub: https://github.com/mudongliang/LinuxFlaw/tree/master/CVE-2016-4557
    [CVE-2016-4557]
  8. GitHub: https://github.com/bcoles/kasld
    [CVE-2016-4569]

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:F/RL:OF/RC:C
CVSS Base Score:7.2 (High)
Impact Subscore:10.0
Exploitability Subscore:3.9
CVSS Temporal Score:6.0 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.0 (Medium)
CVSS V3 Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C
CVSS Base Score:7.8 (High)
Impact Subscore:5.9
Exploitability Subscore:1.8
CVSS Temporal Score:7.2 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.2 (High)

Go back to menu.

Plugin Source


This is the fedora_2016-06f1572324.nasl nessus plugin source code. This script is Copyright (C) 2016-2021 and is owned by Tenable, Inc. or an Affiliate thereof.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were  
# extracted from Fedora Security Advisory FEDORA-2016-06f1572324.
#

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

if (description)
{
  script_id(92055);
  script_version("1.10");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/11");

  script_cve_id("CVE-2016-0758", "CVE-2016-3713", "CVE-2016-4440", "CVE-2016-4485", "CVE-2016-4486", "CVE-2016-4557", "CVE-2016-4558", "CVE-2016-4569", "CVE-2016-4581", "CVE-2016-4913");
  script_xref(name:"FEDORA", value:"2016-06f1572324");

  script_name(english:"Fedora 23 : kernel (2016-06f1572324)");
  script_summary(english:"Checks rpm output for the updated package.");

  script_set_attribute(
    attribute:"synopsis", 
    value:"The remote Fedora host is missing a security update."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"The 4.5.5 stable update contains a number of important fixes across
the tree.

----

The 4.5.4 stable update contains a number of important fixes across
the tree.

----

The 4.5.3 stable rebase contains enhanced hardware support, additional
features, and a number of important fixes across the tree.

Note that Tenable Network Security has extracted the preceding
description block directly from the Fedora update system website.
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://bodhi.fedoraproject.org/updates/FEDORA-2016-06f1572324"
  );
  script_set_attribute(
    attribute:"solution", 
    value:"Update the affected kernel package."
  );
  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:F/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:F/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:"metasploit_name", value:'Linux BPF doubleput UAF 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:fedoraproject:fedora:kernel");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:23");

  script_set_attribute(attribute:"vuln_publication_date", value:"2016/05/23");
  script_set_attribute(attribute:"patch_publication_date", value:"2016/06/02");
  script_set_attribute(attribute:"plugin_publication_date", value:"2016/07/14");
  script_set_attribute(attribute:"generated_plugin", value:"current");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2016-2021 and is owned by Tenable, Inc. or an Affiliate thereof.");
  script_family(english:"Fedora Local Security Checks");

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

  exit(0);
}


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


if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
release = get_kb_item("Host/RedHat/release");
if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora");
os_ver = pregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
os_ver = os_ver[1];
if (! preg(pattern:"^23([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 23", "Fedora " + 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, "Fedora", cpu);

if (get_one_kb_item("Host/ksplice/kernel-cves"))
{
  rm_kb_item(name:"Host/uptrack-uname-r");
  cve_list = make_list("CVE-2016-0758", "CVE-2016-3713", "CVE-2016-4440", "CVE-2016-4485", "CVE-2016-4486", "CVE-2016-4557", "CVE-2016-4558", "CVE-2016-4569", "CVE-2016-4581", "CVE-2016-4913");
  if (ksplice_cves_check(cve_list))
  {
    audit(AUDIT_PATCH_INSTALLED, "KSplice hotfix for FEDORA-2016-06f1572324");
  }
  else
  {
    __rpm_report = ksplice_reporting_text();
  }
}

flag = 0;
if (rpm_check(release:"FC23", reference:"kernel-4.5.5-201.fc23")) flag++;


if (flag)
{
  security_report_v4(
    port       : 0,
    severity   : SECURITY_HOLE,
    extra      : rpm_report_get()
  );
  exit(0);
}
else
{
  tested = pkg_tests_get();
  if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
  else audit(AUDIT_PACKAGE_NOT_INSTALLED, "kernel");
}

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

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

Go back to menu.

How to Run


Here is how to run the Fedora 23 : kernel (2016-06f1572324) 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 Fedora Local Security Checks plugin family.
  6. On the right side table select Fedora 23 : kernel (2016-06f1572324) plugin ID 92055.
  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 fedora_2016-06f1572324.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a fedora_2016-06f1572324.nasl -t <IP/HOST>

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

/opt/nessus/bin/nasl -T - fedora_2016-06f1572324.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 fedora_2016-06f1572324.nasl -t <IP/HOST>

Go back to menu.

References


Fedora Security Update: See also: Similar and related Nessus plugins:
  • 91569 - Ubuntu 16.04 LTS : linux-raspi2 vulnerabilities (USN-3007-1)
  • 91687 - Debian DLA-516-1 : linux security update
  • 91736 - openSUSE Security Update : the Linux Kernel (openSUSE-2016-753)
  • 91873 - Ubuntu 16.04 LTS : linux vulnerabilities (USN-3016-1)
  • 91874 - Ubuntu 16.04 LTS : linux-raspi2 vulnerabilities (USN-3016-2)
  • 91875 - Ubuntu 16.04 LTS : linux-snapdragon vulnerabilities (USN-3016-3)
  • 91876 - Ubuntu 14.04 LTS : linux-lts-xenial vulnerabilities (USN-3016-4)
  • 91877 - Ubuntu 15.10 : linux vulnerabilities (USN-3017-1)
  • 91878 - Ubuntu 15.10 : linux-raspi2 vulnerabilities (USN-3017-2)
  • 91879 - Ubuntu 14.04 LTS : linux-lts-wily vulnerabilities (USN-3017-3)
  • 91880 - Ubuntu 14.04 LTS : linux vulnerabilities (USN-3018-1)
  • 91881 - Ubuntu 12.04 LTS : linux-lts-trusty vulnerabilities (USN-3018-2)
  • 91882 - Ubuntu 14.04 LTS : linux-lts-utopic vulnerabilities (USN-3019-1)
  • 91883 - Ubuntu 14.04 LTS : linux-lts-vivid vulnerabilities (USN-3020-1)
  • 91884 - Ubuntu 12.04 LTS : linux vulnerabilities (USN-3021-1)
  • 91886 - Debian DSA-3607-1 : linux - security update
  • 92007 - openSUSE Security Update : the Linux Kernel (openSUSE-2016-862)
  • 92123 - Fedora 22 : kernel (2016-84fdc82b74)
  • 92133 - Fedora 22 : kernel (2016-a159c484e4)
  • 92195 - Fedora 24 : kernel (2016-ef973efab7)
  • 92211 - Fedora 24 : kernel (2016-f8739a80b0)
  • 93104 - openSUSE Security Update : the Linux Kernel (openSUSE-2016-1015)
  • 93148 - Oracle Linux 6 / 7 : Unbreakable Enterprise kernel (ELSA-2016-3596)
  • 93164 - SUSE SLES11 Security Update : kernel (SUSE-SU-2016:1672-1)
  • 93165 - SUSE SLED12 / SLES12 Security Update : kernel (SUSE-SU-2016:1690-1)
  • 93168 - SUSE SLED12 / SLES12 Security Update : kernel (SUSE-SU-2016:1696-1)
  • 93216 - openSUSE Security Update : the Linux Kernel (openSUSE-2016-1029)
  • 93270 - SUSE SLES12 Security Update : kernel (SUSE-SU-2016:1995-1)
  • 93275 - SUSE SLES12 Security Update : kernel (SUSE-SU-2016:2001-1)
  • 93276 - SUSE SLES12 Security Update : kernel (SUSE-SU-2016:2002-1)
  • 93277 - SUSE SLES12 Security Update : kernel (SUSE-SU-2016:2005-1)
  • 93278 - SUSE SLES12 Security Update : kernel (SUSE-SU-2016:2006-1)
  • 93280 - SUSE SLES12 Security Update : kernel (SUSE-SU-2016:2010-1)
  • 93283 - SUSE SLES12 Security Update : kernel (SUSE-SU-2016:2014-1)

Version


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

Go back to menu.