# CVE-2025-39792: dm: Always split write BIOs to zoned device limits

> 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.25% (percentile 10, 2026-11-26)
- **Published:** 2025-09-12T15:59:29.477Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< d10bf66d9f9335ffc7521b3029b114f50604cabe; \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< f5dd256333c08ab44b5aec4a8118cb04c0f20c54; \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< 4e9fef1cf0243d665d75c371cc80be6156cd30a2; \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< 2df7168717b7d2d32bcf017c68be16e4aae9dd13
- Anyone running Linux 6.10

## Description

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

dm: Always split write BIOs to zoned device limits

Any zoned DM target that requires zone append emulation will use the
block layer zone write plugging. In such case, DM target drivers must
not split BIOs using dm\_accept\_partial\_bio() as doing so can potentially
lead to deadlocks with queue freeze operations. Regular write operations
used to emulate zone append operations also cannot be split by the
target driver as that would result in an invalid writen sector value
return using the BIO sector.

In order for zoned DM target drivers to avoid such incorrect BIO
splitting, we must ensure that large BIOs are split before being passed
to the map() function of the target, thus guaranteeing that the
limits for the mapped device are not exceeded.

dm-crypt and dm-flakey are the only target drivers supporting zoned
devices and using dm\_accept\_partial\_bio().

In the case of dm-crypt, this function is used to split BIOs to the
internal max\_write\_size limit (which will be suppressed in a different
patch). However, since crypt\_alloc\_buffer() uses a bioset allowing only
up to BIO\_MAX\_VECS (256) vectors in a BIO. The dm-crypt device
max\_segments limit, which is not set and so default to BLK\_MAX\_SEGMENTS
(128), must thus be respected and write BIOs split accordingly.

In the case of dm-flakey, since zone append emulation is not required,
the block layer zone write plugging is not used and no splitting of BIOs
required.

Modify the function dm\_zone\_bio\_needs\_split() to use the block layer
helper function bio\_needs\_zone\_write\_plugging() to force a call to
bio\_split\_to\_limits() in dm\_split\_and\_process\_bio(). This allows DM
target drivers to avoid using dm\_accept\_partial\_bio() for write
operations on zoned DM devices.

## Affected and fixed versions

- Linux: \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< d10bf66d9f9335ffc7521b3029b114f50604cabe; \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< f5dd256333c08ab44b5aec4a8118cb04c0f20c54; \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< 4e9fef1cf0243d665d75c371cc80be6156cd30a2; \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< 2df7168717b7d2d32bcf017c68be16e4aae9dd13 (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- Upgrade Linux to 2df7168717b7d2d32bcf017c68be16e4aae9dd13 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-39792. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39792.md
Affected: Linux >= f211268ed1f9bdf48f06a3ead5f5d88437450579, < d10bf66d9f9335ffc7521b3029b114f50604cabe; >= f211268ed1f9bdf48f06a3ead5f5d88437450579, < f5dd256333c08ab44b5aec4a8118cb04c0f20c54; >= f211268ed1f9bdf48f06a3ead5f5d88437450579, < 4e9fef1cf0243d665d75c371cc80be6156cd30a2; >= f211268ed1f9bdf48f06a3e…
Fixed in: Linux 4e9fef1cf0243d665d75c371cc80be6156cd30a2, Linux 2df7168717b7d2d32bcf017c68be16e4aae9dd13

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-39792 being exploited?

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

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

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

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

Linux \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< d10bf66d9f9335ffc7521b3029b114f50604cabe; \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< f5dd256333c08ab44b5aec4a8118cb04c0f20c54; \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< 4e9fef1cf0243d665d75c371cc80be6156cd30a2; \>= f211268ed1f9bdf48f06a3ead5f5d88437450579, \< 2df7168717b7d2d32bcf017c68be16e4aae9dd13; Linux 6.10.

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

Yes. Fixed in Linux 4e9fef1cf0243d665d75c371cc80be6156cd30a2, Linux 2df7168717b7d2d32bcf017c68be16e4aae9dd13. Upgrade Linux to 2df7168717b7d2d32bcf017c68be16e4aae9dd13 or later.

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

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/d10bf66d9f9335ffc7521b3029b114f50604cabe>
- patch: <https://git.kernel.org/stable/c/f5dd256333c08ab44b5aec4a8118cb04c0f20c54>
- patch: <https://git.kernel.org/stable/c/4e9fef1cf0243d665d75c371cc80be6156cd30a2>
- patch: <https://git.kernel.org/stable/c/2df7168717b7d2d32bcf017c68be16e4aae9dd13>

## 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-39792>

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