wifi: rtl818x: Fix potential memory leaks in rtl8180_init_rx_ring()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f653211197f3841f383fa9757ef8ce182c6cf627 · < a813a74570212cb5f3a7d3b05c0cb0cd00bace1d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: rtl818x: Fix potential memory leaks in rtl8180_init_rx_ring()
In rtl8180_init_rx_ring(), memory is allocated for skb packets and DMA allocations in a loop. When an allocation fails, the previously successful allocations are not freed on exit.
Fix that by jumping to err_free_rings label on error, which calls rtl8180_free_rx_ring() to free the allocations. Remove the free of rx_ring in rtl8180_init_rx_ring() error path, and set the freed priv->rx_buf entry to null, to avoid double free.
From the CVE record · Linux
The Linux kernel’s rtl818x Wi-Fi driver can leak previously allocated packet and DMA memory if an allocation fails during receive-ring initialization. The input does not describe how an attacker could trigger the failure or specify network access, authentication, or user-interaction requirements.
Teams running Linux kernels with the rtl818x Wi-Fi driver should check their deployments; affected versions are not specified.