CVE-2022-49710 dm mirror log: round up region bitmap size to BITS_PER_LONG
A kernel bug in dm mirror log allows out-of-bounds memory access on 64-bit systems, potentially causing crashes or undefined behavior.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-49710?
CVE-2022-49710 is a medium-severity memory corruption vulnerability in Linux kernel, published on 26 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2022-49710?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49710?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-49710 being exploited?
There is no known exploitation of CVE-2022-49710 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-49710, GHSA-v6fv-v2qw-3wr9, UBUNTU-CVE-2022-49710.