Use-after-free in FreeBSD - CVE-2026-5398
Published: April 22, 2026
Vulnerability identifier: #VU126824
CSH Severity: Low
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-5398
CWE-ID: CWE-416
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a local user to escalate privileges.
The vulnerability exists due to use-after-free in the TIOCNOTTY handler when processing the TIOCNOTTY ioctl operation. A local user can invoke the ioctl and then exit the process to escalate privileges.
Unprivileged processes may use this ioctl.
Affected software
FreeBSD
How to mitigate CVE-2026-5398
Install security update from vendor's website.