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-21942

published

btrfs: zoned: fix extent range end unlock in cow_file_range()

Published
01 Apr 2025, 15:41:06 UTC
Updated
30 Oct 2026, 12:21:01 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux10b3772292bf1be45604ba83fd9650eb94382e78 to < 5f4863cfb29a7b4fe7625ce148d0b9000b75b802 · 692cf71173bb41395c855acbbbe197d3aedfa5d4 to < 3fcff2f55389306482ab049b4321bda49495e546 · 06f364284794f149d2abc167c11d556cf20c954b to < 5a4041f2c47247575a6c2e53ce14f7b0ac946c33 · 29418ebb8b4d4d090e403d395a6db7e8455331f7 · 4ace6fb49c8be23b005828763d8b0d0bb0f3b0c5 · 6.1.191 to < 6.2 · 6.6.160 to < 6.7 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.13.2 to < 6.13.7 · Other versions: unaffected Affected 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
Oracle Linux 10 kernel-uekaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uekx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-corex86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Oracle Linux 10 kernel-uek-debugaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debugx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-deprecatedaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-deprecatedx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-desktopaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-desktopx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-extraaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-extrax86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-usbaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-usbx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-wirelessaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-debug-modules-wirelessx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-develaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-develx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-docx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modulesaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modulesx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-corex86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-deprecatedaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-deprecatedx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-desktopaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-desktopx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-extraaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-extrax86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-usbaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-usbx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-wirelessaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-modules-wirelessx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-toolsaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek-toolsx86_64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64kaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-develaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-modulesaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-modules-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-modules-deprecatedaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-modules-desktopaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-modules-extraaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-modules-usbaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 10 kernel-uek64k-modules-wirelessaarch64 Advisory build 0:6.12.0-103.40.4.1.el10uek ELSA-2025-20551
Oracle Linux 9 kernel-uekaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uekx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-corex86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debugaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debugx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-deprecatedaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-deprecatedx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-desktopaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-desktopx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-extraaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-extrax86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-usbaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-usbx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-wirelessaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-debug-modules-wirelessx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-develaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-develx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-docx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modulesaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modulesx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-coreaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-corex86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-deprecatedaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-deprecatedx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-desktopaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-desktopx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-extraaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-extrax86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551
Oracle Linux 9 kernel-uek-modules-usbaarch64 Advisory build 0:6.12.0-103.40.4.1.el9uek ELSA-2025-20551

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

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: zoned: fix extent range end unlock in cow_file_range() Running generic/751 on the for-next branch often results in a hang like below. They are both stack by locking an extent. This suggests someone forget to unlock an extent. INFO: task kworker/u128:1:12 blocked for more than 323 seconds. Not tainted 6.13.0-BTRFS-ZNS+ #503 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u128:1 state:D stack:0 pid:12 tgid:12 ppid:2 flags:0x00004000 Workqueue: btrfs-fixup btrfs_work_helper [btrfs] Call Trace: <TASK> __schedule+0x534/0xdd0 schedule+0x39/0x140 __lock_extent+0x31b/0x380 [btrfs] ? __pfx_autoremove_wake_function+0x10/0x10 btrfs_writepage_fixup_worker+0xf1/0x3a0 [btrfs] btrfs_work_helper+0xff/0x480 [btrfs] ? lock_release+0x178/0x2c0 process_one_work+0x1ee/0x570 ? srso_return_thunk+0x5/0x5f worker_thread+0x1d1/0x3b0 ? __pfx_worker_thread+0x10/0x10 kthread+0x10b/0x230 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x30/0x50 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30 </TASK> INFO: task kworker/u134:0:184 blocked for more than 323 seconds. Not tainted 6.13.0-BTRFS-ZNS+ #503 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u134:0 state:D stack:0 pid:184 tgid:184 ppid:2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-btrfs-4) Call Trace: <TASK> __schedule+0x534/0xdd0 schedule+0x39/0x140 __lock_extent+0x31b/0x380 [btrfs] ? __pfx_autoremove_wake_function+0x10/0x10 find_lock_delalloc_range+0xdb/0x260 [btrfs] writepage_delalloc+0x12f/0x500 [btrfs] ? srso_return_thunk+0x5/0x5f extent_write_cache_pages+0x232/0x840 [btrfs] btrfs_writepages+0x72/0x130 [btrfs] do_writepages+0xe7/0x260 ? srso_return_thunk+0x5/0x5f ? lock_acquire+0xd2/0x300 ? srso_return_thunk+0x5/0x5f ? find_held_lock+0x2b/0x80 ? wbc_attach_and_unlock_inode.part.0+0x102/0x250 ? wbc_attach_and_unlock_inode.part.0+0x102/0x250 __writeback_single_inode+0x5c/0x4b0 writeback_sb_inodes+0x22d/0x550 __writeback_inodes_wb+0x4c/0xe0 wb_writeback+0x2f6/0x3f0 wb_workfn+0x32a/0x510 process_one_work+0x1ee/0x570 ? srso_return_thunk+0x5/0x5f worker_thread+0x1d1/0x3b0 ? __pfx_worker_thread+0x10/0x10 kthread+0x10b/0x230 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x30/0x50 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30 </TASK> This happens because we have another success path for the zoned mode. When there is no active zone available, btrfs_reserve_extent() returns -EAGAIN. In this case, we have two reactions. (1) If the given range is never allocated, we can only wait for someone to finish a zone, so wait on BTRFS_FS_NEED_ZONE_FINISH bit and retry afterward. (2) Or, if some allocations are already done, we must bail out and let the caller to send IOs for the allocation. This is because these IOs may be necessary to finish a zone. The commit 06f364284794 ("btrfs: do proper folio cleanup when cow_file_range() failed") moved the unlock code from the inside of the loop to the outside. So, previously, the allocated extents are unlocked just after the allocation and so before returning from the function. However, they are no longer unlocked on the case (2) above. That caused the hang issue. Fix the issue by modifying the 'end' to the end of the allocated range. Then, we can exit the loop and the same unlock code can properly handle the case.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

2

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 10b3772292bf1be45604ba83fd9650eb94382e78 to < 5f4863cfb29a7b4fe7625ce148d0b9000b75b802 (affected · git)692cf71173bb41395c855acbbbe197d3aedfa5d4 to < 3fcff2f55389306482ab049b4321bda49495e546 (affected · git)06f364284794f149d2abc167c11d556cf20c954b to < 5a4041f2c47247575a6c2e53ce14f7b0ac946c33 (affected · git)29418ebb8b4d4d090e403d395a6db7e8455331f7 (affected · git)4ace6fb49c8be23b005828763d8b0d0bb0f3b0c5 (affected · git)6.1.191 to < 6.2 (affected · semver)6.6.160 to < 6.7 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.13.2 to < 6.13.7 (affected · semver)Default: unaffected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

btrfs: zoned: fix extent range end unlock in cow_file_range()

Provenance

Schema
5.2
Searchable
yes
Content hash
238266c0d8b7d7ff08574ec55e01f46856546117b16a30bcb8b6c94bc9c0e3b6
Ingested
30 Oct 2026, 12:31:36 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