FreeBSD
hwpmc fails to detach PMCs during exec credential transitions
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by CISA ADP · CWE-273
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
FreeBSD FreeBSD
- >= 15.1-RELEASE, < p3
- >= 15.0-RELEASE, < p13
- >= 14.4-RELEASE, < p9
Fixed in p3, p13, p9
Mitigation
Upgrade FreeBSD to p3 or p13 or p9 or later.
References
- Vendor advisory security.freebsd.org/advisories/FreeBSD-SA-26:56.hwpmc.a…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.