Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-39791

published high CVSS 3.1 · 7.8

dm: dm-crypt: Do not partially accept write BIOs with zoned targets

Published
11 Sep 2025, 16:56:39 UTC
Updated
15 Oct 2026, 22:02:31 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxf211268ed1f9bdf48f06a3ead5f5d88437450579 to < 8864616719b6bbf92356bc89ff544b0cd484c656 · f211268ed1f9bdf48f06a3ead5f5d88437450579 to < 52a2c4c60470352acf9cde7a2dfa661c1e67e796 · f211268ed1f9bdf48f06a3ead5f5d88437450579 to < e549663849e5bb3b985dc2d293069f0d9747ae72 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.10 (affected) · 0 to < 6.10 (unaffected · semver) · 6.12.44 through 6.12.* (unaffected · semver) · 6.16.4 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-1208 Fixed Not stated Amazon Linux assessment
Debian trixie linux Advisory build 6.12.48-1 DSA-6008-1
Oracle Linux 10 kernel-uekaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uekx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Oracle Linux 10 kernel-uek-coreaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-corex86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debugaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debugx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modules-deprecatedaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modules-deprecatedx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modules-desktopaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modules-desktopx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modules-extraaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modules-extrax86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modules-usbaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modules-usbx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modules-wirelessaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modules-wirelessx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-develaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-develx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-docx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-modulesaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-modulesx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-modules-coreaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-modules-corex86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-modules-deprecatedaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-modules-deprecatedx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-modules-desktopaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-modules-desktopx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-modules-extraaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-modules-extrax86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-modules-usbaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-modules-usbx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-modules-wirelessaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-modules-wirelessx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-toolsaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-toolsx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek64kaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek64k-coreaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek64k-develaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek64k-modulesaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek64k-modules-coreaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek64k-modules-deprecatedaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek64k-modules-desktopaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek64k-modules-extraaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek64k-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek64k-modules-usbaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek64k-modules-wirelessaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 9 kernel-uekaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uekx86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-coreaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-corex86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debugaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debugx86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-modules-deprecatedaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-modules-deprecatedx86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-modules-desktopaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-modules-desktopx86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-modules-extraaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-modules-extrax86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-modules-usbaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-modules-usbx86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-modules-wirelessaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-debug-modules-wirelessx86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-develaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-develx86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-docx86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-modulesaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-modulesx86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-modules-coreaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-modules-corex86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-modules-deprecatedaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-modules-deprecatedx86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-modules-desktopaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-modules-desktopx86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-modules-extraaarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-modules-extrax86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754
Oracle Linux 9 kernel-uek-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-105.51.5.el9uek ELSA-2025-25754

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: dm: dm-crypt: Do not partially accept write BIOs with zoned targets Read and write operations issued to a dm-crypt target may be split according to the dm-crypt internal limits defined by the max_read_size and max_write_size module parameters (default is 128 KB). The intent is to improve processing time of large BIOs by splitting them into smaller operations that can be parallelized on different CPUs. For zoned dm-crypt targets, this BIO splitting is still done but without the parallel execution to ensure that the issuing order of write operations to the underlying devices remains sequential. However, the splitting itself causes other problems: 1) Since dm-crypt relies on the block layer zone write plugging to handle zone append emulation using regular write operations, the reminder of a split write BIO will always be plugged into the target zone write plugged. Once the on-going write BIO finishes, this reminder BIO is unplugged and issued from the zone write plug work. If this reminder BIO itself needs to be split, the reminder will be re-issued and plugged again, but that causes a call to a blk_queue_enter(), which may block if a queue freeze operation was initiated. This results in a deadlock as DM submission still holds BIOs that the queue freeze side is waiting for. 2) dm-crypt relies on the emulation done by the block layer using regular write operations for processing zone append operations. This still requires to properly return the written sector as the BIO sector of the original BIO. However, this can be done correctly only and only if there is a single clone BIO used for processing the original zone append operation issued by the user. If the size of a zone append operation is larger than dm-crypt max_write_size, then the orginal BIO will be split and processed as a chain of regular write operations. Such chaining result in an incorrect written sector being returned to the zone append issuer using the original BIO sector. This in turn results in file system data corruptions using xfs or btrfs. Fix this by modifying get_max_request_size() to always return the size of the BIO to avoid it being split with dm_accpet_partial_bio() in crypt_map(). get_max_request_size() is renamed to get_max_request_sectors() to clarify the unit of the value returned and its interface is changed to take a struct dm_target pointer and a pointer to the struct bio being processed. In addition to this change, to ensure that crypt_alloc_buffer() works correctly, set the dm-crypt device max_hw_sectors limit to be at most BIO_MAX_VECS << PAGE_SECTORS_SHIFT (1 MB with a 4KB page architecture). This forces DM core to split write BIOs before passing them to crypt_map(), and thus guaranteeing that dm-crypt can always accept an entire write BIO without needing to split it. This change does not have any effect on the read path of dm-crypt. Read operations can still be split and the BIO fragments processed in parallel. There is also no impact on the performance of the write path given that all zone write BIOs were already processed inline instead of in parallel. This change also does not affect in any way regular dm-crypt block devices.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

