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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-58092— Unauthorized credential switching

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.

在 FreeBSD 15.0 中,用于表示用户凭据(credentials)的内核结构发生了变化:此前,主组 ID(primary group ID)存储在包含辅助组 ID 列表的数组的第一个元素中;而现在,主组 ID 存储在一个专门的字段中。这一变化主要限于内核内部,对用户不可见。 然而,在过渡过程中,函数 未被正确更新。该函数由 使用,用于在应用过渡规则后确定凭据的主组 ID,当规则目标未显式指定组时,会使用此逻辑。 因此,在某些 规则下,凭据切换时可能错误地将主组 ID 设置为原始凭据的辅助组数组第一个元素中

AI Predicted 5.5 Difficulty: Hard EPSS 0.14% · P3

Affected Version Matrix 2

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

I. Basic Information for CVE-2026-58092

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
Unauthorized credential switching
Source: CVE Program / CVE List V5
Vulnerability Description
In FreeBSD 15.0, the kernel structure used to represent user credentials changed: previously the primary group ID was stored in the first element of the array containing the list of supplementary group IDs, whereas now the primary group ID is stored in a dedicated field. This change was largely internal to the kernel and not user-visible. One function, group_is_primary(), was not properly updated as a part of this transition. This function is used by mac_do to determine the primary group ID of the credential after applying a transition rule, used when the rule target does not explicitly specify a group. As a result, with certain mac_do rules, it is possible for a credential switch to incorrectly set the primary group ID to the ID stored in the first element of the original credential's supplementary group array. If the list of supplementary groups is empty, this value will be 0, corresponding to the "wheel" group. For example, a rule such as "uid=1001>uid=1002" can be abused to set the primary group ID to 0 even if the process did not originally belong to group 0. Certain mac_do rules can be abused to set a process' group ID to 0. Note however, that the rule must apply to the caller in order for the bug to be triggered, e.g., given the ruleset "uid=1001>uid=1002", the user must have user ID 1001 in order to trigger the bug. Further, logged-in users will in general have a non-empty supplementary group list, in which case the bug can at worst be used to set the credential's first supplementary group ID as its primary group ID. Processes must explicitly remove themselves from all supplementary groups, using the privileged setgroups(2) system call, in order to exploit the bug to set 0 as the primary group ID. Since membership in group 0 is often used to enable controlled privilege escalation, the bug might be further exploitable to obtain root privileges, depending on the system configuration. For instance, a ruleset such as the following could be exploited by a process running as user 1001 and with an empty supplementary group list: "uid=1001>uid=1002;gid=0>uid=0".
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-58092

# 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-58092

登录查看更多情报信息。

Vendor Advisories for CVE-2026-58092 (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-58089 hwpmc fails to detach PMCs during exec credential transitions
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-58092

No comments yet


Leave a comment