CVE-2026-5398
CVE-2026-5398 is a high-severity vulnerability in Freebsd with a CVSS 3.x base score of 8.4. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-416.
Key facts
- Severity: High (CVSS 3.x base score 8.4)
- EPSS exploit prediction: 0% (6th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-24589
- Weakness: CWE-416
- Affected product: Freebsd
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2026-5398?
- 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.
- How severe is CVE-2026-5398?
- CVE-2026-5398 has a CVSS 3.x base score of 8.4, rated high severity. It is exploitable over local access with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2026-5398 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (6th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-5398?
- CVE-2026-5398 primarily affects Freebsd. In total, 33 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2026-5398?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2026-5398 have an EU (EUVD) identifier?
- Yes. CVE-2026-5398 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-24589.
- When was CVE-2026-5398 published?
- CVE-2026-5398 was published on 2026-04-22 and last updated on 2026-06-17.
References
Affected products (33)
- cpe:2.3:o:freebsd:freebsd:13.5:-:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:13.5:beta3:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:13.5:p1:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:13.5:p10:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:13.5:p11:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:13.5:p2:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:13.5:p3:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:13.5:p4:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:13.5:p5:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:13.5:p6:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:13.5:p7:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:13.5:p8:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:13.5:p9:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:14.3:-:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:14.3:p1:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:14.3:p10:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:14.3:p2:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:14.3:p3:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:14.3:p4:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:14.3:p5:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:14.3:p6:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:14.3:p7:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:14.3:p8:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:14.3:p9:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:14.4:-:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:14.4:p1:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:14.4:rc1:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:15.0:-:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:15.0:p1:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:15.0:p2:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:15.0:p3:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:15.0:p4:*:*:*:*:*:*
- cpe:2.3:o:freebsd:freebsd:15.0:p5:*:*:*:*:*:*
More vulnerabilities in Freebsd
- CVE-2024-43102 — Critical (CVSS 10.0): Concurrent removals of certain anonymous shared memory mappings by using the UMTX_SHM_DESTROY sub-request of…
- CVE-2018-17160 — Critical (CVSS 10.0): In FreeBSD before 11.2-STABLE(r341486) and 11.2-RELEASE-p6, insufficient bounds checking in one of the device models…
- CVE-2014-3954 — Critical (CVSS 10.0): Stack-based buffer overflow in rtsold in FreeBSD 9.1 through 10.1-RC2 allows remote attackers to cause a denial of…
- CVE-2011-4862 — Critical (CVSS 10.0): Buffer overflow in libtelnet/encrypt.c in telnetd in FreeBSD 7.3 through 9.0, MIT Kerberos Version 5 Applications (aka…
- CVE-2006-4304 — Critical (CVSS 10.0): Buffer overflow in the sppp driver in FreeBSD 4.11 through 6.1, NetBSD 2.0 through 4.0 beta before 20060823, and…
- CVE-2006-0226 — Critical (CVSS 10.0): Integer overflow in IEEE 802.11 network subsystem (ieee80211_ioctl.c) in FreeBSD before 6.0-STABLE, while scanning for…
Other CWE-416 (Use After Free) vulnerabilities
- CVE-2026-13782 — Critical (CVSS 10.0): Use after free in Browser in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromised the…
- CVE-2026-4725 — Critical (CVSS 10.0): Sandbox escape due to use-after-free in the Graphics: Canvas2D component. This vulnerability was fixed in Firefox 149…
- CVE-2026-4688 — Critical (CVSS 10.0): Sandbox escape due to use-after-free in the Disability Access APIs component. This vulnerability was fixed in Firefox…
- CVE-2025-24085 — Critical (CVSS 10.0): A use after free issue was addressed with improved memory management. This issue is fixed in iOS 18.3 and iPadOS 18.3,…
- CVE-2024-43102 — Critical (CVSS 10.0): Concurrent removals of certain anonymous shared memory mappings by using the UMTX_SHM_DESTROY sub-request of…
- CVE-2021-32495 — Critical (CVSS 10.0): Radare2 has a use-after-free vulnerability in pyc parser's get_none_object function. Attacker can read freed memory…