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-04-11T12:44:27.892965Z
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
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49710.json",
    "cna_assigner": "Linux"
}
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"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.18
Fixed
5.4.200
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.124
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.49
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.18.6

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49710.json"