Menu

Star on GitHub · 3.2k

CVE-2022-49771

4.7 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: dm ioctl: fix misbehavior if list_versions races with module loading __list_versions will first estimate the required space usi…

Published May 1, 2025CWE-362EPSS 0.16%

Overview

CVE-2022-49771 is a medium-severity vulnerability. It was published on May 1, 2025 and has a CVSS 3.1 base score of 4.7 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 4.7, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

dm ioctl: fix misbehavior if list_versions races with module loading

__list_versions will first estimate the required space using the

"dm_target_iterate(list_version_get_needed, &needed)" call and then will

fill the space using the "dm_target_iterate(list_version_get_info,

&iter_info)" call. Each of these calls locks the targets using the

"down_read(&_lock)" and "up_read(&_lock)" calls, however between the first

and second "dm_target_iterate" there is no lock held and the target

modules can be loaded at this point, so the second "dm_target_iterate"

call may need more space than what was the first "dm_target_iterate"

returned.

The code tries to handle this overflow (see the beginning of

list_version_get_info), however this handling is incorrect.

The code sets "param->data_size = param->data_start + needed" and

"iter_info.end = (char *)vers+len" - "needed" is the size returned by the

first dm_target_iterate call; "le

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2022-49771?

CVE-2022-49771 is a medium-severity vulnerability. It was published on May 1, 2025 and has a CVSS 3.1 base score of 4.7 (MEDIUM).

How severe is CVE-2022-49771?

This vulnerability has a CVSS 3.1 base score of 4.7, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-49771?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-49771?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-49771 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2022

View all