[libusb] Fix racy UAF in libusb_get_next_timeout
The usbi_transfer object should not be accessed after dropping the flying_transfers lock as it could be freed by another thread. The simple fix is to copy the timeout from the transfer rather than holding a pointer to it. Bug: 1017020 Change-Id: I00c349caf2e87b79c8e6f89f35fda673cf47e9fa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1901355Reviewed-by:Ovidio de Jesús Ruiz-Henríquez <odejesush@chromium.org> Commit-Queue: Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/master@{#713532}
Showing
Please register or sign in to comment