{"id":"CVE-2017-1000112","published":"2017-10-04T01:00:00Z","modified":"2024-08-05T21:53:06Z","title":"Linux kernel: Exploitable memory corruption due to UFO to non-UFO path switch","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.20797,"percentile":0.97604,"provenance":"source"},"cwes":[],"references":[{"url":"http://seclists.org/oss-sec/2017/q3/277","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://access.redhat.com/errata/RHSA-2017:3200","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.securityfocus.com/bid/100262","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://access.redhat.com/errata/RHSA-2017:2918","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2017:2931","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.debian.org/security/2017/dsa-3981","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://github.com/xairy/kernel-exploits/tree/master/CVE-2017-1000112","tags":["x_refsource_MISC"]},{"url":"http://www.securitytracker.com/id/1039162","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://www.exploit-db.com/exploits/45147/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"https://access.redhat.com/errata/RHSA-2017:2930","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:1932","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:1931","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:4159","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":24.5,"factors":[{"name":"EPSS percentile","points":19.52},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":4,"earliest":"2017-08-13"},"pocGithub":{"count":4,"skipped":1,"earliest":"2019-09-17","earliestUrl":"https://github.com/hikame/docker_escape_pwn","repos":[{"name":"ol0273st-s/CVE-2017-1000112-Adpated","url":"https://github.com/ol0273st-s/CVE-2017-1000112-Adpated","stars":1,"created":"2020-02-14"},{"name":"IT19083124/SNP-Assignment","url":"https://github.com/IT19083124/SNP-Assignment","stars":1,"created":"2020-05-12"},{"name":"Spydomain/CVE-2017-1000112-PoC","url":"https://github.com/Spydomain/CVE-2017-1000112-PoC","stars":1,"created":"2026-02-02"},{"name":"hikame/docker_escape_pwn","url":"https://github.com/hikame/docker_escape_pwn","stars":0,"created":"2019-09-17"}]},"metasploit":[{"name":"Linux Kernel UDP Fragmentation Offset (UFO) Privilege Escalation","module":"exploit/linux/local/ufo_privilege_escalation","type":"exploit","disclosureDate":"2017-08-10","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/ufo_privilege_escalation.rb"}],"first":{"date":"2017-08-10","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/ufo_privilege_escalation.rb"},"provenance":"source"},"summary":{"text":"The Linux kernel's IP packet append path, used when building UFO (UDP Fragmentation Offload) packets with MSG_MORE, can be switched from the UFO route to the non-UFO route between two send() calls, leading to out-of-bounds memory writes when the UFO packet length exceeds the MTU.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:46:33Z"},"euvd":{"id":"EUVD-2017-1407","exploited":false,"provenance":"source"},"exploits":[{"id":43418,"url":"https://www.exploit-db.com/exploits/43418","title":"Linux Kernel < 4.4.0-83 / < 4.8.0-58 (Ubuntu 14.04/16.04) - Local Privilege Escalation (KASLR / SMEP)","date":"2017-08-13","verified":true,"provenance":"source"},{"id":45147,"url":"https://www.exploit-db.com/exploits/45147","title":"Linux Kernel - UDP Fragmentation Offset 'UFO' Privilege Escalation (Metasploit)","date":"2018-08-03","verified":true,"provenance":"source"},{"id":45147,"url":"https://www.exploit-db.com/exploits/45147","title":"Linux Kernel - UDP Fragmentation Offset 'UFO' Privilege Escalation (Metasploit)","date":"2018-08-03","verified":true,"provenance":"source"},{"id":47169,"url":"https://www.exploit-db.com/exploits/47169","title":"Linux Kernel < 4.4.0/ < 4.8.0 (Ubuntu 14.04/16.04 / Linux Mint 17/18 / Zorin) - Local Privilege Escalation (KASLR / SMEP)","date":"2018-12-29","verified":false,"provenance":"source"}],"exploitRefs":["https://www.exploit-db.com/exploits/45147/","https://github.com/xairy/kernel-exploits/tree/master/CVE-2017-1000112"]}