CVE-2026-5398: FreeBSD TIOCNOTTY Use-After-Free Privilege Escalation
- Vendor
- Freebsd
CVE-2026-5398 is a kernel use-after-free vulnerability in the FreeBSD TIOCNOTTY ioctl handler, affecting all supported FreeBSD versions at disclosure. TIOCNOTTY allows a process to detach from its controlling terminal, but the vulnerable implementation fails to clear a back-pointer from the terminal structure to the calling process's session. If the invoking process subsequently exits and the session memory is freed, the terminal structure can retain a dangling pointer. A malicious unprivileged local process can exploit this condition to obtain root privileges.
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.
Successful exploitation permits local privilege escalation to root, compromising system confidentiality, integrity, and availability. An attacker gaining root privileges can access protected data, modify system state, and disrupt services.
Mitigation
If you can’t patch tonight, do this now.
No workaround is available. Installing the corrected kernel and rebooting is required to resolve the vulnerability.
Remediation
Patch, then assume compromise.
Apply the fixes released for FreeBSD-SA-26:10.tty on April 21, 2026, by upgrading to a supported stable or release/security branch containing the correction, then reboot. Fixes were issued for stable/15, stable/14, stable/13, and the release/security branches for FreeBSD 15.0, 14.4, 14.3, and 13.5. Use the applicable base-system package update or freebsd-update mechanism, or apply the official source patch, rebuild and install the kernel, and reboot.
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-5398 exploited in the wild?
- As of Oct 23, 2026, Mallory has no reports of CVE-2026-5398 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-5398?
- As of Oct 23, 2026, Mallory has found no public exploit for CVE-2026-5398.
- Is there a patch for CVE-2026-5398?
- Apply the fixes released for FreeBSD-SA-26:10.tty on April 21, 2026, by upgrading to a supported stable or release/security branch containing the correction, then reboot. Fixes were issued for stable/15, stable/14, stable/13, and the release/security branches for FreeBSD 15.0, 14.4, 14.3, and 13.5.
- What products are affected by CVE-2026-5398?
- Freebsd.
- How severe is CVE-2026-5398?
- CVE-2026-5398 has a CVSS v3.1 score of 8.4 (High) and an EPSS score of 0.21% (11th percentile) as of Oct 23, 2026.
Recent activity
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.