Skip to content
OpenAdvisories
High · 7.8 CVE-2026-58089 EUVD-2026-66234

hwpmc fails to detach PMCs during exec credential transitions

Published Aug 26, 2026 · Updated Aug 26, 2026 · Assigned by freebsd

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

VendorProductAffectedFixed
FreeBSD FreeBSD 15.1-RELEASE – < p3, 15.0-RELEASE – < p13, 14.4-RELEASE – < p9 p3

Advisories 1

References