7.8High

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

FreeBSD FreeBSD Published: (2 months ago)

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.

Weakness (CWE): CWE-273

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
FreeBSD FreeBSD 15.1-RELEASE – < p3, 15.0-RELEASE – < p13, 14.4-RELEASE – < p9

References and patches

CPE matches (NVD) (22)

  • cpe:2.3:o:freebsd:freebsd:14.4:p1:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:14.4:p2:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:14.4:p3:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:14.4:p4:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:14.4:p5:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:14.4:p6:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:14.4:p7:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:14.4:p8:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p1:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p10:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p11:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p12:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p2:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p3:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p4:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p5:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p6:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p7:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p8:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p9:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.1:p1:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.1:p2:*:*:*:*:*:*