{"id":"CVE-2013-2171","published":"2013-07-02T01:00:00Z","modified":"2024-08-06T15:27:41Z","title":"The vm_map_lookup function in sys/vm/vm_map.c in the mmap implementation in the kernel in FreeBSD 9.0 through…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.06942,"percentile":0.94258,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.freebsd.org/security/advisories/FreeBSD-SA-13:06.mmap.asc","tags":["vendor-advisory","x_refsource_FREEBSD"]},{"url":"http://www.debian.org/security/2013/dsa-2714","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://svnweb.freebsd.org/base?view=revision&revision=251901","tags":["x_refsource_CONFIRM"]}],"priority":{"score":23.9,"factors":[{"name":"EPSS percentile","points":18.85},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":2,"earliest":"2013-06-21"},"pocGithub":{"count":1,"skipped":0,"earliest":"2021-11-18","earliestUrl":"https://github.com/0xGabe/FreeBSD-9.0-9.1-Privilege-Escalation","repos":[{"name":"0xGabe/FreeBSD-9.0-9.1-Privilege-Escalation","url":"https://github.com/0xGabe/FreeBSD-9.0-9.1-Privilege-Escalation","stars":1,"created":"2021-11-18"}]},"metasploit":[{"name":"FreeBSD 9 Address Space Manipulation Privilege Escalation","module":"exploit/freebsd/local/mmap","type":"exploit","disclosureDate":"2013-06-18","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/freebsd/local/mmap.rb"}],"first":{"date":"2013-06-18","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/freebsd/local/mmap.rb"},"provenance":"source"},"summary":{"text":"The vm_map_lookup function in sys/vm/vm_map.c, part of the mmap implementation in the FreeBSD kernel (versions 9.0 through 9.1-RELEASE-p4), does not properly determine whether a task should have write access to a memory location. A local user can exploit this by running a crafted application that leverages read permissions and uses the mmap and ptrace system calls to bypass filesystem write permissions and gain privileges.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:00:39Z"},"euvd":{"id":"EUVD-2013-2131","exploited":false,"provenance":"source"},"exploits":[{"id":26368,"url":"https://www.exploit-db.com/exploits/26368","title":"FreeBSD 9.0 < 9.1 - 'mmap/ptrace' Local Privilege Escalation","date":"2013-06-21","verified":true,"provenance":"source"},{"id":26454,"url":"https://www.exploit-db.com/exploits/26454","title":"FreeBSD 9 - Address Space Manipulation Privilege Escalation (Metasploit)","date":"2013-06-26","verified":true,"provenance":"source"}]}