{"id":"CVE-2022-49710","summary":"dm mirror log: round up region bitmap size to BITS_PER_LONG","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm mirror log: round up region bitmap size to BITS_PER_LONG\n\nThe code in dm-log rounds up bitset_size to 32 bits. It then uses\nfind_next_zero_bit_le on the allocated region. find_next_zero_bit_le\naccesses the bitmap using unsigned long pointers. So, on 64-bit\narchitectures, it may access 4 bytes beyond the allocated size.\n\nFix this bug by rounding up bitset_size to BITS_PER_LONG.\n\nThis bug was found by running the lvm2 testsuite with kasan.","modified":"2026-04-02T08:27:51.157486Z","published":"2025-02-26T02:24:27.532Z","related":["SUSE-SU-2025:1027-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1194-1","SUSE-SU-2025:1241-1","SUSE-SU-2025:1263-1","SUSE-SU-2025:1293-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49710.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0d2209b54f1de0c2f99cab246d4cf2cfe24aaaa9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/85e123c27d5cbc22cfdc01de1e2ca1d9003a02d0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9a02f3275acc628c0d956be771405ced79ac36df"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ae460312875159285cef5bf3dc654593f404a1ef"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ba751f0d25f07aa21ce9b85372a3792bf7969d13"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49710.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49710"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"29121bd0b00ebb9524971a583fea4a2f7afe8041"},{"fixed":"ae460312875159285cef5bf3dc654593f404a1ef"},{"fixed":"ba751f0d25f07aa21ce9b85372a3792bf7969d13"},{"fixed":"0d2209b54f1de0c2f99cab246d4cf2cfe24aaaa9"},{"fixed":"9a02f3275acc628c0d956be771405ced79ac36df"},{"fixed":"85e123c27d5cbc22cfdc01de1e2ca1d9003a02d0"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49710.json"}}],"schema_version":"1.7.5"}