Skip to main content

FreeBSD CVE-2026-58093

| EUVDEUVD-2026-66250 HIGH
Race Condition (CWE-362)
2026-08-26 freebsd
7.0
CVSS 3.1 · Vendor: freebsd
View

Attack ChainAIDerived

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

  1. Recon
    Obtain low-privileged local shell account
  2. Delivery
    Open target tty device via file descriptor
  3. Exploit
    Spawn concurrent thread to destroy same tty device
  4. Install
    Trigger TIOCSCTTY ioctl while lock is transiently dropped
  5. C2
    Win race to link destroyed tty to attacker session
  6. Execute
    Exploit corrupted kernel session state
  7. Impact
    Escalate to root

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

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

Exploitation Conditions

Exploitation requires a local, low-privileged user account on the target FreeBSD system (confirmed by CVSS PR:L). No network-level access, no specific service, and no administrator interaction are required. The race window is narrow and timing-dependent (CVSS AC:H), meaning the attacker must win a concurrent kernel scheduling race between the TIOCSCTTY ioctl path and a tty destruction path - exploitation may require repeated attempts. Exploitation is limited to FreeBSD systems running affected kernel versions (15.0-RELEASE before p13, 15.1-RELEASE before p3, 14.4-RELEASE before p9); it does not apply to Linux, macOS, or other BSDs unless they share an identical ioctl locking pattern. Multi-tenant or shared-hosting deployments where untrusted users hold shell accounts represent the primary risk population.

Impact

CVSS 3.1 scores this at 7.0 (High) with AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H, and that assessment is internally consistent: local access with a low-privileged account is required, but the high attack complexity (AC:H) honestly reflects the race condition's timing dependency. EPSS stands at 0.13% (3rd percentile), indicating the research and threat-actor community has not yet operationalised this vulnerability at scale - this is not in CISA KEV. The combination of AC:H and low EPSS suggests exploitation is technically possible but unreliable in practice, requiring either a timing-favorable environment or repeated attempts. Despite the C:H/I:H/A:H impact triad, real-world priority should be tempered: an attacker must already have a local shell account on the target FreeBSD system, which significantly limits the exposed attack surface to multi-tenant or shared-hosting deployments. The discrepancy between the cveorg and EUVD reference advisories (SA-26:60 vs. SA-26:62, both claiming to address tty) is a minor data inconsistency worth verifying against the vendor's published advisory index.

Exploit ScenarioDerived

An attacker with a low-privileged local shell account on a multi-user FreeBSD system spawns two concurrent threads: one repeatedly invokes TIOCSCTTY on a target tty device while the second concurrently closes and destroys that device. When the kernel's tty lock is transiently dropped for process-tree lock acquisition, the attacker wins the race, causing the kernel to attach a partially-destroyed tty object to their session, which corrupts kernel session state in a way that can be leveraged to escalate to root. No public proof-of-concept code has been identified at time of analysis, so reliable exploitation requires knowledge of FreeBSD kernel internals and race-window tuning.

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

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

Alert me

AnalysisAIv1 – Aug 26, 2026

Privilege escalation in FreeBSD's tty subsystem allows a local unprivileged user to gain elevated privileges by exploiting a race condition in the TIOCSCTTY ioctl handler. The handler fails to revalidate terminal state after a lock-drop sequence, enabling a concurrently destroyed terminal to be incorrectly linked to the attacker's session. No public exploit code has been identified at time of analysis, but vendor-confirmed patches exist for all affected release lines (15.0-RELEASE, 15.1-RELEASE, and 14.4-RELEASE).

RemediationAI

Apply the vendor-released kernel patches: upgrade to FreeBSD 15.0-RELEASE-p13, FreeBSD 15.1-RELEASE-p3, or FreeBSD 14.4-RELEASE-p9 as appropriate for the installed release. Patches are available via freebsd-update(8) or by applying the kernel patch from the advisory at https://security.freebsd.org/advisories/FreeBSD-SA-26:60.tty.asc. Where immediate patching is operationally infeasible, restrict local shell access to trusted accounts only, as the vulnerability is unexploitable without an existing low-privileged session; removing untrusted local user accounts or confining them via mandatory access control frameworks (such as FreeBSD Jails or Capsicum) reduces exposure. Note that Jail confinement limits but may not fully eliminate tty ioctl access depending on jail configuration; verify tty device visibility within the jail. No workaround eliminates the kernel race without the patch.

Affected VersionsENISA

FreeBSD 15.0-RELEASE <p13
FreeBSD 15.1-RELEASE <p3
FreeBSD 14.4-RELEASE <p9

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 TIOCSCTTY ioctl is the POSIX mechanism by which a process sets a controlling terminal for its session. The vulnerable handler in FreeBSD's kernel must coordinate two distinct lock domains - the per-tty lock (protecting terminal state) and the process tree lock (protecting session/process group relationships). To acquire the process tree lock without inverting lock order, the handler transiently releases the tty lock. This creates a window in which another kernel thread can begin destroying the same terminal. After reacquiring the tty lock, the handler proceeds without revalidating that the terminal object is still live, constituting a classic TOCTOU (time-of-check/time-of-use) race condition classified under CWE-362 (Concurrent Execution Using Shared Resource with Improper Synchronization). The affected CPE is cpe:2.3:a:freebsd:freebsd:*:*:*:*:*:*:*:*, covering the kernel tty subsystem across multiple release branches.

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 7.0 HIGH
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

Local access with low privileges required to trigger race; AC:H reflects timing-dependent window; full impact triad warranted for kernel privilege escalation to root.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (freebsd).

CVSS VectorVendor: freebsd

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

Lifecycle Timeline

3
CVSS changed
Aug 26, 2026 - 20:23 NVD
7.0 (HIGH)
CVE Published
Aug 26, 2026 - 05:33 cve.org
UNKNOWN (no severity yet)
CVE Published
Aug 26, 2026 - 05:33 cve.org
HIGH 7.0

DescriptionCVE.org

The TIOCSCTTY ioctl handler drops the tty lock in order to acquire the process tree lock. After reacquiring the tty lock, the handler did not revalidate the state of the terminal, and could proceed to link a terminal that was concurrently being destroyed to the calling process' session.

An unprivileged local user can exploit this race condition to escalate privileges.

Executive ViewAI

Why It Matters

FreeBSD's tty subsystem contains a privilege escalation vulnerability (CVE-2026-58093, CVSS 7.0) affecting versions 15.0, 15.1, and 14.4 that allows local unprivileged users to gain elevated privileges through a race condition. This exposes systems to unauthorized privilege escalation by any user with local shell access, compromising system integrity and access controls.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim: restrict local shell access to trusted users and enable process-level privilege escalation monitoring via auditd or equivalent.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
niche BSD OS, far smaller production footprint than Linux
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.1%
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

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

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).

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