CVE-2013-2171

medium
Published 2013-07-02 ยท Modified 2026-04-29
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
7.9

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

Exploit likelihood
20%
Patch ETA
โ€”

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 with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-26368 local freebsd verified
Hunger ยท 2013-06-21

FreeBSD 9.0 < 9.1 - 'mmap/ptrace' Local Privilege Escalation

Source code queued for fetch โ€” refresh in a moment.
EDB-26454 local freebsd verified
Metasploit ยท 2013-06-26

FreeBSD 9 - Address Space Manipulation Privilege Escalation (Metasploit)

Source code queued for fetch โ€” refresh in a moment.

Metasploit modules

FreeBSD 9 Address Space Manipulation Privilege Escalation
Source fetch failed: fetch_error โ€” view the original via the link above.

OS impact

freebsd FreeBSD Affected 2 releases
VersionStatusFixed in
9.1 Affected โ€”
9.0 Affected โ€”

References

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.