FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

FreeBSD -- Kernel use-after-free via tty ioctls

Affected packages
15.1 <= FreeBSD-kernel < 15.1_3
15.0 <= FreeBSD-kernel < 15.0_13
14.4 <= FreeBSD-kernel < 14.4_9

Details

VuXML ID a34b5154-a0ff-11f1-ae1f-bc241121aa0a
Discovery 2026-08-25
Entry 2026-08-26

Problem Description:

The TIOCSCTTY ioctl handler drops the tty lock in order to acquire the process tree lock. After reacquiring the tty lock, the handler did not revalidate the state of the terminal, and could proceed to link a terminal that was concurrently being destroyed to the calling process' session.

Impact:

An unprivileged local user can exploit this race condition to escalate privileges.

References

CVE Name CVE-2026-58093
FreeBSD Advisory SA-26:62.tty