net: usb: rtl8150: fix memory leak on usb_submit_urb() failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4d12997a9bb3d217ad4b925ec3074ec89364bf95 · < 151403e903840c9cf06754097b6732c14f26c532| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s rtl8150 USB network driver leaks an allocated request and URB if usb_submit_urb() fails. The input does not establish whether an attacker can trigger the failure or specify access, authentication, or user-interaction conditions.
Teams running Linux kernels with the rtl8150 USB network driver should check their versions; affected versions are not specified.