Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain local unprivileged shell on FreeBSD system
-
DeliveryAttach PMCs to target process via hwpmc(4)
-
ExploitWait for target to execute setuid/setgid binary via execve()
-
InstallKernel skips PMC detachment due to inverted logic check
-
C2Retain PMC attachment across privilege boundary
-
ExecuteCollect hardware counter data from privileged process
-
ImpactPerform 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Local PMC monitoring of setuid processes yields high confidentiality impact via side-channel leakage; no direct integrity modification or availability disruption is described.
Primary rating from Vendor (freebsd).
CVSS VectorVendor: freebsd
Lifecycle Timeline
3DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
The rtsol(8) and rtsold(8) programs do not validate the domain search list options provided in router advertisement mess
Server or client applications that call the SSL_check_chain() function during or after a TLS 1.3 handshake may crash due
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
Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to
An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot
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
An OpenSSL TLS server may crash if sent a maliciously crafted renegotiation ClientHello message from a client. Rated med
Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used
The Stream Control Transmission Protocol (SCTP) module in FreeBSD 9.3 before p33, 10.1 before p26, and 10.2 before p9, w
In FreeBSD 12.1-STABLE before r359565, 12.1-RELEASE before p7, 11.4-STABLE before r362975, 11.4-RELEASE before p1, and 1
EUVD-2026-66234
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB