module

Debian/Ubuntu ntfs-3g Local Privilege Escalation

Disclosed
Jan 5, 2017
Created
May 30, 2018

Description

ntfs-3g mount helper in Ubuntu 16.04, 16.10, Debian 7, 8, and possibly 9 does not properly sanitize the environment when executing modprobe.
This can be abused to load a kernel module and execute a binary payload as the root user.

Platform

Linux

Architectures

x86, x64

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/ntfs3g_priv_esc
msf exploit(ntfs3g_priv_esc) > show targets
...targets...
msf exploit(ntfs3g_priv_esc) > set TARGET < target-id >
msf exploit(ntfs3g_priv_esc) > show options
...show and set options...
msf exploit(ntfs3g_priv_esc) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.