CVE-2026-5398

published 22 Apr 2026 · updated 11 Nov 2026

Kernel use-after-free bug in the TIOCNOTTY handler

8.4HighCVSS 8.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in p12, p11, p2 and 1 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
FreeBSDfreebsd=13.5, =14.3, =14.4, =15.0
FreeBSD>=13.5-RELEASE <p12, >=14.3-RELEASE <p11, >=14.4-RELEASE <p2, >=15.0-RELEASE <p6p12, p11, p2, p6

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-5398 severity on Zeptric[![CVE-2026-5398](https://zeptric.io/badge/cve/CVE-2026-5398.svg)](https://zeptric.io/cve/CVE-2026-5398)