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.
Problem types
Product status
15.0-RELEASE (release) before p6
14.4-RELEASE (release) before p2
14.3-RELEASE (release) before p11
13.5-RELEASE (release) before p12
Credits
Nicholas Carlini using Claude, Anthropic
References
security.freebsd.org/advisories/FreeBSD-SA-26:10.tty.asc