CVE-2026-139654: wifi: rtl8xxxu: free RX skb when URB submission fails

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

wifi: rtl8xxxu: free RX skb when URB submission fails

When usbsubmiturb() fails, rtl8xxxusubmitrxurb() unanchors the URB but leaves the newly allocated skb in urb.context. For ENOMEM/EAGAIN, the RX worker puts the request back on the pending list. The next submission allocates another skb and overwrites that pointer, leaking the previous buffer. Stopping before the retry also leaks it, because pending-list cleanup frees only the URB.

Free the skb and clear urb.context in rtl8xxxusubmitrxurb() when submission fails. This keeps buffer allocation and failure cleanup in the same function, so a request returned for retry or teardown no longer owns an skb. Remove the corresponding cleanup from start and the RX worker; they only need to decide whether to retry or free the URB.

Affected Software

1 affected component
Linux Linux kernel (rtl8xxxu driver)

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In rtl8xxxu_submit_rx_urb(), free the allocated skb and clear urb.context when usb_submit_urb() fails, including for ENOMEM/EAGAIN, so retries and teardown do not leak the buffer.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:36 PM
Data Sourced
via MITRE·01:36 PM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux kernel's rtl8xxxu Wi-Fi driver are affected when RX URB submission fails. The issue is specific to receive-buffer handling in that driver.

2

What condition triggers the memory leak?

The leak occurs when usb_submit_urb() fails after a receive skb has been allocated and stored in urb.context. It is specifically described for ENOMEM or EAGAIN failures, where the request may be queued for retry and a later submission overwrites the previous skb pointer.

3

What happens if the driver is stopped before a failed request is retried?

The skb can still leak. Pending-list cleanup frees only the URB, while the skb left in urb.context is not freed.

4

What does the fix change?

The fix frees the receive skb and clears urb.context directly in rtl8xxxu_submit_rx_urb() whenever URB submission fails. This ensures retry and teardown paths no longer retain ownership of an allocated skb.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203