CVE-2026-58092: FreeBSD mac_do Incorrect Primary Group Assignment
- Vendor
- Freebsd
CVE-2026-58092 is an improper privilege-management vulnerability in FreeBSD 15.0 and later affecting the mac_do policy module. Following a kernel credential-layout change that moved the primary group ID into a dedicated field, the group_is_primary() function retained logic that treated the first supplementary-group entry as the primary group. When mac_do applies a matching credential-transition rule that changes identity without explicitly specifying a target group, it can assign the resulting credential the first supplementary group ID from the original credential rather than the intended primary group. If the original credential has no supplementary groups, the resulting primary group ID becomes 0, the wheel group.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A process eligible for an affected mac_do transition rule can receive an unintended primary group ID. Where the process has an empty supplementary-group list, this can assign wheel-group membership. On systems whose mac_do policy or other authorization controls permit further transitions or privileged operations based on membership in group 0, the condition can provide a path to root privilege escalation. Otherwise, impact is limited to obtaining the incorrectly selected group identity.
Mitigation
If you can’t patch tonight, do this now.
Systems without a configured mac_do ruleset are not affected. Until patched, review, restrict, or disable mac_do transition rules that alter a UID while omitting an explicit target GID. Ensure all required transition rules explicitly set the target group, and prevent untrusted processes from obtaining the privilege required to clear supplementary groups.
Remediation
Patch, then assume compromise.
Install the FreeBSD base-system security update and reboot. Fixed revisions include stable/15-n285145, FreeBSD 15.1-RELEASE-p3, and FreeBSD 15.0-RELEASE-p13. Update through the supported FreeBSD base update mechanism, or apply the vendor patch and rebuild the kernel where applicable.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-58092 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-58092 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-58092?
- As of Sep 25, 2026, Mallory has found no public exploit for CVE-2026-58092.
- Is there a patch for CVE-2026-58092?
- Install the FreeBSD base-system security update and reboot. Fixed revisions include stable/15-n285145, FreeBSD 15.1-RELEASE-p3, and FreeBSD 15.0-RELEASE-p13.
- What products are affected by CVE-2026-58092?
- Freebsd.
- How severe is CVE-2026-58092?
- CVE-2026-58092 has a CVSS v3.1 score of 8.1 (High) and an EPSS score of 0.35% (29th percentile) as of Sep 25, 2026.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.