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

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.09%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-08-26T04:30:06.543Z
- Modified: 2026-09-24T14:06:22.730Z
- Weaknesses: CWE-273
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- FreeBSD FreeBSD: from 15.1-RELEASE before p3; from 15.0-RELEASE before p13; from 14.4-RELEASE before p9; 14.4; 15.0; 15.1

## References

- <https://security.freebsd.org/advisories/FreeBSD-SA-26:56.hwpmc.asc> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-58089](https://www.cve.org/CVERecord?id=CVE-2026-58089), CVE Terms of Use, modified 2026-08-26
- NVD: [CVE-2026-58089](https://nvd.nist.gov/vuln/detail/CVE-2026-58089), Public domain, modified 2026-09-24

---

Page: https://cve.day/CVE-2026-58089 · Whole record: https://cve.day/CVE-2026-58089.json · Rebuilt by cve.day 2026-11-25T22:59:35.327Z
