aboutsummaryrefslogtreecommitdiff
path: root/libexec/fingerd
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-03-23 15:22:48 +0000
committerMark Johnston <markj@FreeBSD.org>2026-04-20 13:19:13 +0000
commitfdee312d0c97cf6d907eec0b96efd51bfc9a7567 (patch)
tree56dc867c3a3fc2110cde7d0f90f47394ddf89ece /libexec/fingerd
parentf3bbb238daa17cad6a5a6d562686c2e10e9768e5 (diff)
tty: Avoid leaving dangling pointers in tty_drop_ctty()
The TIOCNOTTY handler detaches the calling process from its controlling terminal. It clears the link from the session to the tty, but not the pointers from the tty to the session and process group. This means that sess_release() doesn't call tty_rel_sess(), and that pgdelete() doesn't call tty_rel_pgrp(), so the pointers are left dangling. Fix this by clearing pointers in tty_drop_ctty(). Add a standalone regression test. Approved by: so Security: FreeBSD-SA-26:10.tty Security: CVE-2026-5398 Reported by: Nicholas Carlini <npc@anthropic.com> Reviewed by: kib, kevans Fixes: 1b50b999f9b5 ("tty: implement TIOCNOTTY") Differential Revision: https://reviews.freebsd.org/D56046
Diffstat (limited to 'libexec/fingerd')
0 files changed, 0 insertions, 0 deletions