CVE-2013-2171
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
FreeBSD 9.0 < 9.1 - 'mmap/ptrace' Local Privilege Escalation
FreeBSD 9 - Address Space Manipulation Privilege Escalation (Metasploit)
Metasploit modules
OS impact
FreeBSD Affected 2 releases
| Version | Status | Fixed in |
|---|---|---|
| 9.1 | Affected | โ |
| 9.0 | Affected | โ |
References
- http://svnweb.freebsd.org/base?view=revision&revision=251901
- http://www.debian.org/security/2013/dsa-2714
- http://www.freebsd.org/security/advisories/FreeBSD-SA-13:06.mmap.asc
- http://svnweb.freebsd.org/base?view=revision&revision=251901
- http://www.debian.org/security/2013/dsa-2714
- http://www.freebsd.org/security/advisories/FreeBSD-SA-13:06.mmap.asc
CWEs
CWE-264
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.