Skip to contentSkip to conversation

CVE-2026-98695: USB: serial: fix ioctl hangup 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:

USB: serial: fix ioctl hangup race

The tty ioctls can race with hangup and end up calling into a tty driver for a device that is already gone or powered down.

Serialise the callbacks using the tty port mutex and add the missing checks to make sure the port has not been hung up before accessing port driver data or hardware.

This specifically avoids dereferencing a NULL-pointer if a device is disconnected during lengthy break signalling.

Note that TIOCGICOUNT and TIOCMIWAIT do not access port driver data or hardware and are therefore not affected by the race.

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

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

	Issue introduced in 2.6.26 with commit f34d7a5b7010b82fe97da95496b9971435530062 and fixed in 6.12.113 with commit ae0da9a5c1ca95c20cc5feffd511ce6eae75924e
	Issue introduced in 2.6.26 with commit f34d7a5b7010b82fe97da95496b9971435530062 and fixed in 6.18.56 with commit 4597ddd6168ae2a4123404e5f0871f1070dc7773
	Issue introduced in 2.6.26 with commit f34d7a5b7010b82fe97da95496b9971435530062 and fixed in 7.2.10 with commit 7912a95d1345c77d8d63b530b00c118700b78abd
	Issue introduced in 2.6.26 with commit f34d7a5b7010b82fe97da95496b9971435530062 and fixed in 7.3-rc6 with commit ae0e61d95677efa778379853e495d748e6efbf95

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-98695

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/usb/serial/generic.c
drivers/usb/serial/usb-serial.c
drivers/usb/serial/xr_serial.c

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/ae0da9a5c1ca95c20cc5feffd511ce6eae75924e
	https://git.kernel.org/stable/c/4597ddd6168ae2a4123404e5f0871f1070dc7773
	https://git.kernel.org/stable/c/7912a95d1345c77d8d63b530b00c118700b78abd
	https://git.kernel.org/stable/c/ae0e61d95677efa778379853e495d748e6efbf95