CVE-2022-49710

dm mirror log: round up region bitmap size to BITS_PER_LONG

MEDIUM
5.5
CVSS Score
Published: February 26, 2025 at 02:24 AM UTC
Updated: June 17, 2026 at 05:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%

Description

In the Linux kernel, the following vulnerability has been resolved: dm mirror log: round up region bitmap size to BITS_PER_LONG The code in dm-log rounds up bitset_size to 32 bits. It then uses find_next_zero_bit_le on the allocated region. find_next_zero_bit_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 bitset_size to BITS_PER_LONG. This bug was found by running the lvm2 testsuite with kasan.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.18 ≤ v < 5.10.1242.6.18 ≤ v < 5.15.492.6.18 ≤ v < 5.18.62.6.18 ≤ v < 5.192.6.18 ≤ v < 5.4.2005.11 ≤ v < 5.15.495.16 ≤ v < 5.18.65.5 ≤ v < 5.10.1242.6.1829121bd0b00ebb9524971a583fea4a2f7afe80415.19 rc15.19 rc2
Vendor states this is fixed in 0d2209b54f1de0c2f99cab246d4cf2cfe24aaaa9 (fixed)
Vendor states this is fixed in 85e123c27d5cbc22cfdc01de1e2ca1d9003a02d0 (fixed)
Vendor states this is fixed in 9a02f3275acc628c0d956be771405ced79ac36df (fixed)
Vendor states this is fixed in ae460312875159285cef5bf3dc654593f404a1ef (fixed)
Vendor states this is fixed in ba751f0d25f07aa21ce9b85372a3792bf7969d13 (fixed)
Vendor states this is fixed in 2.6.18 (unaffected)
Vendor states this is fixed in 5.10.124 (unaffected)
Vendor states this is fixed in 5.15.49 (unaffected)
Vendor states this is fixed in 5.18.6 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.4.200 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0d2209b54f1de0c2f99cab246d4cf2cfe24aaaa9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/85e123c27d5cbc22cfdc01de1e2ca1d9003a02d0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9a02f3275acc628c0d956be771405ced79ac36df
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ae460312875159285cef5bf3dc654593f404a1ef
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ba751f0d25f07aa21ce9b85372a3792bf7969d13

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card