Permissions, Privileges, and Access Controls in Linux kernel - CVE-2013-1858
Published: April 6, 2013 / Updated: August 11, 2020
Linux kernel
Detailed vulnerability description
The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.
The clone system-call implementation in the Linux kernel before 3.8.3 does not properly handle a combination of the CLONE_NEWUSER and CLONE_FS flags, which allows local users to gain privileges by calling chroot and leveraging the sharing of the / directory between a parent process and a child process.
How to mitigate CVE-2013-1858
Sources
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e66eded8309ebf679d3d3c1f5820d1f2ca332c71
- http://stealth.openwall.net/xSports/clown-newuser.c
- http://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.8.3
- http://www.openwall.com/lists/oss-security/2013/03/14/6
- https://bugzilla.redhat.com/show_bug.cgi?id=921448
- https://github.com/torvalds/linux/commit/e66eded8309ebf679d3d3c1f5820d1f2ca332c71