Skip to contentSkip to conversation

CVE-2026-98696: USB: serial: fix driver deregistration order

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 driver deregistration order

USB serial driver modules register one driver for the USB bus and one or more drivers for the ports on the USB serial bus.

When unloading a driver module, the USB driver must be deregistered before the USB serial bus drivers so that I/O is stopped before unbinding the ports to avoid use-after-free in completion handlers accessing port data.

Note that the "new_id" attributes must first be removed to prevent new ids from being added and triggering a probe of the USB driver after it has been deregistered.

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

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

	Issue introduced in 3.4 with commit 765e0ba62613fb90f09c1b5926750df0aa56f349 and fixed in 6.12.113 with commit 9b085a06a0a411b0bcdf18b61c3ebf1be1c72ffe
	Issue introduced in 3.4 with commit 765e0ba62613fb90f09c1b5926750df0aa56f349 and fixed in 6.18.56 with commit a1aa474768f69ea3a70da523f00f74c264cfa10e
	Issue introduced in 3.4 with commit 765e0ba62613fb90f09c1b5926750df0aa56f349 and fixed in 7.2.10 with commit 428d479a0d31460fbf5969ab262ccd673f1fac01
	Issue introduced in 3.4 with commit 765e0ba62613fb90f09c1b5926750df0aa56f349 and fixed in 7.3-rc6 with commit 646e5b28b4fdbc1b828a2398d6ced2c1dd308a46

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

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/bus.c
drivers/usb/serial/usb-serial.c
include/linux/usb/serial.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/9b085a06a0a411b0bcdf18b61c3ebf1be1c72ffe
	https://git.kernel.org/stable/c/a1aa474768f69ea3a70da523f00f74c264cfa10e
	https://git.kernel.org/stable/c/428d479a0d31460fbf5969ab262ccd673f1fac01
	https://git.kernel.org/stable/c/646e5b28b4fdbc1b828a2398d6ced2c1dd308a46