Description
In the Linux kernel, the following vulnerability has been resolved: wifi: rtl8xxxu: unwind incomplete receive startup rtl8xxxu_start() 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 rtl8xxxu_stop(), 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 rtl8xxxu_start() except interrupt-URB allocation and submission failures, which this adapter does not use.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
26f1fad29ad973b0fb26a9ca3dcb2a73dde781aa to < 6b453e5e9af4edb5d329adba00b15dd0b3efb5ecaffected26f1fad29ad973b0fb26a9ca3dcb2a73dde781aa to < 29c3da645c759b12147f9509b6aa638edebb7750affected26f1fad29ad973b0fb26a9ca3dcb2a73dde781aa to < d00fde10a30d6501e4756f8481da95fa30f421bdaffected26f1fad29ad973b0fb26a9ca3dcb2a73dde781aa to < 4c58fb8944a2cfbe5506534de0cf58646408d31aaffected
Linux Linux
Default version status: affected
4.4affected0 to < 4.4unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected