### [CVE-2017-1085](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-1085) ![](https://img.shields.io/static/v1?label=Product&message=FreeBSD&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue) ![](https://img.shields.io/static/v1?label=Vulnerability&message=Userspace%20stack%20overflow&color=brighgreen) ### Description In FreeBSD before 11.2-RELEASE, an application which calls setrlimit() to increase RLIMIT_STACK may turn a read-only memory region below the stack into a read-write region. A specially crafted executable could be exploited to execute arbitrary code in the user context. ### POC #### Reference - https://www.exploit-db.com/exploits/42279/ - https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt #### Github - https://github.com/ARPSyndicate/cvemon - https://github.com/lnick2023/nicenice - https://github.com/qazbnm456/awesome-cve-poc - https://github.com/xbl3/awesome-cve-poc_qazbnm456