8

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable code is in the device-mapper/block layer, reached by issuing writes to a locally mounted filesystem or block device backed by a zoned dm-crypt target. No network protocol handler is involved. AC:L - Any write producing a zone append larger than dm-crypt's 128 KB default max_write_size deterministically causes the wrong written sector to be returned; there is no race to win, no memory layout to groom, and the emulated max_zone_append_sectors is far above 128 KB so ordinary large-file writeback triggers it every time. PR:L - An unprivileged local user with write access to a file on an XFS or btrfs filesystem hosted on the zoned dm-crypt device can trigger it by writing a file larger than 128 KB. The CAP_SYS_ADMIN needed to create the dm-crypt target is a property of the deployed configuration, not a barrier the attacker must cross. UI:N - Triggering requires only the attacker's own write I/O; no action by any other user or administrator is needed once the affected storage stack is in use. S:U - The impact — corrupted filesystem extents and hung block I/O — stays within the kernel and storage stack of the same system, with no crossing into a different security authority such as a hypervisor or IOMMU boundary. C:H - XFS commits bmap extent records built from the incorrect returned sector, and because xfs_zoned_pack_tight() packs multiple inodes into a single zone and XFS has no data checksums, subsequent reads silently return the decrypted plaintext of other files — potentially other users' data — from the encrypted device. I:H - The wrong written sector is committed into persistent on-disk filesystem metadata, producing silent, unrecoverable data corruption in XFS and btrfs as explicitly stated by the fix; extents point at physical blocks owned by other files, corrupting both attacker and victim data. A:H - The split remainder BIO is re-issued from the zone write plug work and calls blk_queue_enter(), deadlocking against a queue freeze that is waiting on BIOs DM still holds, hanging all I/O to the device; the resulting extent and space-accounting corruption also trips filesystem verifiers and forces an XFS/btrfs shutdown.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux f211268ed1f9bdf48f06a3ead5f5d88437450579 to < 8864616719b6bbf92356bc89ff544b0cd484c656 (affected · git)f211268ed1f9bdf48f06a3ead5f5d88437450579 to < 52a2c4c60470352acf9cde7a2dfa661c1e67e796 (affected · git)f211268ed1f9bdf48f06a3ead5f5d88437450579 to < e549663849e5bb3b985dc2d293069f0d9747ae72 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.10 (affected)0 to < 6.10 (unaffected · semver)6.12.44 through 6.12.* (unaffected · semver)6.16.4 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

2

Linux · cna

dm: dm-crypt: Do not partially accept write BIOs with zoned targets

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
10cd3c1450cafbd0e5ccb622d6d4f70c670d728e8d11378392c3e8cc6c283c84
Ingested
15 Oct 2026, 23:26:25 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected