CVE-2022-49710

dm mirror log: round up region bitmap size to BITS_PER_LONG

No CVSS score yet EPSS 0.28%

Published 26 Feb 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-49710

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-49710 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.28%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 22.0% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 29121bd0b00ebb9524971a583fea4a2f7afe8041, before ae460312875159285cef5bf3dc654593f404a1ef
affected from 29121bd0b00ebb9524971a583fea4a2f7afe8041, before ba751f0d25f07aa21ce9b85372a3792bf7969d13
affected from 29121bd0b00ebb9524971a583fea4a2f7afe8041, before 0d2209b54f1de0c2f99cab246d4cf2cfe24aaaa9
affected from 29121bd0b00ebb9524971a583fea4a2f7afe8041, before 9a02f3275acc628c0d956be771405ced79ac36df
affected from 29121bd0b00ebb9524971a583fea4a2f7afe8041, before 85e123c27d5cbc22cfdc01de1e2ca1d9003a02d0
Other versions: unaffected
Linux
affected 2.6.18
unaffected before 2.6.18
unaffected from 5.4.200 up to and including 5.4.*
unaffected from 5.10.124 up to and including 5.10.*
unaffected from 5.15.49 up to and including 5.15.*
unaffected from 5.18.6 up to and including 5.18.*
unaffected 5.19 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-49710 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49710

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-49710
trivy image --scanners vuln IMAGE | grep CVE-2022-49710

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-49710 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.