According to claude the issue is
commit e498eb93f961 ("virtio_ring: use shadow flags when detaching split descriptors")
and those commits should be dropped
Right, I've dropped all three from the 6.18 queue.
6.18 lacks 03f05c4eeb7b ("virtio_ring: determine descriptor flags at one time"), so the desc_extra shadow flags of the last descriptor in a direct chain keep VRING_DESC_F_NEXT unless its buffer needs unmapping. With the shadow flags as the loop condition, detach_buf_split() then walks past the end of the chain into the free list. 7.3 has 03f05c4eeb7b and keeps the patch.