Description
In the Linux kernel, the following vulnerability has been resolved: vhost-scsi: fix page reference leak in misaligned I/O fallback iov_iter_get_pages2() returns a byte count that excludes the offset into the first page, but also returns a reference to that page in pages[]. On the misaligned-I/O fallback, vhost_scsi_revert_map_iov_to_sgl() puts pages already added to the SG list. The cleanup loop starts at pages[npages], but accounts for its first page as PAGE_SIZE bytes rather than PAGE_SIZE - offset. If the remaining data starts at a non-zero offset, it can finish one page early and leave a page reference behind. Use PAGE_SIZE - offset for the first remaining page and clear offset for later pages, as in the mapping loop. Without this, each affected request leaks one page reference.
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
bca939d5bcd00d6faea99c47eafd60bed573ef03 to < 44ad9732ef903b64caf87e79ce07bd26f49b4dc6affectedbca939d5bcd00d6faea99c47eafd60bed573ef03 to < 7738c87c414ed16c8e5daf6d3b96cf2f9e613dbcaffectedbca939d5bcd00d6faea99c47eafd60bed573ef03 to < 058fc59326af3350c6e830858e56d2aeecabe0a2affected
Linux Linux
Default version status: affected
6.15affected0 to < 6.15unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc2 to ≤ *unaffected