7.0High

CVE-2026-58093Kernel use-after-free via tty ioctls

FreeBSD FreeBSD Published: (2 months ago)

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.

Weakness (CWE): CWE-362CWE-416

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
FreeBSD FreeBSD 15.1-RELEASE – < p3, 15.0-RELEASE – < p13, 14.4-RELEASE – < p9

References and patches

CPE matches (NVD) (22)

  • cpe:2.3:o:freebsd:freebsd:14.4:p1:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:14.4:p2:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:14.4:p3:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:14.4:p4:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:14.4:p5:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:14.4:p6:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:14.4:p7:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:14.4:p8:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p1:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p10:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p11:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p12:*:*:*:*:*:*
  • 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:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p6:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p7:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p8:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.0:p9:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.1:p1:*:*:*:*:*:*
  • cpe:2.3:o:freebsd:freebsd:15.1:p2:*:*:*:*:*:*