# dm cache: prevent BUG_ON by blocking retries on failed device resumes

CVE record · `CVE-2025-38066`

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

Published by the CVE Program (CNA: Linux) at 18 Jun 2025, 09:33 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: `66a636356647a9be8885c2ce2948de126577698a to before c614584c2a66b538f469089ac089457a34590c14` (git)
  - affected: `66a636356647a9be8885c2ce2948de126577698a to before c5356a5e80442131e2714d0d26bb110590e4e568` (git)
  - affected: `66a636356647a9be8885c2ce2948de126577698a to before 025c8f477625eb39006ded650e7d027bcfb20e79` (git)
  - affected: `66a636356647a9be8885c2ce2948de126577698a to before 00586b78eeb7c626a14ca13453a1631f88a7cf36` (git)
  - affected: `66a636356647a9be8885c2ce2948de126577698a to before 3986ef4a9b6a0d9c28bc325d8713beba5e67586f` (git)
  - affected: `66a636356647a9be8885c2ce2948de126577698a to before cc80a5cc520939d0a7d071cc4ae4b3c55ef171d0` (git)
  - affected: `66a636356647a9be8885c2ce2948de126577698a to before f3128e3074e8af565cc6a66fe3384a56df87f803` (git)
  - affected: `66a636356647a9be8885c2ce2948de126577698a to before 5da692e2262b8f81993baa9592f57d12c2703dea` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.2`
  - unaffected: `before 4.2` (semver)
  - unaffected: `5.4.294 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.238 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.185 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.141 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.93 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.31 to 6.12.*, inclusive` (semver)
  - unaffected: `6.14.9 to 6.14.*, inclusive` (semver)
  - unaffected: `6.15 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's dm cache (device-mapper cache) code is affected from version 4.2 until fixed. Resuming a cache device that previously failed to resume due to mapping errors can trigger a kernel BUG_ON, crashing the system. Upgrade to Linux 5.4.294, 5.10.238, 5.15.185, 6.1.141, or a later version.

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.0023, the 14th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 18 Jun 2025, 09:33 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2025-38066)
- 18 Jun 2025, 10:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-38066)

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/c614584c2a66b538f469089ac089457a34590c14>
- <https://git.kernel.org/stable/c/c5356a5e80442131e2714d0d26bb110590e4e568>
- <https://git.kernel.org/stable/c/025c8f477625eb39006ded650e7d027bcfb20e79>
- <https://git.kernel.org/stable/c/00586b78eeb7c626a14ca13453a1631f88a7cf36>
- <https://git.kernel.org/stable/c/3986ef4a9b6a0d9c28bc325d8713beba5e67586f>
- <https://git.kernel.org/stable/c/cc80a5cc520939d0a7d071cc4ae4b3c55ef171d0>
- <https://git.kernel.org/stable/c/f3128e3074e8af565cc6a66fe3384a56df87f803>
- <https://git.kernel.org/stable/c/5da692e2262b8f81993baa9592f57d12c2703dea>

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-2025-38066>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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