Not scored
wifi: rtl818x: Fix potential memory leaks in rtl8180_init_rx_ring()
- Severity
- Not scored
- Exploit likelihood
- 0.20% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from f653211197f3841f383fa9757ef8ce182c6cf627 before 3677c01891fb0239361e444afee8398868e34bdf, from f653211197f3841f383fa9757ef8ce182c6cf627 before 89caaeee8dd95fae8bb4f4964e6fe3ca688500c4, from f653211197f3841f383fa9757ef8ce182c6cf627 before a4fb7cca9837378878e6c94d9e7af019c8fdfcdb, from f653211197f3841f383fa9757ef8ce182c6cf627 before bf8513dfa31ea015c9cf415796dca2113d293840, from f653211197f3841f383fa9757ef8ce182c6cf627 before ee7db11742b30641f21306105ad27a275e3c61d7, from f653211197f3841f383fa9757ef8ce182c6cf627 before a813a74570212cb5f3a7d3b05c0cb0cd00bace1d, from f653211197f3841f383fa9757ef8ce182c6cf627 before c9d1c4152e6d32fa74034464854bee262a60bc43, from f653211197f3841f383fa9757ef8ce182c6cf627 before 9b5b9c042b30befc5b37e4539ace95af70843473 and 1 more Not affected: before 2.6.25, from 5.10.248 up to 5.10.*, from 5.15.198 up to 5.15.*, from 6.1.160 up to 6.1.*, from 6.6.120 up to 6.6.*, from 6.12.63 up to 6.12.* | CVE List |
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: wifi: rtl818x: Soluciona posibles fugas de memoria en rtl8180_init_rx_ring() En rtl8180_init_rx_ring(), se asigna memoria para paquetes skb y asignaciones DMA en un bucle. Cuando una asignación falla, las asignaciones previamente exitosas no se liberan al salir. Esto se soluciona saltando a la etiqueta err_free_rings en caso de error, que llama a rtl8180_free_rx_ring() para liberar las asignaciones. Eliminar la liberación de rx_ring en la ruta de error de rtl8180_init_rx_ring(), y establecer la entrada priv -> rx_buf liberada en nulo, para evitar la doble liberación.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68759 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-68759 changed 2026-10-14 | Public domain |