# CVE-2025-38141: dm: fix dm\_blk\_report\_zones

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-07-03T08:35:42.787Z
- **Modified:** 2026-08-05T11:59:51.188Z

## Who should check

- Anyone running Linux \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< f9c1bdf24615303d48a2d0fd629c88f3189563aa; \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< d19bc1b4dd5f322980b1f05f79b2ea4f0db10920; \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< 37f53a2c60d03743e0eacf7a0c01c279776fef4e
- Anyone running Linux 6.10

## Description

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

dm: fix dm\_blk\_report\_zones

If dm\_get\_live\_table() returned NULL, dm\_put\_live\_table() was never
called. Also, it is possible that md-\>zone\_revalidate\_map will change
while calling this function. Only read it once, so that we are always
using the same value. Otherwise we might miss a call to
dm\_put\_live\_table().

Finally, while md-\>zone\_revalidate\_map is set and a process is calling
blk\_revalidate\_disk\_zones() to set up the zone append emulation
resources, it is possible that another process, perhaps triggered by
blkdev\_report\_zones\_ioctl(), will call dm\_blk\_report\_zones(). If
blk\_revalidate\_disk\_zones() fails, these resources can be freed while
the other process is still using them, causing a use-after-free error.

blk\_revalidate\_disk\_zones() will only ever be called when initially
setting up the zone append emulation resources, such as when setting up
a zoned dm-crypt table for the first time. Further table swaps will not
set md-\>zone\_revalidate\_map or call blk\_revalidate\_disk\_zones().
However it must be called using the new table (referenced by
md-\>zone\_revalidate\_map) and the new queue limits while the DM device is
suspended. dm\_blk\_report\_zones() needs some way to distinguish between a
call from blk\_revalidate\_disk\_zones(), which must be allowed to use
md-\>zone\_revalidate\_map to access this not yet activated table, and all
other calls to dm\_blk\_report\_zones(), which should not be allowed while
the device is suspended and cannot use md-\>zone\_revalidate\_map, since
the zone resources might be freed by the process currently calling
blk\_revalidate\_disk\_zones().

Solve this by tracking the process that sets md-\>zone\_revalidate\_map in
dm\_revalidate\_zones() and only allowing that process to make use of it
in dm\_blk\_report\_zones().

## Affected and fixed versions

- Linux: \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< f9c1bdf24615303d48a2d0fd629c88f3189563aa; \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< d19bc1b4dd5f322980b1f05f79b2ea4f0db10920; \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< 37f53a2c60d03743e0eacf7a0c01c279776fef4e (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- Upgrade Linux to 37f53a2c60d03743e0eacf7a0c01c279776fef4e or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38141. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38141.md
Affected: Linux >= f211268ed1f9bdf48f06a3ead5f5d88437450579, < f9c1bdf24615303d48a2d0fd629c88f3189563aa; >= f211268ed1f9bdf48f06a3ead5f5d88437450579, < d19bc1b4dd5f322980b1f05f79b2ea4f0db10920; >= f211268ed1f9bdf48f06a3ead5f5d88437450579, < 37f53a2c60d03743e0eacf7a0c01c279776fef4e; Linux 6.10
Fixed in: Linux 37f53a2c60d03743e0eacf7a0c01c279776fef4e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38141 being exploited?

There is no confirmed exploitation: CVE-2025-38141 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38141?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38141?

Linux \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< f9c1bdf24615303d48a2d0fd629c88f3189563aa; \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< d19bc1b4dd5f322980b1f05f79b2ea4f0db10920; \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< 37f53a2c60d03743e0eacf7a0c01c279776fef4e; Linux 6.10.

### Is there a fix for CVE-2025-38141?

Yes. Fixed in Linux 37f53a2c60d03743e0eacf7a0c01c279776fef4e. Upgrade Linux to 37f53a2c60d03743e0eacf7a0c01c279776fef4e or later.

### How do I check if I'm affected by CVE-2025-38141?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/f9c1bdf24615303d48a2d0fd629c88f3189563aa>
- patch: <https://git.kernel.org/stable/c/d19bc1b4dd5f322980b1f05f79b2ea4f0db10920>
- patch: <https://git.kernel.org/stable/c/37f53a2c60d03743e0eacf7a0c01c279776fef4e>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38141>

HTML: <https://flawdb.com/CVE-2025-38141> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38141>
