CVE-2026-5398

8.4

FreeBSD · FreeBSD

A use-after-free vulnerability in the FreeBSD TIOCNOTTY implementation allows a local attacker to gain root privileges via a dangling pointer.

Executive summary

A critical use-after-free vulnerability in the FreeBSD kernel, identified as CVE-2026-5398, permits local unauthenticated attackers to escalate privileges to root.

Vulnerability

This is a use-after-free flaw (CWE-416) within the TIOCNOTTY terminal handling code, which fails to clear a back-pointer to the process session. An unauthenticated local attacker can leverage this dangling pointer after the process exits to trigger memory corruption and achieve full root access.

Business impact

The ability for a local user to gain root privileges represents a total compromise of system integrity and confidentiality. Given the CVSS score of 8.4, this vulnerability poses a severe risk to any environment where multi-tenancy or untrusted local access is permitted, as it facilitates complete bypass of system security controls.

Remediation

Immediate Action: Update FreeBSD systems to the patched releases specified in the FreeBSD-SA-26:10.tty security advisory.

Proactive Monitoring: Monitor system logs for unusual kernel panics or repeated crash events that may indicate exploitation attempts.

Compensating Controls: Restrict local shell access to authorized users only, as the vulnerability requires local execution to trigger the memory corruption.

Exploitation status

Public Exploit Available: No

Analyst recommendation

This vulnerability is highly critical due to the potential for total system compromise via local privilege escalation. Administrators must prioritize patching affected FreeBSD kernels to the versions specified in the vendor advisory immediately, as there are no effective mitigations that prevent the underlying memory corruption issue without a code fix.

More FreeBSD CVEs

Sources

Originally found and disclosed by Nicholas Carlini using Claude, Anthropic, per the CVE Program record.