5.5medium
net: usb: rtl8150: fix memory leak on usb_submit_urb() failure
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.14% (higher than 3% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: net: usb: rtl8150: fix memory leak on usb_submit_urb() failure In async_set_registers(), when usb_submit_urb() fails, the allocated async_req structure and URB are not freed, causing a memory leak. The completion callback async_set_reg_cb() is responsible for freeing these allocations, but it is only called after the URB is successfully submitted and completes (successfully or with error). If submission fails, the callback never runs and the memory is leaked. Fix this by freeing both the URB and the request structure in the error path when usb_submit_urb() fails.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 4d12997a9bb3d217ad4b925ec3074ec89364bf95 before a4e2442d3c48355a84463342f397134f149936d7, from 4d12997a9bb3d217ad4b925ec3074ec89364bf95 before 2f966186b99550e3c665dbfb87b8314e30acea02, from 4d12997a9bb3d217ad4b925ec3074ec89364bf95 before db2244c580540306d60ce783ed340190720cd429, from 4d12997a9bb3d217ad4b925ec3074ec89364bf95 before 4bd4ea3eb326608ffc296db12c105f92dc2f2190, from 4d12997a9bb3d217ad4b925ec3074ec89364bf95 before 6492ad6439ff1a479fc94dc6052df3628faed8b6, from 4d12997a9bb3d217ad4b925ec3074ec89364bf95 before 151403e903840c9cf06754097b6732c14f26c532, from 4d12997a9bb3d217ad4b925ec3074ec89364bf95 before 12cab1191d9890097171156d06bfa8d31f1e39c8, 3.10 Not affected: before 3.10, 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.64 up to 6.12.* | CVE List |
| linux linux_kernel | from 3.10.1 before 5.10.248, from 5.11 before 5.15.198, from 5.16 before 6.1.160, from 6.2 before 6.6.120, from 6.7 before 6.12.64, from 6.13 before 6.18.4, 3.10, 6.19 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: net: usb: rtl8150: fix memory leak on usb_submit_urb() failure In async_set_registers(), when usb_submit_urb() fails, the allocated async_req structure and URB are not freed, causing a memory leak. The completion callback async_set_reg_cb() is responsible for freeing these allocations, but it is only called after the URB is successfully submitted and completes (successfully or with error). If submission fails, the callback never runs and the memory is leaked. Fix this by freeing both the URB and the request structure in the error path when usb_submit_urb() fails.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: usb: rtl8150: corregir fuga de memoria en caso de fallo de usb_submit_urb() En async_set_registers(), cuando usb_submit_urb() falla, la estructura async_req asignada y el URB no se liberan, causando una fuga de memoria. La función de devolución de llamada de finalización async_set_reg_cb() es responsable de liberar estas asignaciones, pero solo se llama después de que el URB se envía con éxito y se completa (con éxito o con error). Si el envío falla, la función de devolución de llamada nunca se ejecuta y la memoria se fuga. Solucione esto liberando tanto el URB como la estructura de solicitud en la ruta de error cuando usb_submit_urb() falla.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-71154 changed 2026-10-19 | CVE Terms of Use |
| NVD | CVE-2025-71154 changed 2026-10-19 | Public domain |