CVE-2026-58092

FreeBSD · FreeBSD

A kernel credential handling flaw in FreeBSD allows authenticated users to elevate privileges to the wheel group through improper group ID transitions in the mac_do function.

Executive summary

A critical kernel vulnerability in FreeBSD allows authenticated local users to improperly set their primary group ID to root, potentially leading to unauthorized administrative access.

Vulnerability

The vulnerability exists in the group_is_primary() function within the kernel, which failed to account for changes in how user credentials represent primary group IDs. This allows an authenticated user with specific mac_do rules to force a transition to an incorrect primary group ID, specifically the wheel group (ID 0).

Business impact

Successful exploitation of this vulnerability permits an authenticated user to gain elevated privileges, effectively bypassing standard access controls to become a member of the wheel group. Given the CVSS score of 8.1, this represents a high-severity risk that could lead to full system compromise, unauthorized data access, and the potential for complete control over affected FreeBSD instances.

Remediation

Immediate Action: Administrators must update their FreeBSD systems to the patched versions, specifically 15.1-RELEASE-p3 or 15.0-RELEASE-p13, to resolve the logic error in the kernel.

Proactive Monitoring: Review system logs for unusual privilege transitions or unexpected changes in user group memberships, particularly those involving the wheel group.

Compensating Controls: Limit access to mac_do transition rules and restrict user permissions to the minimum necessary to perform their functions until the system can be patched.

Exploitation status

Public Exploit Available: No (exploit_available: unknown)

Analyst recommendation

This vulnerability presents a significant risk to system integrity by allowing unauthorized privilege escalation through kernel-level manipulation. It is imperative that system administrators prioritize the application of the vendor-supplied patches immediately to prevent potential exploitation. Failure to patch these specific kernel versions leaves the system susceptible to local privilege escalation attacks.

More FreeBSD CVEs

Sources

Originally found and disclosed by Hazley Samsudin of GovTech CSG, per the CVE Program record.