Skip to contentSkip to conversation

CVE-2026-98750: tty: fix saved termios reset race

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

tty: fix saved termios reset race

Resetting saved termios state on device registration is needed where a minor number can be reused for an entirely different device and where the old settings may prevent the port from even being opened (e.g. when CLOCAL is not set).

Not all TTY drivers guarantee that the minor number is no longer in use when registering devices however, something which can lead to a use-after-free when closing a TTY (and saving its termios) races with re-registration.

Add a new TTY_DRIVER_RESET_SAVED_TERMIOS flag to request that any saved termios state is reset on registration and only set it for drivers that make sure that the minor number is no longer in use.

The Linux kernel CVE team has assigned CVE-2026-98750 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.12 with commit 93857edd9829e144acb6c7e72d593f6e01aead66 and fixed in 6.12.113 with commit 1572d86bcf0bcb848d20fc5e5de7ed6963034c2b
	Issue introduced in 4.12 with commit 93857edd9829e144acb6c7e72d593f6e01aead66 and fixed in 6.18.56 with commit 08bf919f041af9de372428bb0c938157ea144164
	Issue introduced in 4.12 with commit 93857edd9829e144acb6c7e72d593f6e01aead66 and fixed in 7.2.10 with commit dcaf0251f847a45861e94c6617024a9455687d2f
	Issue introduced in 4.12 with commit 93857edd9829e144acb6c7e72d593f6e01aead66 and fixed in 7.3-rc6 with commit 8df07fe93573e9e548d6645273e9bcb6eb74059e

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98750

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/staging/greybus/uart.c
drivers/tty/tty_io.c
drivers/usb/class/cdc-acm.c
drivers/usb/serial/usb-serial.c
include/linux/tty_driver.h

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/1572d86bcf0bcb848d20fc5e5de7ed6963034c2b
	https://git.kernel.org/stable/c/08bf919f041af9de372428bb0c938157ea144164
	https://git.kernel.org/stable/c/dcaf0251f847a45861e94c6617024a9455687d2f
	https://git.kernel.org/stable/c/8df07fe93573e9e548d6645273e9bcb6eb74059e