vendor:
ntfs-3g
by:
Jann Horn
7,8
CVSS
HIGH
modprobe Environment Variable Injection
77
CWE
Product Name: ntfs-3g
Affected Version From: Unknown
Affected Version To: Unknown
Patch Exists: YES
Related CWE: CVE-2017-0358
CPE: a:ntfs-3g:ntfs-3g
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Linux
2017
ntfs-3g is installed by default e.g. on Ubuntu and comes with a setuid root program /bin/ntfs-3g
When the program is invoked on a system whose kernel does not support FUSE filesystems, ntfs-3g attempts to load the 'fuse' module using /sbin/modprobe via load_fuse_module(). An attacker can set the environment variable MODPROBE_OPTIONS to something like '-C /tmp/evil_config -d /tmp/evil_root' to force modprobe to load its configuration and the module from attacker-controlled directories. This allows a local attacker to load arbitrary code into the kernel.
Mitigation:
Ensure that the MODPROBE_OPTIONS environment variable is not set.