CVE-2022-49710

Source
https://cve.org/CVERecord?id=CVE-2022-49710
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49710.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49710
Downstream
Related
Published
2025-02-26T02:24:27.532Z
Modified
2026-03-12T03:25:38.597460Z
Summary
dm mirror log: round up region bitmap size to BITS_PER_LONG
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49710.json"
}
References

Affected packages

Git / 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/osv-test-cve-osv-conversion/osv-output/CVE-2022-49710.json"