CVE-2013-2171
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…
- 6.9MediumCVSS base score
- 6.9%Exploitation in 30 daysEPSS · top 5.8% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 3Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module and 2 Exploit-DB entries for it.
Show the exploits3
Metasploit modules1 module
- FreeBSD 9 Address Space Manipulation Privilege Escalation (Metasploit module) (opens in a new tab)
exploit/freebsd/local/mmapRank greatdisclosed 18 Jun 2013
Exploit-DB2 entries
- FreeBSD 9 - Address Space Manipulation Privilege Escalation (Metasploit) (Exploit-DB entry) (opens in a new tab)
EDB-ID 26454local, freebsdpublished 26 Jun 2013Verified
- FreeBSD 9.0 < 9.1 - 'mmap/ptrace' Local Privilege Escalation (Exploit-DB entry) (opens in a new tab)
EDB-ID 26368local, freebsdpublished 21 Jun 2013Verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By redhat
- 4 months later
· 4 months later
Published
- 11 years later
· 11 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | Medium6.9 | AV:L/AC:M/Au:N/C:C/I:C/A:C |
- EPSS (exploitation in 30 days)
- 6.9% · top 5.8% of all CVEs (11 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.9.
Affected products
n/a
- affected n/a
References
References3
- FreeBSD-SA-13:06 (opens in a new tab)vendor-advisoryx_refsource_FREEBSDx_transferred
- DSA-2714 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- http://svnweb.freebsd.org/base?view=revision&revision=251901 (opens in a new tab)x_refsource_CONFIRMx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2013-2131 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2013-2171)Record last updated .