The blog post specifically thanks the Red Hat Security Team, but according to the Red Hat Bugzilla, no patch has been released yet for RHEL/CentOS: This issue affects the Linux kernels as shipped with Red Hat Enterprise Linux 7 and will be addressed in a future update. https://bugzilla.redhat.com/show_bug.cgi?id=1297475 Premature blog post?
Tested on CentOS 7, fully patched. [ohadmin@localhost shm]$ ./cve_2016_0728 PP_KEY uid=99990, euid=99990 Increfing... This is taking a long time. I disabled SELinux and it has been cranking away for a while now. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1140 ohadmin 20 0 8428 388 296 R 100.0 0.0 9:25.17 cve_2016_0728 No need to test on CentOS 6. Forgot how ancient that kernel is. Update: I am not having a…
Analysis and Exploitation of a Linux Kernel Vulnerability
11–20 of 70 posts
Re: Analysis and Exploitation of a Linux Kernel Vulnerability
#12Earlier quoted context omitted.
Unfortunately no major distributions ship those patches by default.
Why don't they? There are not that much performance downsides to PaX/grsecurity AFAIK. And it doesn't break the ABI monthly like OpenBSD does. (Don't get me wrong, I like OpenBSD personally, but this is not suitable for enterprises) I don't agree with Torvalds, but at least I can understand him. I don't understand why distros don't implement it. http://www.washingtonpost.com/sf/business/2015/11/05/net-of-...
Re: Analysis and Exploitation of a Linux Kernel Vulnerability
#13Would a properly setup SELinux able to capture a local program that exploit this kind of bug? Is there any other other of Linux/Mac/Windows/Android dist that have some type of security framework capture this kind of issue?
Re: Analysis and Exploitation of a Linux Kernel Vulnerability
#14Would a properly setup SELinux able to capture a local program that exploit this kind of bug? Is there any other other of Linux/Mac/Windows/Android dist that have some type of security framework capture this kind of issue?
Well, Android and most RHEL-derivated distros use SELinux and it can mitigate this kind of problems (assuming it is well configured) and Ubuntu has "AppArmor" but I don't know if it mitigates this issue as well.
Re: Analysis and Exploitation of a Linux Kernel Vulnerability
#15Earlier quoted context omitted.
Unfortunately no major distributions ship those patches by default.
Why don't they? There are not that much performance downsides to PaX/grsecurity AFAIK. And it doesn't break the ABI monthly like OpenBSD does. (Don't get me wrong, I like OpenBSD personally, but this is not suitable for enterprises) I don't agree with Torvalds, but at least I can understand him. I don't understand why distros don't implement it. http://www.washingtonpost.com/sf/business/2015/11/05/net-of-...
Re: Analysis and Exploitation of a Linux Kernel Vulnerability
#16Re: Analysis and Exploitation of a Linux Kernel Vulnerability
#17The blog post specifically thanks the Red Hat Security Team, but according to the Red Hat Bugzilla, no patch has been released yet for RHEL/CentOS: This issue affects the Linux kernels as shipped with Red Hat Enterprise Linux 7 and will be addressed in a future update. https://bugzilla.redhat.com/show_bug.cgi?id=1297475 Premature blog post?
Re: Analysis and Exploitation of a Linux Kernel Vulnerability
#18Earlier quoted context omitted.
Did you update the addresses of commit_creds() and prepare_kernel_cred() to match your running kernel before you compiled/ran it?
How do you find those addresses?
Re: Analysis and Exploitation of a Linux Kernel Vulnerability
#19Earlier quoted context omitted.
Tested on CentOS 7, fully patched. [ohadmin@localhost shm]$ ./cve_2016_0728 PP_KEY uid=99990, euid=99990 Increfing... This is taking a long time. I disabled SELinux and it has been cranking away for a while now. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1140 ohadmin 20 0 8428 388 296 R 100.0 0.0 9:25.17 cve_2016_0728 No need to test on CentOS 6. Forgot how ancient that kernel is. Update: I am not having a…
That's not how you execute binaries, just "./cve_2016_0728 PP_KEY" is the correct syntax
Re: Analysis and Exploitation of a Linux Kernel Vulnerability
#20Earlier quoted context omitted.
Did you update the addresses of commit_creds() and prepare_kernel_cred() to match your running kernel before you compiled/ran it?
How do you find those addresses?
grep commit_creds /proc/kallsyms
grep prepare_kernel_cred /proc/kallsyms
Then update addresses as shown in one of the code snippets: _commit_creds commit_creds = 0xffffffff81094250;
_prepare_kernel_cred prepare_kernel_cred = 0xffffffff81094550;