CVE-2026-5398

Kernel use-after-free bug in the TIOCNOTTY handler

State
Published
Severity
8.4 High
Published
Apr 22, 2026
Updated
Apr 23, 2026
Reserved
Apr 2, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.4 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
FreeBSDFreeBSD
  • 15.0-RELEASE to before p6Affected
  • 14.4-RELEASE to before p2Affected
  • 14.3-RELEASE to before p11Affected
  • 13.5-RELEASE to before p12Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.