Race condition in net/packet/af_packet.c in the Linux kernel through 4.8.12 allows local users to gain privileges or cause a denial of service (use-after-free) by leveraging the CAP_NET_RAW capability to change a socket version, related to the packet_set_ring and packet_setsockopt functions.
git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=84ac7260236a49c79eede91617700174c2c19b0c
lists.opensuse.org/opensuse-security-announce/2016-12/msg00044.html
lists.opensuse.org/opensuse-security-announce/2016-12/msg00054.html
lists.opensuse.org/opensuse-security-announce/2016-12/msg00055.html
lists.opensuse.org/opensuse-security-announce/2016-12/msg00056.html
lists.opensuse.org/opensuse-security-announce/2016-12/msg00067.html
lists.opensuse.org/opensuse-security-announce/2016-12/msg00070.html
lists.opensuse.org/opensuse-security-announce/2016-12/msg00073.html
lists.opensuse.org/opensuse-security-announce/2016-12/msg00076.html
lists.opensuse.org/opensuse-security-announce/2016-12/msg00077.html
lists.opensuse.org/opensuse-security-announce/2016-12/msg00087.html
packetstormsecurity.com/files/140063/Linux-Kernel-4.4.0-AF_PACKET-Race-Condition-Privilege-Escalation.html
rhn.redhat.com/errata/RHSA-2017-0386.html
rhn.redhat.com/errata/RHSA-2017-0387.html
rhn.redhat.com/errata/RHSA-2017-0402.html
www.openwall.com/lists/oss-security/2016/12/06/1
www.securityfocus.com/bid/94692
www.securitytracker.com/id/1037403
www.securitytracker.com/id/1037968
www.ubuntu.com/usn/USN-3149-1
www.ubuntu.com/usn/USN-3149-2
www.ubuntu.com/usn/USN-3150-1
www.ubuntu.com/usn/USN-3150-2
www.ubuntu.com/usn/USN-3151-1
www.ubuntu.com/usn/USN-3151-2
www.ubuntu.com/usn/USN-3151-3
www.ubuntu.com/usn/USN-3151-4
www.ubuntu.com/usn/USN-3152-1
www.ubuntu.com/usn/USN-3152-2
bugzilla.redhat.com/show_bug.cgi?id=1400019
github.com/torvalds/linux/commit/84ac7260236a49c79eede91617700174c2c19b0c
source.android.com/security/bulletin/2017-03-01.html
www.exploit-db.com/exploits/40871/
www.exploit-db.com/exploits/44696/