Skip to main content

FreeBSD EUVDEUVD-2026-31257

| CVE-2026-45253 HIGH
Out-of-bounds Write (CWE-787)
2026-05-21 freebsd GHSA-96wx-9xhw-cf8x
8.4
CVSS 3.1 · Vendor: freebsd
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain local shell on FreeBSD host
  2. Delivery
    Spawn or select debuggable target process
  3. Exploit
    ptrace attach to target
  4. Install
    Issue PT_SC_REMOTE with syscall(2) meta-call
  5. C2
    Trigger kernel out-of-bounds write
  6. Execute
    Execute attacker code in kernel context
  7. Impact
    Escalate to root and persist

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Local code execution on a FreeBSD 14.3, 14.4, or 15.0 host (pre-patch level p14/p5/p9 respectively) and the ability to ptrace a target process - on default FreeBSD this means security.bsd.unprivileged_proc_debug is at its default of 1 and the attacker either owns the target process or has equivalent ptrace rights. The attacker must specifically invoke PT_SC_REMOTE selecting the syscall(2) or __syscall(2) meta-system calls; ordinary direct syscalls via PT_SC_REMOTE are not the vulnerable path. Limiting factors: no remote network vector (AV:L), no exploitation against hardened hosts where unprivileged_proc_debug=0, and no impact on systems where the attacker has no local account or sandbox foothold.

Impact

Signals are mixed but converge on a high-impact but constrained risk. CVSS 8.4 with AV:L/AC:L/PR:N/UI:N reflects that no prior authentication to the kernel's ptrace path is required beyond having a process to debug, and impact is C:H/I:H/A:H consistent with full kernel compromise. However, AV:L confirms the attacker must already have local code execution on the host, which sharply limits remote drive-by risk. EPSS of 0.02% (5th percentile) and absence from CISA KEV indicate no observed exploitation, and the Memory Corruption / Buffer Overflow / RCE tags reflect technical class rather than evidence of weaponization. The PR:N rating may appear inconsistent with the description's requirement that the attacker be able to debug a process - in practice this means they must own the target process or have appropriate privileges to ptrace it, which on default FreeBSD typically means same-UID or root; defenders should treat this as a local privilege escalation primitive useful after initial access (e.g., container escape, post-exploit kernel takeover), not an internet-exposed RCE.

Exploit ScenarioDerived

A low-privileged local user on a shared FreeBSD host - for example a hosting customer, CI runner account, or attacker who landed via a web-app RCE - spawns a child process they own, attaches with ptrace, and issues PT_SC_REMOTE requesting syscall(2) with a crafted syscall number and argument layout that bypasses validation. The kernel dispatches the malformed call and writes out of bounds inside kernel memory, which the attacker leverages to elevate to root or load a kernel rootkit. No public exploit identified at time of analysis, but the primitive is well-suited to reliable post-exploitation tooling.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 21, 2026

Local privilege escalation in FreeBSD via the ptrace(PT_SC_REMOTE) interface allows an unprivileged user with debug access to a process to trigger arbitrary kernel code execution by abusing improperly validated parameters in syscall(2) and __syscall(2) meta-system calls. Affected releases include FreeBSD 14.3, 14.4, and 15.0 prior to their respective patch levels, and no public exploit identified at time of analysis. EPSS exploitation probability is low (0.02%) but the CVSS base score of 8.4 reflects high impact across confidentiality, integrity, and availability once a foothold exists.

RemediationAI

Vendor-released patch: FreeBSD 14.3-RELEASE-p14, 14.4-RELEASE-p5, or 15.0-RELEASE-p9 (or later) per FreeBSD-SA-26:21.ptrace at https://security.freebsd.org/advisories/FreeBSD-SA-26:21.ptrace.asc; apply via freebsd-update fetch install and reboot to load the patched kernel. If patching must be deferred, restrict who can ptrace processes by raising security.bsd.unprivileged_proc_debug to 0 via sysctl (this prevents non-root users from attaching to their own processes and will break debuggers like lldb/gdb and software that uses ptrace for crash reporting), and constrain access to multi-user shells, untrusted local accounts, and jails where escape into the host kernel would be catastrophic. Avoid running untrusted code on shared hosts until patched; jail or VM isolation does not mitigate this if the attacker is inside the same kernel.

