### [CVE-2016-4997](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-4997) ![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=%3D%20n%2Fa%20&color=brighgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen) ### Description The compat IPT_SO_SET_REPLACE and IP6T_SO_SET_REPLACE setsockopt implementations in the netfilter subsystem in the Linux kernel before 4.6.3 allow local users to gain privileges or cause a denial of service (memory corruption) by leveraging in-container root access to provide a crafted offset value that triggers an unintended decrement. ### POC #### Reference - http://www.oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html - http://www.oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html - http://www.oracle.com/technetwork/topics/security/ovmbulletinoct2016-3090547.html - http://www.oracle.com/technetwork/topics/security/ovmbulletinoct2016-3090547.html - https://www.exploit-db.com/exploits/40435/ - https://www.exploit-db.com/exploits/40435/ - https://www.exploit-db.com/exploits/40489/ - https://www.exploit-db.com/exploits/40489/ #### Github - https://github.com/JlSakuya/Linux-Privilege-Escalation-Exploits