In the Linux kernel, the following vulnerability has been resolved: iommufd/iova_bitmap: Ensure that iova_bitmap_set() handles the full IOVA Generally userspace is going to step the dirty bitmap through the IOVA space. However if the bitmap ends in the middle of a large PTE this is problematic. The first step will clear the dirty bit and report dirty to the end of its bitmap while the second step will see the clear'd dirty and report clean for the start of the bitmap. If it happens this ends up losing dirties. Further this function is missing bounds checking so if this does happen ther is a good chance it will write memory beyond what the userspace was expecting. Return an error code if this illegal condition happens.
https://git.kernel.org/stable/c/f41d317be00767e81ce0a664fa37ab829654ab8d
https://git.kernel.org/stable/c/e21952d72b4740f08a272d694cca223b6b0099ca
https://git.kernel.org/stable/c/dd2f8565e68cac312451926ce2e3883923caf081
https://git.kernel.org/stable/c/63ff69e265bec1712d2b7105e7c1556f73a3080f