CVE-2026-58089
hwpmc fails to detach PMCs during exec credential transitions
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.
INFO
Published Date :
Aug. 26, 2026, 4:30 a.m.
Last Modified :
Aug. 26, 2026, 4:30 a.m.
Remotely Exploit :
No
Source :
freebsd
Affected Products
The following products are affected by CVE-2026-58089
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
Solution
- Correct the inverted check in the hwpmc(4) kernel module.
- Ensure PMCs detach correctly when setuid/setgid binaries execute.
- Test the fix to verify PMC detachment policy.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-58089 vulnerability anywhere in the article.