Skip to content
OpenAdvisories
High · 8.4 CVE-2026-5398 EUVD-2026-24589

Kernel use-after-free bug in the TIOCNOTTY handler

Published Apr 22, 2026 · Updated Apr 23, 2026 · Assigned by freebsd

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.

Affected products

VendorProductAffectedFixed
FreeBSD FreeBSD 15.0-RELEASE – < p6, 14.4-RELEASE – < p2, 14.3-RELEASE – < p11, 13.5-RELEASE – < p12 p6

Advisories 1

References