Skip to main content
Mallory
← Back to News
privilege-escalation-techniquewidely-deployed-product-advisoryendpoint-software-vulnerability

FreeBSD Fixes Kernel Use-After-Free in `TIOCNOTTY` Allowing Root Privilege Escalation

Attack Tradecraft · 2 sources · Updated 5mo ago · First seen Apr 21, 2026

FreeBSD Fixes Kernel Use-After-Free in `TIOCNOTTY` Allowing Root Privilege Escalation

The FreeBSD Project issued security advisory FreeBSD-SA-26:10.tty for CVE-2026-5398, a kernel use-after-free flaw in the TIOCNOTTY handler that affects all supported FreeBSD versions. The vulnerability occurs because TIOCNOTTY does not clear a back-pointer from the controlling terminal structure to the calling process session, leaving a dangling pointer after the process exits.

FreeBSD warned that a malicious unprivileged local process could exploit the bug to gain root privileges. The project released fixes across supported stable and release branches on 2026-04-21, said no workaround is available, and directed administrators to apply the updates and reboot affected systems.

Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Apr 21, 2026
  1. Apr 21, 20267mo ago

    FreeBSD releases fixes for supported branches and advises reboot

    FreeBSD released patches for the vulnerability across supported stable and release branches and stated that no workaround was available. Users were instructed to update their systems and reboot to apply the fix.

  2. Apr 21, 20267mo ago

    FreeBSD discloses CVE-2026-5398 privilege-escalation flaw in TIOCNOTTY

    The FreeBSD Project published security advisory FreeBSD-SA-26:10.tty for CVE-2026-5398, describing a kernel use-after-free bug in the TIOCNOTTY handler affecting all supported FreeBSD versions. The advisory said an unprivileged local process could exploit the dangling pointer condition to gain root privileges.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Freebsd
Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
Source coverage

Sources

2 references tracked. Mallory keeps watching after this page renders.

Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.