CVE-2017-1085

HIGH

FreeBSD < 11.2 - Arbitrary Code Execution via setrlimit() Stack Memory Permissions

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2017-1085. PoCs published by Qualys Corporation.

AI-analyzed exploit summary This exploit leverages a memory management vulnerability in FreeBSD (CVE-2017-1085) to write to a PROT_NONE memory region, demonstrating a local privilege escalation. It manipulates stack limits and memory mappings to trigger the vulnerability.

Description

In FreeBSD before 11.2-RELEASE, an application which calls setrlimit() to increase RLIMIT_STACK may turn a read-only memory region below the stack into a read-write region. A specially crafted executable could be exploited to execute arbitrary code in the user context.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Qualys Corporation · cdosfreebsd_x86
https://www.exploit-db.com/exploits/42279

This exploit leverages a memory management vulnerability in FreeBSD (CVE-2017-1085) to write to a PROT_NONE memory region, demonstrating a local privilege escalation. It manipulates stack limits and memory mappings to trigger the vulnerability.

Classification
Working Poc 100%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: FreeBSD (versions affected by CVE-2017-1085)
No auth needed
Prerequisites: Local access to the target system · Ability to execute arbitrary code
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (2)

Core 2
Core References
Exploit, Technical Description, Third Party Advisory x_refsource_misc
https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt
Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/42279/

Scores

CVSS v3 7.8
EPSS 0.0062
EPSS Percentile 70.6%
Attack Vector LOCAL
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-119
Status published
Products (1)
freebsd/freebsd < 11.2
Published Sep 12, 2018
Tracked Since Feb 18, 2026