CVE-2026-58093 PUBLISHED

Kernel use-after-free via tty ioctls

Assigner: freebsd
Reserved: 29.06.2026 Published: 26.08.2026 Updated: 26.08.2026

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.

Product Status

Vendor FreeBSD
Product FreeBSD
Versions Default: unknown
  • affected from 15.1-RELEASE to p3 (excl.)
  • affected from 15.0-RELEASE to p13 (excl.)
  • affected from 14.4-RELEASE to p9 (excl.)

Credits

  • tsune of GMO Cybersecurity by Ierae, Inc. working with TrendAI Zero Day Initiative finder

References

Problem Types

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