CVEdetails.com the ultimate security vulnerability data source
(e.g.: CVE-2009-1234 or 2010-1234 or 20101234)
Log In   Register
Vulnerability Feeds & WidgetsNew   www.itsecdb.com  

Vulnerability Details : CVE-2016-4557

The replace_map_fd_with_map_ptr function in kernel/bpf/verifier.c in the Linux kernel before 4.5.5 does not properly maintain an fd data structure, which allows local users to gain privileges or cause a denial of service (use-after-free) via crafted BPF instructions that reference an incorrect file descriptor.
Publish Date : 2016-05-23 Last Update Date : 2017-09-02
Search Twitter   Search YouTube   Search Google

- CVSS Scores & Vulnerability Types

CVSS Score
7.2
Confidentiality Impact Complete (There is total information disclosure, resulting in all system files being revealed.)
Integrity Impact Complete (There is a total compromise of system integrity. There is a complete loss of system protection, resulting in the entire system being compromised.)
Availability Impact Complete (There is a total shutdown of the affected resource. The attacker can render the resource completely unavailable.)
Access Complexity Low (Specialized access conditions or extenuating circumstances do not exist. Very little knowledge or skill is required to exploit. )
Authentication Not required (Authentication is not required to exploit the vulnerability.)
Gained Access None
Vulnerability Type(s) Denial Of ServiceGain privileges
CWE ID CWE id is not defined for this vulnerability

- Products Affected By CVE-2016-4557

# Product Type Vendor Product Version Update Edition Language
1 OS Linux Linux Kernel 4.5.4 Version Details Vulnerabilities

- Number Of Affected Versions By Product

Vendor Product Vulnerable Versions
Linux Linux Kernel 1

- References For CVE-2016-4557

https://www.exploit-db.com/exploits/40759/
EXPLOIT-DB 40759
https://bugs.chromium.org/p/project-zero/issues/detail?id=808
https://bugs.debian.org/823603 CONFIRM
https://github.com/torvalds/linux/commit/8358b02bf67d3a5d8a825070e1aa73f25fb2e4c7 CONFIRM
https://bugzilla.redhat.com/show_bug.cgi?id=1334307 CONFIRM
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=8358b02bf67d3a5d8a825070e1aa73f25fb2e4c7 CONFIRM
http://www.openwall.com/lists/oss-security/2016/05/06/4
MLIST [oss-security] 20160506 CVE Requests: Linux: BPF flaws (one use-after-free / local root privilege escalation)
http://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.5.5 CONFIRM
http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00044.html
SUSE openSUSE-SU-2016:1641

- Metasploit Modules Related To CVE-2016-4557

Linux BPF doubleput UAF Privilege Escalation
Linux kernel 4.4 < 4.5.5 extended Berkeley Packet Filter (eBPF) does not properly reference count file descriptors, resulting in a use-after-free, which can be abused to escalate privileges. The target system must be compiled with `CONFIG_BPF_SYSCALL` and must not have `kernel.unprivileged_bpf_disabled` set to 1. This module has been tested successfully on: Ubuntu 16.04 (x64) kernel 4.4.0-21-generic (default kernel); Ubuntu 16.04 (x64) kernel 4.4.0-38-generic; Ubuntu 16.04 (x64) kernel 4.4.0-42-generic; Ubuntu 16.04 (x64) kernel 4.4.0-98-generic; Ubuntu 16.04 (x64) kernel 4.4.0-140-generic.
Module type : exploit Rank : good Platforms : Linux


CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site. OVAL is a registered trademark of The MITRE Corporation and the authoritative source of OVAL content is MITRE's OVAL web site.
Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.