CVE-2026-58090

Use-after-free in unix SOCK_STREAM message handling

Published Aug 26, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

This vulnerability is a use‑after‑free in the Unix domain socket receive path for SOCK_STREAM. During error handling, freed control message buffers are left referenced in the socket buffer, allowing a malicious user to read or overwrite freed memory. An attacker with a standard user account can trigger the flaw to gain root privileges on the affected system.

Affected Systems

FreeBSD FreeBSD – the vulnerability applies to the operating system’s Unix socket implementation. No specific version range is provided in the advisory, so any recent releases before an official fix may be affected.

Risk and Exploitability

The flaw can be exploited locally by a non‑privileged user to obtain full system access. The CVSS score is 7.8, and the EPSS score is < 1%, but the severity remains high because the attack vector is local and the impact is complete impersonation. The vulnerability is not listed in the CISA KEV catalog, suggesting no known active exploits, yet the potential for privilege escalation warrants immediate attention. Since no public mitigation is available, patching or upgrading the FreeBSD stack is the recommended course.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest FreeBSD release that contains the patch for the use‑after‑free in Unix SOCK_STREAM receive handling.
  • If an immediate update is not possible, disable or restrict Unix domain sockets that accept control messages from untrusted users, ensuring that only privileged processes can create or interact with those sockets.
  • Strengthen local account permissions through MAC or RBAC policies to reduce the ability of regular users to create or use Unix domain sockets that contain the vulnerability.

Generated by OpenCVE AI on August 26, 2026 at 17:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:o:freebsd:freebsd:15.0:p10:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p11:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p12:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p1:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p2:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p3:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p4:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p5:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p6:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p7:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p8:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p9:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.1:p1:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.1:p2:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Freebsd
Freebsd freebsd
Vendors & Products Freebsd
Freebsd freebsd
Type Values Removed Values Added
Description 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.
Title Use-after-free in unix SOCK_STREAM message handling
Weaknesses CWE-416
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
freebsd
Published
Updated
Aug 27, 2026, 3:57 AM
Reserved
Jun 29, 2026, 1:40 AM
Status
Analyzed
Published
Aug 26, 2026, 5:18 AM
Modified
Sep 24, 2026, 2:01 PM