vendor:
davfs2
by:
Anonymous
7,2
CVSS
HIGH
Local Privilege Escalation
264
CWE
Product Name: davfs2
Affected Version From: 1.4.6
Affected Version To: 1.4.7
Patch Exists: Yes
Related CWE: N/A
CPE: davfs2:1.4.6:*:*:*:*:*:*:*
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Linux
2014
davfs2 1.4.6/1.4.7 local privilege escalation exploit
An unprivileged, local authenticated user can set the 'MODPROBE_OPTIONS' environment variable to pass a user controlled path, allowing the load of an arbitrary kernel module. The provided PoC contains a kernel module code which transfers back the execution to a '/tmp/rootprog' that can contain user-mode code of choice which will run with root privileges. The exploit has been tested on an Ubuntu-based x86_64 system but should work on other distributions, too.
Mitigation:
Update to the latest version of davfs2, or disable the setuid bit on the mount.davfs binary.