CVE-2017-1000112

HIGH

Linux Kernel UDP Fragmentation Offset (UFO) Privilege Escalation

Title source: metasploit

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.

Exploits (10)

exploitdb WORKING POC VERIFIED
by Metasploit · rubylocallinux
https://www.exploit-db.com/exploits/45147
exploitdb WORKING POC VERIFIED
by Andrey Konovalov · clocallinux
https://www.exploit-db.com/exploits/43418
exploitdb WORKING POC
by bcoles · clocallinux
https://www.exploit-db.com/exploits/47169
github WORKING POC 8 stars
by codecat007 · cpoc
https://github.com/codecat007/cvehub/tree/main/android/kernel/EXP-CVE-2017-1000112
nomisec WORKING POC 1 stars
by Spydomain · poc
https://github.com/Spydomain/CVE-2017-1000112-PoC
nomisec WORKING POC 1 stars
by IT19083124 · poc
https://github.com/IT19083124/SNP-Assignment
nomisec WORKING POC 1 stars
by ol0273st-s · poc
https://github.com/ol0273st-s/CVE-2017-1000112-Adpated
nomisec WORKING POC
by hikame · poc
https://github.com/hikame/docker_escape_pwn
metasploit WORKING POC GOOD
by Andrey Konovalov, h00die, bcoles · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/ufo_privilege_escalation.rb

Scores

CVSS v3 7.0
EPSS 0.8409
EPSS Percentile 99.3%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-362
Status published
Products (1)
linux/linux_kernel 2.6.15 - 3.10.108
Published Oct 05, 2017
Tracked Since Feb 18, 2026