CVE-2013-2171
The vm_map_lookup function in sys/vm/vm_map.c in the mmap implementation in the kernel in FreeBSD...
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.
Exploit likelihood
What each source reports
NVD Score used
6.9
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.
- Record
CVE-2013-2171- CVSS 2.0
- 6.9 Medium
AV:L/AC:M/Au:N/C:C/I:C/A:C - Weakness
- CWE-264
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2013-2171- Updated
- 2026-11-02
EUVDEUVD-2013-2131 No score
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.
- Record
EUVD-2013-2131- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-gmfh-rp5h-w5mv No score
The vm_map_lookup function in sys/vm/vm_map.c in the mmap implementation in the kernel in FreeBSD...
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.
- Record
GHSA-gmfh-rp5h-w5mv- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
kfreebsd-9Debian:7 |
before 9.0-10+deb70.2, plus listed versions 9.0-109.0-10+deb70.1 |
9.0-10+deb70.2 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | FreeBSD 9.0 < 9.1 - 'mmap/ptrace' Local Privilege Escalation | 2013-06-21 |
| Exploit-DB | FreeBSD 9 - Address Space Manipulation Privilege Escalation (Metasploit) | 2013-06-26 |
| Metasploit | FreeBSD 9 Address Space Manipulation Privilege Escalation | 2013-06-18 |
| PoC in GitHub | 0xGabe/FreeBSD-9.0-9.1-Privilege-Escalation | 2021-11-18 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, Metasploit, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2013-2171 is a medium vulnerability (CVSS 6.9) in Freebsd, published June 25, 2013. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 6.94%, the 94th percentile. Fixed in kfreebsd-9 9.0-10+deb70.2.