BreachSpiderVerified, not vibes

CVE-2026-5398 in Freebsd

High 8.4

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

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.18.4
EPSS0.2%
EPSS percentile5th
FixSee advisory

Requires local access, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Freebsd Freebsd 13.5 14.3 14.4 15.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-5398
BreachSpider IDBS-2026-GLOBAL-154089-H
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2026-04-22
Last modified2026-11-11
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-416: Use After Free

Software references memory after it has been freed, leading to corruption, crashes, or code execution.

Analysis AI-written, not human-reviewed

CVE-2026-5398 involves a vulnerability in the TIOCNOTTY implementation where a back-pointer is not cleared, leading to a dangling pointer that can be exploited to gain root privileges.

A malicious process can exploit the dangling pointer to manipulate the terminal structure and gain unauthorized root privileges after the original process exits.

Questions

What is CVE-2026-5398?

CVE-2026-5398 involves a vulnerability in the TIOCNOTTY implementation where a back-pointer is not cleared, leading to a dangling pointer that can be exploited to gain root privileges.

What is the CVSS score for CVE-2026-5398?

CVE-2026-5398 has CVSS 8.4 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.2%.

Is CVE-2026-5398 actively exploited?

No confirmed active exploitation of CVE-2026-5398 as of 2026-11-12.

How do I remediate CVE-2026-5398?

Priority: IMMEDIATE. Advisory: https://security.freebsd.org/advisories/FreeBSD-SA-26:10.tty.asc

What systems are affected by CVE-2026-5398?

CVE-2026-5398 affects Freebsd Freebsd.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Freebsd","product":"Freebsd","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-11.