CVE-2026-58092
Last modified
CVE-2026-58092 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 0.21% chance of exploitation in the next 30 days.
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".
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Freebsd | Freebsd | 15.0 | P1 |
| Freebsd | Freebsd | 15.1 | P1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-58092?
How severe is CVE-2026-58092?
How do I fix CVE-2026-58092?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-58087The GETALL and SETALL commands in semctl(2) recorded the num…7.8
- CVE-2026-58088The ELF core dump code counted the number of dumpable VM map…7.4
- CVE-2026-58089When a process calls execve(2) to execute a setuid or setgid…7.8
- CVE-2026-5809The wpForo Forum plugin for WordPress is vulnerable to Arbit…7.1
- CVE-2026-58090The SOCK_STREAM receive path in the unix socket implementati…7.8
- CVE-2026-58091The implementation of this ioctl attempts to acquire locks o…7.8
- CVE-2026-58093The TIOCSCTTY ioctl handler drops the tty lock in order to a…7
- CVE-2026-58094The FIOSSHMLPGCNF ioctl(2) operation configures the page siz…7.8
- CVE-2026-58095mp_Enddisc() used incorrect length calculations when formatt…8.8
- CVE-2026-58096LcpDecodeConfig() did not validate the length of received en…8.8
- CVE-2026-58097mp_SetEnddisc() copied a user-supplied PSN endpoint value wi…7.8
- CVE-2026-5810A flaw has been found in SourceCodester Sales and Inventory …3.5
Are you affected by CVE-2026-58092?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
