Severity by source
AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
6DescriptionCVE.org
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.
AnalysisAI
Local privilege escalation in FreeBSD 13.5 through 15.0 allows unprivileged processes to gain root privileges by exploiting a use-after-free condition in the TIOCNOTTY ioctl implementation. When a process detaches from its controlling terminal and exits, a dangling pointer in the terminal structure references freed session memory, which attackers can manipulate to escalate privileges. This vulnerability affects multiple stable and release branches with CVSS 8.4 (High) but low EPSS probability (0.02%, 5th percentile), indicating theoretical severity without observed widespread exploitation. Not listed in CISA KEV, suggesting no confirmed active exploitation at time of analysis.
Technical ContextAI
This vulnerability stems from improper cleanup in the FreeBSD kernel's tty subsystem, specifically the TIOCNOTTY ioctl handler used to detach a process from its controlling terminal. The implementation (CWE-416: Use After Free) fails to nullify the back-pointer from the tty structure to the process session structure after detachment. When the process subsequently exits and its session is freed, the terminal device retains a stale pointer to deallocated kernel memory. This classic dangling pointer condition creates a window where subsequent operations on the terminal device may dereference freed memory. Because terminal structures are privileged kernel objects with elevated context, controlling the contents of the freed memory region through heap manipulation techniques allows arbitrary kernel memory writes, ultimately enabling privilege escalation to root (uid 0). The vulnerability exists across multiple FreeBSD stable branches (13.x, 14.x, 15.x) as identified by CPE cpe:2.3:a:freebsd:freebsd, indicating a long-standing implementation flaw in core kernel infrastructure.
RemediationAI
Apply vendor-released patches immediately via freebsd-update utility or rebuild kernel from patched sources. Specific fixed versions are FreeBSD 13.5-RELEASE-p12, 14.3-RELEASE-p11, 15.0-RELEASE-p6, and 14.4-RELEASE-p2 as detailed in FreeBSD-SA-26:10.tty security advisory at https://security.freebsd.org/advisories/FreeBSD-SA-26:10.tty.asc. For systems where immediate patching is not feasible, restrict local user access to trusted accounts only and implement kernel security modules like MAC framework policies to limit privilege escalation paths, though these are incomplete mitigations that reduce but do not eliminate risk. Monitor for unusual process behavior around terminal device access (dmesg, dtrace probes on tty ioctls). No effective workaround exists that fully prevents exploitation while maintaining normal terminal functionality, making patching the only complete remediation. System reboot is required after kernel update to activate the fix.
The x86-64 kernel system-call functionality in Xen 4.1.2 and earlier, as used in Citrix XenServer 6.0.2 and earlier and
The rtsol(8) and rtsold(8) programs do not validate the domain search list options provided in router advertisement mess
The RFC 5011 implementation in rdata.c in ISC BIND 9.7.x and 9.8.x before 9.8.5-P2, 9.8.6b1, 9.9.x before 9.9.3-P2, and
Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot
The vm_map_lookup function in sys/vm/vm_map.c in the mmap implementation in the kernel in FreeBSD 9.0 through 9.1-RELEAS
Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used
The Stream Control Transmission Protocol (SCTP) module in FreeBSD 9.3 before p33, 10.1 before p26, and 10.2 before p9, w
In FreeBSD 12.1-STABLE before r359565, 12.1-RELEASE before p7, 11.4-STABLE before r362975, 11.4-RELEASE before p1, and 1
A statement in the System Programming Guide of the Intel 64 and IA-32 Architectures Software Developer's Manual (SDM) wa
The SCTP implementation in FreeBSD 8.2 allows remote attackers to cause a denial of service (NULL pointer dereference an
NFS in a BSD derived codebase, as used in OpenBSD through 7.4 and FreeBSD through 14.0-RELEASE, allows remote attackers
Same weakness CWE-416 – Use After Free
View allSame technique Use After Free
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-24589