Description
In the Linux kernel, the following vulnerability has been resolved: can: etas_es58x: es58x_read_bulk_callback(): fix RX buffer leak on URB resubmit failure es58x_read_bulk_callback() resubmits the RX URB after processing a received packet. If the resubmit succeeds, the URB remains anchored and will be handled by the normal RX path or by teardown. However, if usb_submit_urb() fails, the callback unanchors the URB and then returns directly. This skips the existing free_urb path, so the coherent transfer buffer allocated with usb_alloc_coherent() is not released. Reuse the existing free_urb path after a resubmit failure so that the RX coherent buffer is freed before leaving the callback.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
7a0171b4921ad443fee5ed4fcb9d99fa4776edac to < c7ddf119544eea2d8409e12471c3f9f36ca02e3faffected2185ea6e4ebcb61d1224dc7d187c59723cb5ad59 to < 21da1a374769751546cc131e58a4d8bd968f57b2affectedf6e90c113c92e83fc0963d5e60e16b0e8a268981 to < 0ef136ba052101243ba117a1aca6f4a4c3a81142affectedb878444519fa03a3edd287d1963cf79ef78be2f1 to < b85e5c310382803d27adf6fe6554d4208bc8951caffected18eee279e9b5bff0db1aca9475ae4bc12804f05c to < c311f17c261fd375ddf5755f2ebe1f022c19c5b0affected5eaad4f768266f1f17e01232ffe2ef009f8129b7 to < 19c6c8c6cd5dd14fab5fcd744584812a57cbb78daffected5eaad4f768266f1f17e01232ffe2ef009f8129b7 to < 7a0cf2b2497c757c3cb1286eddf2986abb0d387baffectedb8f9ca88253574638bcff38900a4c28d570b1919affected5.15.203 to < 5.15.216affected6.1.167 to < 6.1.183affected6.6.130 to < 6.6.151affected6.12.77 to < 6.12.103affected6.18.17 to < 6.18.44affected6.19.7 to < 6.20affected
Linux Linux
Default version status: affected
7.0affected0 to < 7.0unaffected5.15.216 to ≤ 5.15.*unaffected6.1.183 to ≤ 6.1.*unaffected6.6.151 to ≤ 6.6.*unaffected6.12.103 to ≤ 6.12.*unaffected6.18.44 to ≤ 6.18.*unaffected7.1.8 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/c7ddf119544eea2d8409e12471c3f9f36ca02e3f ↗
- https://git.kernel.org/stable/c/21da1a374769751546cc131e58a4d8bd968f57b2 ↗
- https://git.kernel.org/stable/c/0ef136ba052101243ba117a1aca6f4a4c3a81142 ↗
- https://git.kernel.org/stable/c/b85e5c310382803d27adf6fe6554d4208bc8951c ↗
- https://git.kernel.org/stable/c/c311f17c261fd375ddf5755f2ebe1f022c19c5b0 ↗
- https://git.kernel.org/stable/c/19c6c8c6cd5dd14fab5fcd744584812a57cbb78d ↗
- https://git.kernel.org/stable/c/7a0cf2b2497c757c3cb1286eddf2986abb0d387b ↗