Rapid7 VulnDB

Linux Kernel UDP Fragmentation Offset (UFO) Privilege Escalation

Back to Search

Linux Kernel UDP Fragmentation Offset (UFO) Privilege Escalation

Disclosed
08/10/2017
Created
03/19/2019

Description

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

Author(s)

  • Andrey Konovalov
  • h00die
  • bcoles <bcoles@gmail.com>

Platform

Linux

Architectures

x64

Development

References

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/linux/local/ufo_privilege_escalation
msf exploit(ufo_privilege_escalation) > show targets
    ...targets...
msf exploit(ufo_privilege_escalation) > set TARGET < target-id >
msf exploit(ufo_privilege_escalation) > show options
    ...show and set options...
msf exploit(ufo_privilege_escalation) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;