CVE-2026-139653: wifi: rtl8xxxu: unwind incomplete receive startup
In the Linux kernel, the following vulnerability has been resolved:
wifi: rtl8xxxu: unwind incomplete receive startup
rtl8xxxustart() allocates and submits RX URBs one at a time. If a later allocation fails, the error path frees the TX pool but leaves earlier RX requests active. A partial TX or RX allocation failure can also leave ret at zero, so start reports success despite the incomplete setup.
Allocate the RX pool before submitting any of it, and return ENOMEM whenever a pool allocation fails. Pass start errors through rtl8xxxustop(), including interrupt URB submission failures, so the existing stop path cancels work and releases both active requests and partially allocated pools.
Share the submission loop with the RX worker. Both callers keep requests that fail with ENOMEM/EAGAIN. For a fatal error during startup, free the rest of the unsubmitted batch and return the error so start can unwind. In the worker, free only the failed request and continue with the rest of the batch.
Keep the allocation loop in a small helper so the setup and error paths in start remain easy to follow.
On an RTL8192EU, I exercised every error exit in rtl8xxxustart() except interrupt-URB allocation and submission failures, which this adapter does not use.
Affected Software
Event History
Frequently Asked Questions
Which startup failures can leave the driver in an inconsistent state?
A later RX URB allocation failure can leave previously submitted RX requests active. Partial TX or RX pool allocation failures can also result in startup reporting success, and interrupt URB submission failures need to be passed through the stop path for cleanup.
What cleanup behavior does the fix introduce when startup fails?
Startup errors are passed to rtl8xxxu_stop(), which cancels active work and releases active requests and partially allocated pools. For fatal submission errors during startup, unsubmitted requests in the batch are freed and the error is returned.