CVE-2026-58093

FreeBSD · FreeBSD

A race condition in the FreeBSD TIOCSCTTY ioctl handler allows an unprivileged local user to escalate privileges by manipulating terminal state synchronization.

Executive summary

A high-severity race condition vulnerability in the FreeBSD kernel allows unprivileged local users to achieve privilege escalation, posing a significant threat to system integrity.

Vulnerability

The vulnerability involves a race condition (CWE-362) and a use-after-free (CWE-416) within the TIOCSCTTY ioctl handler. Because the kernel fails to revalidate the terminal state after reacquiring the tty lock, an unprivileged local user can exploit this to link a terminal undergoing destruction to a session, leading to privilege escalation.

Business impact

The ability for a local, unprivileged user to escalate privileges represents a critical breakdown in system security boundaries. This flaw could allow unauthorized actors to gain administrative control over the affected FreeBSD system, potentially resulting in complete system compromise, data theft, or service disruption. Given the CVSS score of 7.0, this issue is rated as high severity and requires immediate attention to prevent internal lateral movement or full system takeover.

Remediation

Immediate Action: Administrators must update their FreeBSD systems to the versions specified in the official FreeBSD Security Advisory (FreeBSD-SA-26:62.tty) to ensure the kernel properly handles terminal synchronization.

Proactive Monitoring: Monitor system logs for unusual kernel panic events or repeated failures in terminal session management which may indicate exploitation attempts.

Compensating Controls: Limit access to the local shell environment to trusted users only and implement strict principle-of-least-privilege configurations to restrict the impact of potential local exploitation.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

This vulnerability presents a significant risk to the security posture of FreeBSD installations by enabling local privilege escalation. Organizations should prioritize applying the vendor-supplied security patches across all affected FreeBSD instances as soon as they are made available. Failure to remediate this flaw could leave systems vulnerable to internal threats who may leverage this race condition to bypass established security controls.

More FreeBSD CVEs

Sources

Originally found and disclosed by tsune of GMO Cybersecurity by Ierae, Inc. working with TrendAI Zero Day Initiative, per the CVE Program record.