The eCryptfs subsystem in the Linux kernel allows local users to gain privileges via layering a large filesystem stack that includes an overlayfs layer, related to fs/ecryptfs/main.c and fs/overlayfs/super.c. Upstream patch: https://github.com/torvalds/linux/commit/69c433ed2ecd2d3264efd7afec4439524b319121 References: http://source.android.com/security/bulletin/2017-04-01.html