Shallow analysis on the vulnerability of Cve-2016-8655,af_packet Linux internal kernel-killing rights

Source: Internet
Author: User
Tags cve

A simple way of thinking this stuff needs namespace support,
First open socket, a serial path (packet_set_ring ()->INIT_PRB_BDQC ()
Prb_setup_retire_blk_timer ()->prb_init_blk_timer ()
Prb_init_blk_timer ()->init_timer ()) generates a Timer object, hog the socket close.
Before controlling po->tp_version make it go other path hog first free timer object.
At this time, use the Add_key heap Sprey to overwrite the free time object.
Internal nuclear attack The old machine knows that the cover-up time object has been put in place we are ready in advance
Time object whose internal function pointer has been hijacked by us.
Hijacked function in time object from user mode.
You can get root from the user mode call hijacked function at this time.

Summary:
0x0. Race condition-UAF. In this awesome time, it's not new.
The use of 0x1 Vsyscall (similar to VDSO), and Set_memory_rx ().
0X2. Use Add_key () to do the heap spraying. In the past, Cohen (Keen Team) used sendmmsg to heap spraying.
0X3 can build Af_packet sockets with Gid=3004/aid_net_raw on Android.
(MediaServer) and can trigger the bug.

REF:
http://seclists.org/oss-sec/2016/q4/607


The writing of the warehouse to welcome the discussion.

Shallow analysis on the vulnerability of Cve-2016-8655,af_packet Linux internal kernel-killing rights

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.