Skip to main content

FreeBSD CVE-2026-58089

| EUVDEUVD-2026-66234 HIGH
Improper Check for Dropped Privileges (CWE-273)
2026-08-26 freebsd
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 local unprivileged shell on FreeBSD system
  2. Delivery
    Attach PMCs to target process via hwpmc(4)
  3. Exploit
    Wait for target to execute setuid/setgid binary via execve()
  4. Install
    Kernel skips PMC detachment due to inverted logic check
  5. C2
    Retain PMC attachment across privilege boundary
  6. Execute
    Collect hardware counter data from privileged process
  7. Impact
    Perform side-channel analysis to extract sensitive information

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V8 - Authorization Privilege drop verification
Exploitation Conditions

Exploitation requires a local unprivileged user account on the affected FreeBSD system with the ability to invoke hwpmc(4) PMC attachment interfaces (via pmcstat(8) or direct system calls). The attacker must attach PMCs to a target process before that process calls execve(2) to execute a setuid or setgid binary - this requires either timing the attachment opportunistically or, more reliably, controlling the target process's lifecycle (e.g., monitoring a child process or a process the attacker spawned). Exploitation is strictly local (AV:L); remote unauthenticated exploitation is not possible. Systems where unprivileged users are prohibited from using the hwpmc facility - via sysctl restrictions or MAC policies - are not exploitable. Only FreeBSD 14.4-RELEASE before p9, 15.0-RELEASE before p13, and 15.1-RELEASE before p3 are listed as affected.

Impact

The vendor CVSS vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H yields a score of 7.8, but the I:H and A:H ratings warrant scrutiny: the described impact is continued PMC monitoring of a setuid process, which maps cleanly to C:H (side-channel leakage of sensitive data from a privileged context) but does not describe a mechanism for direct integrity modification or availability disruption. The I:H and A:H appear to represent the vendor's assessment of potential secondary exploitation chains - for example, using PMC-derived timing data to mount a side-channel attack that subsequently breaks cryptographic protections - rather than confirmed direct impacts. EPSS at 0.15% (5th percentile) is consistent with the local-only attack vector and the specialized nature of PMC tooling: exploiting this requires a local shell account plus the ability to use hwpmc, which is not a common attacker posture on production FreeBSD systems. No CISA KEV listing and no identified public exploit code further reduce urgency. Real-world risk is most relevant to multi-user FreeBSD deployments (servers, BSD-based appliances) where untrusted local users exist - a non-default but plausible scenario. This is a patch-cycle priority rather than an emergency response item for most organizations.

Exploit ScenarioDerived

A local unprivileged user on a multi-user FreeBSD system uses pmcstat(8) or a custom hwpmc client to attach performance monitoring counters to a target process - for example, a shell script that will subsequently invoke sudo or passwd. When the target process calls execve() to execute the setuid binary, the kernel's inverted check fails to detach the user's PMCs, and the attacker continues receiving a stream of hardware counter events (cache misses, instruction counts, memory access patterns) from the now-elevated process, enabling side-channel inference of cryptographic operations or sensitive data. No public exploit code has been identified at time of analysis.

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 boundary violation in FreeBSD's hwpmc(4) hardware performance monitoring subsystem allows a low-privileged local user to continue observing a process via attached PMCs after that process elevates privileges by executing a setuid or setgid binary, directly contrary to the kernel's intended security policy. Affected versions span FreeBSD 14.4-RELEASE before p9, 15.0-RELEASE before p13, and 15.1-RELEASE before p3; vendor patches are available per FreeBSD Security Advisory SA-26:56. No public exploit has been identified and EPSS sits at 0.15% (5th percentile), placing this as a low near-term exploitation priority despite the high vendor CVSS score.

RemediationAI

Vendor-released patches are available: upgrade to FreeBSD 14.4-RELEASE-p9, FreeBSD 15.0-RELEASE-p13, or FreeBSD 15.1-RELEASE-p3 as appropriate for the installed release, following the instructions in FreeBSD Security Advisory SA-26:56 at https://security.freebsd.org/advisories/FreeBSD-SA-26:56.hwpmc.asc. As a compensating control on systems that cannot immediately patch, administrators can restrict the ability of unprivileged users to attach PMCs by adjusting sysctl knobs governing hwpmc access (e.g., machdep.hwpmc_user_mode or equivalent platform controls) or by applying a MAC framework policy that denies hwpmc system calls to non-root users; note that these controls will disable legitimate performance profiling workflows for non-root users. On hardened multi-user systems, auditing which users currently have PMC attachment capability is advisable as an immediate risk-reduction step.

Affected VersionsENISA

FreeBSD 15.1-RELEASE <p3
FreeBSD 14.4-RELEASE <p9
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

hwpmc(4) is the FreeBSD kernel's hardware performance monitoring counter framework, exposing CPU performance counters - such as cache misses, branch mispredictions, and memory access event counts - to userland via a kernel interface. When a process invokes execve(2) to replace its image with a setuid or setgid binary, the kernel is expected to revoke PMC ownership from any unprivileged processes that had attached counters to the original process, since allowing cross-privilege-boundary monitoring would violate the principle of least privilege. The root cause is CWE-273 (Improper Check for Dropped Privileges): a boolean comparison in the hwpmc detachment logic was inverted, causing the detachment to occur precisely when it should not and to be skipped precisely when it should fire. The affected CPE is cpe:2.3:a:freebsd:freebsd:*:*:*:*:*:*:*:*, covering the FreeBSD base system across the 14.4 and 15.x release families.

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 5.5 MEDIUM

Local PMC monitoring of setuid processes yields high confidentiality impact via side-channel leakage; no direct integrity modification or availability disruption is described.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/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:30 cve.org
UNKNOWN (no severity yet)
CVE Published
Aug 26, 2026 - 04:30 cve.org
HIGH 7.8

DescriptionCVE.org

When a process calls execve(2) to execute a setuid or setgid image, hwpmc(4) is supposed to detach PMCs owned by unprivileged processes. An inverted check meant that this scenario was not handled properly.

An unprivileged local user who has attached PMCs to a process can continue monitoring it after the process executes a setuid or setgid binary, contrary to the intended policy.

Executive ViewAI

Why It Matters

FreeBSD deployments face a privilege isolation breach in the hwpmc performance monitoring subsystem, where unprivileged users can retain visibility into processes after administrative privilege escalation. No public exploit has been identified, and the risk is currently low, but the vulnerability represents a structural weakness in multi-user FreeBSD environments that requires patching to restore intended privilege boundaries.

Business Impact: Medium
Compensating Controls

Apply vendor patch per FreeBSD Security Advisory SA-26:56. Until patching completes, disable hwpmc(4) kernel module and restrict unprivileged local system access.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Low
specialized OS with significant niche but limited enterprise mainstream adoption
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
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
Medium
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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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