Skip to main content

FreeBSD CVE-2026-58090

| EUVDEUVD-2026-66235 HIGH
Use After Free (CWE-416)
2026-08-26 freebsd GHSA-35mj-6q95-hqwx
7.8
CVSS 3.1 · Vendor: freebsd
View

Attack ChainAIDerived

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

  1. Recon
    Obtain unprivileged local shell
  2. Delivery
    Create AF_UNIX SOCK_STREAM socket pair
  3. Exploit
    Send crafted control messages to induce receive error path
  4. Install
    Trigger use-after-free of detached mbufs
  5. C2
    Reclaim freed kernel memory with attacker-controlled data
  6. Execute
    Achieve kernel read/write primitives
  7. Impact
    Escalate to root

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
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

Exploitation requires an unprivileged local user account with the ability to create AF_UNIX SOCK_STREAM sockets, which is a default capability on all standard FreeBSD multi-user installations - no special kernel option, non-default compile flag, or specific service needs to be running. The CVSS PR:L confirms a non-root authenticated local session is the minimum requirement; fully remote or unauthenticated exploitation is not possible. The vulnerability is triggered through error paths in the SOCK_STREAM control message receive path, meaning the attacker must craft socket operations that cause the kernel to enter those error paths. Exploitation is strictly limited to local access vectors. The primary limiting factor is the requirement for any form of local shell or code execution on the target system; environments where all local accounts are trusted, or where interactive login is disabled for all non-root users, have a significantly reduced realistic attack surface.

Impact

The CVSS 3.1 score of 7.8 (High) with vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H accurately reflects the threat profile: a non-root local user account is sufficient, and attack complexity is genuinely low once shell access is available. The EPSS score of 0.16% at the 6th percentile indicates the vulnerability has not attracted significant exploitation activity in the broader ecosystem at time of analysis, and there is no CISA KEV listing. However, the gap between EPSS and real-world risk should be noted - EPSS reflects observed exploitation telemetry, and a kernel privilege escalation bug with AC:L can transition rapidly from no-known-exploit to weaponized once a POC circulates. There is no confirmed active exploitation, but any multi-user FreeBSD 15.x environment - shared hosting, containerized infrastructure, or managed servers where untrusted users hold local accounts - faces a credible internal threat, since successful exploitation yields full C:H/I:H/A:H system compromise. The S:U (scope unchanged) metric confirms impact is bounded to the compromised system itself, which limits lateral movement risk slightly. Overall: high patch priority for multi-user FreeBSD 15.x deployments despite low current EPSS.

Exploit ScenarioDerived

An unprivileged attacker with a local shell on a vulnerable FreeBSD 15.x system opens an AF_UNIX SOCK_STREAM socket pair and sends crafted data with control messages designed to trigger the error path in the kernel receive handler, inducing a free of the control message mbufs while they remain referenced in the receive socket buffer. By controlling allocation timing and reusing the freed mbuf memory with attacker-controlled data, the attacker achieves kernel-level read/write primitives and escalates to root. No public POC has been identified at time of analysis, but the AC:L rating indicates the technique does not require precise heap-spray timing or environment-specific conditions.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% 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 15.x unix socket implementation allows an unprivileged local user to achieve full system compromise via a use-after-free in the SOCK_STREAM receive path. Control messages are not fully detached from the socket buffer before error-path code frees the associated mbufs, leaving dangling references exploitable by a low-privileged attacker. No public exploit has been identified at time of analysis, but the low attack complexity (AC:L) and confirmed patch availability from the FreeBSD project make this a clear and immediate patching priority for affected deployments.

RemediationAI

Apply vendor-released patches by upgrading to FreeBSD 15.1-RELEASE-p3 or FreeBSD 15.0-RELEASE-p13, as documented in FreeBSD Security Advisory FreeBSD-SA-26:57.unix.asc (https://security.freebsd.org/advisories/FreeBSD-SA-26:57.unix.asc). Systems can be patched via freebsd-update(8) for binary updates or by rebuilding the kernel from the patched source tree using freebsd-update fetch install. If immediate patching is not feasible, the most effective compensating control is restricting local shell access for untrusted or low-privileged users - removing interactive accounts or placing workloads in jails with tightly controlled socket access reduces the exploitable attack surface, though this does not remediate the underlying flaw. Disabling AF_UNIX socket access entirely is not practical in most deployments as it would break many standard system services; selective restriction via MAC frameworks (mac_bsdextended) to limit which users can create unix sockets is a more targeted compensating approach, though complex to configure correctly.

Affected VersionsENISA

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

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 resides in FreeBSD's AF_UNIX (unix domain socket) kernel implementation, specifically the SOCK_STREAM receive path. When receiving stream-type unix socket data, the kernel processes control messages - ancillary data such as file descriptors passed via SCM_RIGHTS mechanisms - using FreeBSD's mbuf (memory buffer) subsystem, the core networking memory allocator. CWE-416 (Use After Free) is the root cause: error paths in the control message handling code call free on data mbufs before those mbufs are fully detached from the receive socket buffer, leaving freed but still-referenced memory in the buffer. An attacker can craft socket operations to trigger these error paths and then interact with the freed mbuf memory, enabling kernel heap manipulation and privilege escalation. The affected CPE is cpe:2.3:a:freebsd:freebsd:*:*:*:*:*:*:*:* covering FreeBSD 15.x releases.

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

Local-only kernel exploit requiring only an unprivileged shell; no remote vector, no user interaction, full CIA compromise of the vulnerable system.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/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
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Aug 26, 2026 - 16:22 NVD
7.8 (HIGH)
CVE Published
Aug 26, 2026 - 04:35 cve.org
UNKNOWN (no severity yet)
CVE Published
Aug 26, 2026 - 04:35 cve.org
HIGH 7.8

DescriptionCVE.org

The SOCK_STREAM receive path in the unix socket implementation failed to fully detach control messages from the socket buffer before processing them. Some error paths would free those messages, leaving freed data mbufs in the receive socket buffer.

An unprivileged local user can exploit this use-after-free to escalate privileges.

Executive ViewAI

Why It Matters

A privilege escalation vulnerability in FreeBSD 15.x allows any unprivileged local user to achieve full system compromise through a use-after-free flaw in unix socket handling. This affects all FreeBSD 15.x deployments and poses an immediate risk to system integrity, as exploitation requires minimal technical sophistication and only local access.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: enforce strict local user access controls, implement role-based access restrictions, enable comprehensive audit logging for privilege escalation attempts, deploy SELinux or AppArmor mandatory access controls, restrict SOCK_STREAM socket operations where operationally feasible, and monitor for anomalous process behavior indicating exploitation.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
FreeBSD powers servers, firewalls, and network appliances broadly
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.2%
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

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
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.

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

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.

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