Exploit database

Vulnerability

CVE-2017-1000112

Vulnerability details

Score
7.0
Severity
high

CVSS 3.1 · NVD

Vector string

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Description

Linux kernel: Exploitable memory corruption due to UFO to non-UFO path switch. When building a UFO packet with MSG_MORE __ip_append_data() calls ip_ufo_append_data() to append. However in between two send() calls, the append path can be switched from UFO to non-UFO one, which leads to a memory corruption. In case UFO packet lengths exceeds MTU, copy = maxfraglen - skb->len becomes negative on the non-UFO path and the branch to allocate new skb is taken. This triggers fragmentation and computation of fraggap = skb_prev->len - maxfraglen. Fraggap can exceed MTU, causing copy = datalen - transhdrlen - fraggap to become negative. Subsequently skb_copy_and_csum_bits() writes out-of-bounds. A similar issue is present in IPv6 code. The bug was introduced in e89e9cf539a2 ("[IPv4/IPv6]: UFO Scatter-gather approach") on Oct 18 2005.

CVE Program

Exploit source choices

22 sources
Linux Kernel UDP Fragmentation Offset (UFO) Privilege Escalation
MSF-linux--local--ufo_privilege_escalationMetasploitLinux / remote

This module attempts to gain root privileges on Linux systems by abusing UDP Fragmentation Offload (UFO). This exploit targets only systems using Ubuntu (Trusty / Xenial) kernels 4.4.0-21 <= 4.4.0-89 and 4.8.0-34 <= 4.8.0-58, including Linux distros based on Ubuntu, such as Linux Mint. The target system must have unprivileged user namespaces enabled and SMAP disabled. Bypasses for SMEP and KASLR are included. Failed exploitation may crash the kernel. This module has been tested successfully on various Ubuntu and Linux Mint systems, including: Ubuntu 14.04.5 4.4.0-31-generic x64 Desktop; Ubuntu 16.04 4.8.0-53-generic; Linux Mint 17.3 4.4.0-89-generic; Linux Mint 18 4.8.0-58-generic

2017-08-10ufo_privilege_escalation.rb
bsauce/kernel-exploit-factory
GH-19aa051ff5153014d6646f547e3c4467GitHubUnofficial GitHub source

Linux kernel CVE exploit analysis report and relative debug environment. You don't need to compile Linux kernel and configure your environment anymore.

2020-12-11262 files · 1,308 stars
bcoles/kernel-exploits
GH-59c87a82c96b5678d7b3110a0cf81c5fGitHubUnofficial GitHub source

Various kernel exploits

2018-05-0518 files · 813 stars
bsauce/kernel-security-learning
GH-c4865ec2b4e2c29d85b0e20b1503912fGitHubUnofficial GitHub source

Anything about kernel security. CTF kernel pwn, kernel exploit, kernel fuzz and kernel defense paper, kernel debugging technique, kernel CVE debug.

2019-11-2798 files · 783 stars
al1ex/linuxeelvation
GH-82dd0da071ea66f05194b9f200dbcaeeGitHubUnofficial GitHub source

Linux Eelvation(持续更新)

2021-03-30302 files · 412 stars
anoaghost/localroot_compile
GH-cb529ec43040e49cb46c85b183cdcf81GitHubUnofficial GitHub source

Localroot Compile

2019-08-0178 files · 23 stars
albinjoshy03/linux-kernel-exploits
GH-98c2b810524267a2a7d96cf79929f529GitHubUnofficial GitHub source

albinjoshy03/linux-kernel-exploits source repository

2023-04-26161 files · 1 stars
it19083124/snp-assignment
GH-3d6439c4ff94933c64051ab649e7d539GitHubUnofficial GitHub source

Exploit work Privilege Escalation CVE-2017-1000112

2020-05-124 files · 1 stars
ol0273st-s/cve-2017-1000112-adpated
GH-1f2c9b89e050869e7f78c91e88365cf2GitHubUnofficial GitHub source

POE code for CVE-2017-1000112 adapted to both funtion on a specific VM and Escape a Docker

2020-02-142 files · 1 stars
spydomain/cve-2017-1000112-poc
GH-0c0d790b68a2ab6732430d38eb5972baGitHubUnofficial GitHub source

spydomain/cve-2017-1000112-poc source repository

2026-02-023 files · 1 stars
0xto/linux-kernel-exploits
GH-ae1a63db6eee825da96a76ac7e8a93c0GitHubUnofficial GitHub source

0xto/linux-kernel-exploits source repository

2020-02-02161 files · 0 stars
84kaliplexon3/linux-exploit-suggester
GH-1f1af1f6bdffc7645dc6c8a8d7ad04faGitHubUnofficial GitHub source

84kaliplexon3/linux-exploit-suggester source repository

2020-04-284 files · 0 stars
alian87/linux-kernel-exploits
GH-96bb91b89c84d22d6c0eae8e24274ec9GitHubUnofficial GitHub source

alian87/linux-kernel-exploits source repository

2023-06-14161 files · 0 stars
c0dak/linux-kernel-exploits
GH-13a57171fbce31198469092dafed3783GitHubUnofficial GitHub source

c0dak/linux-kernel-exploits source repository

2017-09-13141 files · 0 stars
coffee727/linux-exp
GH-f449d905e9f78a4738cfce08d8d32878GitHubUnofficial GitHub source

coffee727/linux-exp source repository

2017-09-07141 files · 0 stars
copperfieldd/linux-kernel-exploits
GH-e26ad96e055086344ca2cae9a234abdfGitHubUnofficial GitHub source

copperfieldd/linux-kernel-exploits source repository

2017-11-08145 files · 0 stars