CVE-2026-58093

Kernel use-after-free via tty ioctls

State
Published
Severity
7.0 High
Published
Aug 26, 2026
Updated
Aug 27, 2026
Reserved
Jun 29, 2026

Read the record on cve.org

Description

The TIOCSCTTY ioctl handler drops the tty lock in order to acquire the process tree lock. After reacquiring the tty lock, the handler did not revalidate the state of the terminal, and could proceed to link a terminal that was concurrently being destroyed to the calling process' session.

An unprivileged local user can exploit this race condition to escalate privileges.

Scores

CVSSScoreVectorSource
3.17.0 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
  • CWE-416 Use After Free

Affected Products

ProductVersions
FreeBSDFreeBSD
  • 15.1-RELEASE to before p3Affected
  • 15.0-RELEASE to before p13Affected
  • 14.4-RELEASE to before p9Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.