Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
FreeBSD FreeBSD
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

当一个进程调用 execve(2) 来执行设置了 setuid 或 setgid 位的二进制映像时,hwpmc(4) 应当 detach(断开连接)由未特权进程所持有的 PMCs(性能监控计数器)。然而,由于检查逻辑颠倒,这一场景未被正确处理。 一名未特权的本地用户,若已将 PMCs 附加到某个进程,可在该进程执行 setuid 或 setgid 二进制文件后,继续对其进行监控,这违背了预期的安全策略。

AI Predicted 5.5 Difficulty: Moderate EPSS 0.15% · P5

Affected Version Matrix 3

VendorProduct Version RangeStatus
FreeBSD FreeBSD 15.1-RELEASE< p3 affected
15.0-RELEASE< p13 affected
14.4-RELEASE< p9 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-58089

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
hwpmc fails to detach PMCs during exec credential transitions
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
对于放弃特权的检查不恰当
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
FreeBSD FreeBSD 15.1-RELEASE ~ p3 -

II. Public POCs for CVE-2026-58089

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-58089

登录查看更多情报信息。

Vendor Advisories for CVE-2026-58089 (1)

Same Patch Batch · FreeBSD · 2026-08-26 · 9 CVEs total

CVE-2026-58090 Use-after-free in unix SOCK_STREAM message handling
CVE-2026-58091 Kernel use-after-free via the SNDCTL_DSP_SYNCSTART ioctl
CVE-2026-58092 Unauthorized credential switching
CVE-2026-58097 ppp(8): missing length validation in mp_SetEnddisc()
CVE-2026-58095 ppp(8): incorrect length calculation in mp_Enddisc()
CVE-2026-58093 Kernel use-after-free via tty ioctls
CVE-2026-58096 ppp(8): missing length validation in LcpDecodeConfig()
CVE-2026-58094 TOCTOU race in POSIX shared memory large page configuration

IV. Related Vulnerabilities

V. Comments for CVE-2026-58089

No comments yet


Leave a comment