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

CVE-2026-58089 affects 25 listed versions of FreeBSD in the Dawnsentry catalogue.

7.8CVSS high
None knownexploitation
under 1%EPSS (next 30 days)
26 August 2026published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

FreeBSD

25 of 250 listed versions are affected. Fixed in 15.1-RELEASE-p3, 15.0-RELEASE-p13, 14.4-RELEASE-p9. The newest release, 15.1-p7, is not affected.

15.1-p2 15.1-p1 15.1 15.0-p12 15.0-p11 15.0-p10 15.0-p9 15.0-p8 15.0-p7 15.0-p6 15.0-p5 15.0-p4 15.0-p3 15.0-p2 15.0-p1 15.0 14.4-p8 14.4-p7 14.4-p6 14.4-p5 14.4-p4 14.4-p3 14.4-p2 14.4-p1 14.4

What it is

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.

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (Freebsd)

Published by Freebsd on 26 August 2026. Last changed 24 September 2026.

Sources

Check one version you run: look CVE-2026-58089 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.