Affected VersionsENISA

FreeBSD 14.3-RELEASE <p14
FreeBSD 15.0-RELEASE <p9
FreeBSD 14.4-RELEASE <p5

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability lives in the FreeBSD kernel's ptrace(2) facility, specifically the PT_SC_REMOTE operation that allows a debugger to invoke a system call on behalf of a traced process. When the requested syscall is the meta-syscall syscall(2) or __syscall(2) - which take a syscall number as their first argument and dispatch indirectly - the kernel failed to re-validate the chosen syscall number and arguments through the standard syscall entry path. Combined with CWE-787 (out-of-bounds write), this allows a debugger to coerce the kernel into dispatching crafted syscall handlers with attacker-controlled arguments, producing memory corruption inside kernel address space. The affected component is the base FreeBSD operating system per CPE cpe:2.3:a:freebsd:freebsd:*:*:*:*:*:*:*:*.

Know when Freebsd gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (freebsd) PRIMARY 8.4 HIGH
AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (freebsd) · only source for this CVE.

CVSS VectorVendor: freebsd

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Severity Changed
May 21, 2026 - 15:22 NVD
MEDIUM HIGH
CVSS changed
May 21, 2026 - 15:22 NVD
5.9 (MEDIUM) 8.4 (HIGH)
CVE Published
May 21, 2026 - 09:17 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

ptrace(PT_SC_REMOTE) failed to properly validate parameters for the syscall(2) and __syscall(2) meta-system calls. As a result, a user with the ability to debug a process may trigger arbitrary code execution in the kernel, even if the target process has no special privileges.

The missing validation allows an unprivileged local user to escalate privileges, potentially gaining full control of the affected system.

Executive ViewAI

Why It Matters

A local privilege escalation flaw in FreeBSD 14.3, 14.4, and 15.0 allows users with debug process access to escalate privileges to kernel level, with no public exploit identified at time of analysis. Organizations running these FreeBSD versions face elevated risk of insider privilege escalation and full system compromise. No vendor patch is currently available, requiring immediate administrative access controls as primary mitigation.

Business Impact: High
Compensating Controls

Restrict ptrace() access and limit debug process privileges to minimal set of administrators. Audit and enforce principle of least privilege for all users and service accounts with debug capabilities. Monitor FreeBSD security advisories for vendor patch availability. Disable the PT_SC_REMOTE interface where operationally feasible.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2012-0217 HIGH POC
7.2 Jun 12

The x86-64 kernel system-call functionality in Xen 4.1.2 and earlier, as used in Citrix XenServer 6.0.2 and earlier and

CVE-2025-14558 HIGH POC
7.2 Mar 09

The rtsol(8) and rtsold(8) programs do not validate the domain search list options provided in router advertisement mess

CVE-2020-1967 HIGH POC
7.5 Apr 21

Server or client applications that call the SSL_check_chain() function during or after a TLS 1.3 handshake may crash due

CVE-2013-4854 HIGH POC
7.8 Jul 29

The RFC 5011 implementation in rdata.c in ISC BIND 9.7.x and 9.8.x before 9.8.5-P2, 9.8.6b1, 9.9.x before 9.9.3-P2, and

CVE-2024-6387 HIGH POC
8.1 Jul 01

Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to

CVE-2019-6111 MEDIUM POC
5.9 Jan 31

An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2013-2171 MEDIUM POC
6.9 Jul 02

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-RELEAS

CVE-2021-3449 MEDIUM
5.9 Mar 25

An OpenSSL TLS server may crash if sent a maliciously crafted renegotiation ClientHello message from a client. Rated med

CVE-2016-5766 HIGH POC
8.8 Aug 07

Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used

CVE-2016-1879 HIGH POC
7.5 Jan 29

The Stream Control Transmission Protocol (SCTP) module in FreeBSD 9.3 before p33, 10.1 before p26, and 10.2 before p9, w

CVE-2020-7457 HIGH POC
8.1 Jul 09

In FreeBSD 12.1-STABLE before r359565, 12.1-RELEASE before p7, 11.4-STABLE before r362975, 11.4-RELEASE before p1, and 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy