CVE-2026-58092
Received Received - Intake

Privilege Escalation in FreeBSD Kernel Credential Handling

Vulnerability report for CVE-2026-58092, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-26

Last updated on: 2026-08-26

Assigner: FreeBSD

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".

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-26
Last Modified
2026-08-26
Generated
2026-08-26
AI Q&A
2026-08-26
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
freebsd freebsd 15.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-288 The product requires authentication, but the product has an alternate path or channel that does not require authentication.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

In FreeBSD 15.0, a kernel structure change separated the primary group ID from the list of supplementary group IDs. A function called group_is_primary() was not updated correctly, causing it to use the first element of the supplementary group array as the primary group ID instead of the dedicated field. This can lead to incorrect group assignments under specific mac_do rules.

Detection Guidance

Detecting this vulnerability requires checking for improper group ID assignments in FreeBSD 15.0 systems. Inspect mac_do rules and credential transitions using system logs and audit tools. Look for processes with primary group ID 0 despite not belonging to the wheel group. Commands like 'sysctl security.mac' and 'ps -o pid,comm,gid,groups' may help identify anomalies.

Impact Analysis

This vulnerability could allow a process to set its primary group ID to 0 (the wheel group) by exploiting certain mac_do rules. If the process can escalate privileges through group 0 membership, it might gain root access. Exploitation requires specific conditions, such as an empty supplementary group list or a privileged setgroups(2) call.

Mitigation Strategies

Apply FreeBSD security patches immediately. Review and restrict mac_do rules to prevent unauthorized credential transitions. Ensure processes do not have empty supplementary group lists. Disable privilege escalation paths involving group 0 membership where possible.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-58092. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart