diff options
| author | 2026-11-24 10:18:14 -0500 | |
|---|---|---|
| committer | 2026-11-24 10:18:14 -0500 | |
| commit | 4bc251f4983610e4cfb2bfaafbe731f1acab9df5 (patch) | |
| tree | 78153b6756c21d437eebb8609fd23e5e8fec9642 /.gitignore | |
| parent | 5fff1fe02db4a5812901fed9643b6f79a5fb02fd (diff) | |
| download | libirecovery-4bc251f4983610e4cfb2bfaafbe731f1acab9df5.tar.gz libirecovery-4bc251f4983610e4cfb2bfaafbe731f1acab9df5.tar.bz2 | |
Fix use-after-free and leak in libusb async control transfer
irecv_async_usb_control_transfer() freed the setup buffer right after
libusb_submit_transfer(), while the transfer was still in flight and
although LIBUSB_TRANSFER_FREE_BUFFER had handed it to libusb, and never
freed the transfer.
Nothing waits for this transfer, so set LIBUSB_TRANSFER_FREE_TRANSFER as
well and let libusb free both once it completes. If the submit fails,
libusb_free_transfer() frees both.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions
