UBUNTU-CVE-2026-98696: Use After Free
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 "newid" 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Operational
Before deregistering the USB driver, remove the USB serial driver's "new_id" attributes so that new IDs cannot be added and trigger a probe after deregistration.
- Operational
When unloading the driver module, deregister the USB driver before deregistering the USB serial bus drivers, ensuring I/O stops before ports are unbound.