In the Linux kernel, the following vulnerability has been resolved:
dm mirror log: round up region bitmap size to BITSPERLONG
The code in dm-log rounds up bitsetsize to 32 bits. It then uses findnextzerobitle on the allocated region. findnextzerobit_le accesses the bitmap using unsigned long pointers. So, on 64-bit architectures, it may access 4 bytes beyond the allocated size.
Fix this bug by rounding up bitsetsize to BITSPER_LONG.
This bug was found by running the lvm2 testsuite with kasan.