CVE-2026-58089: hwpmc fails to detach PMCs during exec credential transitions

Published Aug 26, 2026
·
Updated

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 Software

1 affected component
FreeBSD hwpmc

Event History

Aug 26, 2026
CVE Published
via MITRE·04:30 AM
Data Sourced
via MITRE·04:30 AM
DescriptionWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An unprivileged local user who has already attached PMCs to a process can exploit it when that process executes a setuid or setgid binary.

2

What access or conditions are required for exploitation?

The attacker needs local access and must be able to attach PMCs through hwpmc(4) to the target process before it performs an execve(2) transition to a setuid or setgid image.

3

What is the security impact?

The attacker can continue monitoring the process with PMCs after it gains privileges through execution of a setuid or setgid binary, bypassing the intended detachment policy.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203