# dm ioctl: fix misbehavior if list_versions races with module loading

CVE record · `CVE-2022-49771`

- **Identifiers:** `CVE-2022-49771`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 1 May 2025
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 1 May 2025, 14:09 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 0c8d4112df329bf3dfbf27693f918c3b08676538` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 6a818db0d5aecf80d4ba9e10ac153f60adc629ca` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 3a1c35d72dc0b34d1e746ed705790c0f630aa427` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before b545c0e1e4094d4de2bdfe9a3823f9154b0c0005` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before f59f5a269ca5e43c567aca7f1f52500a0186e9b7` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 6ffce7a92ef5c68f7e5d6f4d722c2f96280c064b` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 5398b8e275bf81a2517b327d216c0f37ac9ac5ae` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 4fe1ec995483737f3d2a14c3fe1d8fe634972979` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `2.6.12`
  - unaffected: `before 2.6.12` (semver)
  - unaffected: `4.9.334 to 4.9.*, inclusive` (semver)
  - unaffected: `4.14.300 to 4.14.*, inclusive` (semver)
  - unaffected: `4.19.267 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.225 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.156 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.80 to 5.15.*, inclusive` (semver)
  - unaffected: `6.0.10 to 6.0.*, inclusive` (semver)
  - unaffected: `6.1 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel device-mapper ioctl list_versions call can return truncated results when a target module loads during the call. The source gives few details on who can trigger this or what else they could do. Upgrade to 4.9.334, 4.14.300, 4.19.267, or 5.4.225, or a later release in the same series.

Written 16 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0016, the 5th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 1 May 2025, 14:09 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2022-49771)
- 1 May 2025, 15:16 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-49771)

## Sources

- [CVE List: CVE-2022-49771](https://www.cve.org/CVERecord?id=CVE-2022-49771)
- [NVD: CVE-2022-49771](https://nvd.nist.gov/vuln/detail/CVE-2022-49771)

### References from the CNA

- <https://git.kernel.org/stable/c/0c8d4112df329bf3dfbf27693f918c3b08676538>
- <https://git.kernel.org/stable/c/6a818db0d5aecf80d4ba9e10ac153f60adc629ca>
- <https://git.kernel.org/stable/c/3a1c35d72dc0b34d1e746ed705790c0f630aa427>
- <https://git.kernel.org/stable/c/b545c0e1e4094d4de2bdfe9a3823f9154b0c0005>
- <https://git.kernel.org/stable/c/f59f5a269ca5e43c567aca7f1f52500a0186e9b7>
- <https://git.kernel.org/stable/c/6ffce7a92ef5c68f7e5d6f4d722c2f96280c064b>
- <https://git.kernel.org/stable/c/5398b8e275bf81a2517b327d216c0f37ac9ac5ae>
- <https://git.kernel.org/stable/c/4fe1ec995483737f3d2a14c3fe1d8fe634972979>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2022-49771>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2022-49771/>. Everything for agents: <https://agentprime.io/llms.txt>.
