Skip to main content
← All vulnerabilities
CVE-2026-5398

Kernel use-after-free bug in the TIOCNOTTY handler

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in p6, p2, p11, p12
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

The implementation of TIOCNOTTY failed to clear a back-pointer from the structure representing the controlling terminal to the calling process' session. If the invoking process then exits, the terminal structure may end up containing a pointer to freed memory. A malicious process can abuse the dangling pointer to grant itself root privileges.

Timeline

  1. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  2. CVE published
  3. Record last updated

Affected versions

  • FreeBSD FreeBSD

    From 15.0-RELEASE · fixed in p6; From 14.4-RELEASE · fixed in p2; From 14.3-RELEASE · fixed in p11; From 13.5-RELEASE · fixed in p12

References 1

security.freebsd.org