# CVE-2026-5398

> Vulnerability · severity: **HIGH** (CVSS 8.4).

## 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.

## Key facts

- **CVE ID:** CVE-2026-5398
- **Published:** 2026-04-22
- **CVSS severity:** HIGH
- **CVSS base score:** 8.4
- **CWE codes:** CWE-416

## Affected products

- `freebsd:freebsd`

## Primary sources

- NIST NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-5398

## Citation

> AI Analytics. CVE-2026-5398. Retrieved 2026-07-19 from https://api.ai-analytics.org/cve/CVE-2026-5398. Derived from NIST NVD. Licensed CC0.

---

*[Dataset catalog](https://api.ai-analytics.org/datasets/) · [AI Analytics](https://api.ai-analytics.org/) · CC0 1.0*