{"id":"CVE-2022-49710","state":"PUBLISHED","title":"dm mirror log: round up region bitmap size to BITS_PER_LONG","description":"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.","publishedAt":"2025-02-26T02:24:27.532Z","updatedAt":"2026-05-11T19:05:14.868Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"29121bd0b00ebb9524971a583fea4a2f7afe8041","status":"affected","lessThan":"ae460312875159285cef5bf3dc654593f404a1ef","versionType":"git"},{"version":"29121bd0b00ebb9524971a583fea4a2f7afe8041","status":"affected","lessThan":"ba751f0d25f07aa21ce9b85372a3792bf7969d13","versionType":"git"},{"version":"29121bd0b00ebb9524971a583fea4a2f7afe8041","status":"affected","lessThan":"0d2209b54f1de0c2f99cab246d4cf2cfe24aaaa9","versionType":"git"},{"version":"29121bd0b00ebb9524971a583fea4a2f7afe8041","status":"affected","lessThan":"9a02f3275acc628c0d956be771405ced79ac36df","versionType":"git"},{"version":"29121bd0b00ebb9524971a583fea4a2f7afe8041","status":"affected","lessThan":"85e123c27d5cbc22cfdc01de1e2ca1d9003a02d0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-log.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.18","versionType":"semver"},{"version":"5.4.200","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.124","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.49","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.18.6","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-log.c"]}],"references":["https://git.kernel.org/stable/c/ae460312875159285cef5bf3dc654593f404a1ef","https://git.kernel.org/stable/c/ba751f0d25f07aa21ce9b85372a3792bf7969d13","https://git.kernel.org/stable/c/0d2209b54f1de0c2f99cab246d4cf2cfe24aaaa9","https://git.kernel.org/stable/c/9a02f3275acc628c0d956be771405ced79ac36df","https://git.kernel.org/stable/c/85e123c27d5cbc22cfdc01de1e2ca1d9003a02d0"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49710.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49710","state":"PUBLISHED","datePublished":"2025-02-26T02:24:27.532Z","dateUpdated":"2026-05-11T19:05:14.868Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-02-26T02:21:30.444Z"},"containers":{"cna":{"title":"dm mirror log: round up region bitmap size to BITS_PER_LONG","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"29121bd0b00ebb9524971a583fea4a2f7afe8041","status":"affected","lessThan":"ae460312875159285cef5bf3dc654593f404a1ef","versionType":"git"},{"version":"29121bd0b00ebb9524971a583fea4a2f7afe8041","status":"affected","lessThan":"ba751f0d25f07aa21ce9b85372a3792bf7969d13","versionType":"git"},{"version":"29121bd0b00ebb9524971a583fea4a2f7afe8041","status":"affected","lessThan":"0d2209b54f1de0c2f99cab246d4cf2cfe24aaaa9","versionType":"git"},{"version":"29121bd0b00ebb9524971a583fea4a2f7afe8041","status":"affected","lessThan":"9a02f3275acc628c0d956be771405ced79ac36df","versionType":"git"},{"version":"29121bd0b00ebb9524971a583fea4a2f7afe8041","status":"affected","lessThan":"85e123c27d5cbc22cfdc01de1e2ca1d9003a02d0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-log.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.18","versionType":"semver"},{"version":"5.4.200","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.124","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.49","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.18.6","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-log.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ae460312875159285cef5bf3dc654593f404a1ef"},{"url":"https://git.kernel.org/stable/c/ba751f0d25f07aa21ce9b85372a3792bf7969d13"},{"url":"https://git.kernel.org/stable/c/0d2209b54f1de0c2f99cab246d4cf2cfe24aaaa9"},{"url":"https://git.kernel.org/stable/c/9a02f3275acc628c0d956be771405ced79ac36df"},{"url":"https://git.kernel.org/stable/c/85e123c27d5cbc22cfdc01de1e2ca1d9003a02d0"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:05:14.868Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"5.4.200"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"5.10.124"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"5.15.49"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"5.18.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"5.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}