When a process calls execve(2) to execute a setuid or setgid image, hwpmc(4) is supposed to detach PMCs owned by unprivileged processes.
- CVSS
- 7.8High
- Chance of exploitation (EPSS)
- —
- Published
- Aug 26, 2026
- In the news
- Not yet
What to do
A serious security flaw in Freebsd that needs access to the machine itself. No attacks are reported yet; it can go in your normal patch cycle.
Action: Apply the vendor's update or follow its advisory.
Fixed in: p3, p9, p13
Affected versions
- Freebsd
- 14.4-RELEASE to before p9; 15.0-RELEASE to before p13; 15.1-RELEASE to before p3
Description
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.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2026-58089 published (CVSS 7.8) (Aug 26, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Wed, Aug 26, 2026
- CVECVE-2026-58089 published (CVSS 7.8)CVE Program · 05:18 UTC
References 1
- security.freebsd.org Vendor Advisory /advisories/FreeBSD-SA-26:56.hwpmc.asc