An issue exists in the `hwpmc(4)` driver where an inverted check occurs when a process calls `execve(2)` to execute a setuid or setgid image. This failure to properly detach Performance Monitoring Counters (PMCs) allows an unprivileged local user who has attached PMCs to a process to continue monitoring that process after it executes a setuid or setgid binary, violating the intended security policy.