### [CVE-2013-2171](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-2171) ![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue) ![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen) ### Description The vm_map_lookup function in sys/vm/vm_map.c in the mmap implementation in the kernel in FreeBSD 9.0 through 9.1-RELEASE-p4 does not properly determine whether a task should have write access to a memory location, which allows local users to bypass filesystem write permissions and consequently gain privileges via a crafted application that leverages read permissions, and makes mmap and ptrace system calls. ### POC #### Reference No PoCs from references. #### Github - https://github.com/0xGabe/FreeBSD-9.0-9.1-Privilege-Escalation - https://github.com/ARPSyndicate/cvemon - https://github.com/Gabriel-Lima232/FreeBSD-9.0-9.1-Privilege-Escalation - https://github.com/Snoopy-Sec/Localroot-ALL-CVE - https://github.com/anoaghost/Localroot_Compile