CVE-2026-5398Published Apr 22, 2026 · Apr 22Updated Nov 11
Kernel use-after-free bug in the TIOCNOTTY handler
FreeBSD
High8.4
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| FreeBSD FreeBSD |
| No fix yet |
Original description
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.
From the CVE record · freebsd