CVE-2025-71154 PUBLISHED

net: usb: rtl8150: fix memory leak on usb_submit_urb() failure

Assigner: Linux
Reserved: 13.01.2026 Published: 23.01.2026 Updated: 23.01.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 4d12997a9bb3d217ad4b925ec3074ec89364bf95 to a4e2442d3c48355a84463342f397134f149936d7 (excl.)
  • affected from 4d12997a9bb3d217ad4b925ec3074ec89364bf95 to 2f966186b99550e3c665dbfb87b8314e30acea02 (excl.)
  • affected from 4d12997a9bb3d217ad4b925ec3074ec89364bf95 to db2244c580540306d60ce783ed340190720cd429 (excl.)
  • affected from 4d12997a9bb3d217ad4b925ec3074ec89364bf95 to 4bd4ea3eb326608ffc296db12c105f92dc2f2190 (excl.)
  • affected from 4d12997a9bb3d217ad4b925ec3074ec89364bf95 to 6492ad6439ff1a479fc94dc6052df3628faed8b6 (excl.)
  • affected from 4d12997a9bb3d217ad4b925ec3074ec89364bf95 to 151403e903840c9cf06754097b6732c14f26c532 (excl.)
  • affected from 4d12997a9bb3d217ad4b925ec3074ec89364bf95 to 12cab1191d9890097171156d06bfa8d31f1e39c8 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 3.10 is affected
  • unaffected from 0 to 3.10 (excl.)
  • unaffected from 5.10.248 to 5.10.* (incl.)
  • unaffected from 5.15.198 to 5.15.* (incl.)
  • unaffected from 6.1.160 to 6.1.* (incl.)
  • unaffected from 6.6.120 to 6.6.* (incl.)
  • unaffected from 6.12.64 to 6.12.* (incl.)
  • unaffected from 6.18.4 to 6.18.* (incl.)
  • unaffected from 6.19-rc4 to * (incl.)

References