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-2021-46987

published

btrfs: fix deadlock when cloning inline extents and using qgroups

Published
28 Feb 2024, 08:13:14 UTC
Updated
23 May 2026, 15:18:53 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxc53e9653605dbf708f5be02902de51831be4b009 to < f8fbbd06fab9b75dcd68d850fe318ac3bc128974 · c53e9653605dbf708f5be02902de51831be4b009 to < d5347827d0b4b2250cbce6eccaa1c81dc78d8651 · c53e9653605dbf708f5be02902de51831be4b009 to < 96157707c0420e3d3edfe046f1cc797fee117ade · c53e9653605dbf708f5be02902de51831be4b009 to < f9baa501b4fd6962257853d46ddffbc21f27e344 · 36af2de520cca7c37974cc4944b47850f6c460ee · 5.4.141 to < 5.5 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.9 (affected) · 0 to < 5.9 (unaffected · semver) · 5.10.241 through 5.10.* (unaffected · semver) · 5.11.22 through 5.11.* (unaffected · semver) · 5.12.5 through 5.12.* (unaffected · semver) · 5.13 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix; Not Affected Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2025-104 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Debian bullseye linux Advisory build 5.10.244-1 DLA-4327-1
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaultaarch64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2KERNEL-5.10-2025-104
Show 47 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaultppc64le Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaults390x Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaultx86_64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-defaultaarch64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-defaultppc64le Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-defaults390x Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 dlm-kmp-defaultx86_64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-defaultaarch64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-defaultppc64le Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-defaults390x Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 gfs2-kmp-defaultx86_64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-defaultaarch64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-defaultppc64le Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-defaults390x Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-defaultx86_64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-default-baseaarch64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-default-baseppc64le Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-default-bases390x Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-default-basex86_64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-default-develaarch64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-default-develppc64le Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-default-devels390x Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-default-develx86_64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraftppc64le Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgrafts390x Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraftx86_64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraft-develppc64le Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraft-devels390x Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-default-kgraft-develx86_64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-default-mans390x Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-develnoarch Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-macrosnoarch Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-sourcenoarch Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-symsaarch64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-symsppc64le Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-symss390x Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kernel-symsx86_64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kgraft-patch-4_12_14-122_269-defaultppc64le Advisory build 1-8.3.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kgraft-patch-4_12_14-122_269-defaults390x Advisory build 1-8.3.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 kgraft-patch-4_12_14-122_269-defaultx86_64 Advisory build 1-8.3.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-defaultaarch64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-defaultppc64le Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-defaults390x Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
SUSE / openSUSE SLE-12-SP5 ocfs2-kmp-defaultx86_64 Advisory build 4.12.14-122.269.1 SUSE-SU-2025:02846-1
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.10-2025-104
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.10-2025-104
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.10-2025-104

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix deadlock when cloning inline extents and using qgroups There are a few exceptional cases where cloning an inline extent needs to copy the inline extent data into a page of the destination inode. When this happens, we end up starting a transaction while having a dirty page for the destination inode and while having the range locked in the destination's inode iotree too. Because when reserving metadata space for a transaction we may need to flush existing delalloc in case there is not enough free space, we have a mechanism in place to prevent a deadlock, which was introduced in commit 3d45f221ce627d ("btrfs: fix deadlock when cloning inline extent and low on free metadata space"). However when using qgroups, a transaction also reserves metadata qgroup space, which can also result in flushing delalloc in case there is not enough available space at the moment. When this happens we deadlock, since flushing delalloc requires locking the file range in the inode's iotree and the range was already locked at the very beginning of the clone operation, before attempting to start the transaction. When this issue happens, stack traces like the following are reported: [72747.556262] task:kworker/u81:9 state:D stack: 0 pid: 225 ppid: 2 flags:0x00004000 [72747.556268] Workqueue: writeback wb_workfn (flush-btrfs-1142) [72747.556271] Call Trace: [72747.556273] __schedule+0x296/0x760 [72747.556277] schedule+0x3c/0xa0 [72747.556279] io_schedule+0x12/0x40 [72747.556284] __lock_page+0x13c/0x280 [72747.556287] ? generic_file_readonly_mmap+0x70/0x70 [72747.556325] extent_write_cache_pages+0x22a/0x440 [btrfs] [72747.556331] ? __set_page_dirty_nobuffers+0xe7/0x160 [72747.556358] ? set_extent_buffer_dirty+0x5e/0x80 [btrfs] [72747.556362] ? update_group_capacity+0x25/0x210 [72747.556366] ? cpumask_next_and+0x1a/0x20 [72747.556391] extent_writepages+0x44/0xa0 [btrfs] [72747.556394] do_writepages+0x41/0xd0 [72747.556398] __writeback_single_inode+0x39/0x2a0 [72747.556403] writeback_sb_inodes+0x1ea/0x440 [72747.556407] __writeback_inodes_wb+0x5f/0xc0 [72747.556410] wb_writeback+0x235/0x2b0 [72747.556414] ? get_nr_inodes+0x35/0x50 [72747.556417] wb_workfn+0x354/0x490 [72747.556420] ? newidle_balance+0x2c5/0x3e0 [72747.556424] process_one_work+0x1aa/0x340 [72747.556426] worker_thread+0x30/0x390 [72747.556429] ? create_worker+0x1a0/0x1a0 [72747.556432] kthread+0x116/0x130 [72747.556435] ? kthread_park+0x80/0x80 [72747.556438] ret_from_fork+0x1f/0x30 [72747.566958] Workqueue: btrfs-flush_delalloc btrfs_work_helper [btrfs] [72747.566961] Call Trace: [72747.566964] __schedule+0x296/0x760 [72747.566968] ? finish_wait+0x80/0x80 [72747.566970] schedule+0x3c/0xa0 [72747.566995] wait_extent_bit.constprop.68+0x13b/0x1c0 [btrfs] [72747.566999] ? finish_wait+0x80/0x80 [72747.567024] lock_extent_bits+0x37/0x90 [btrfs] [72747.567047] btrfs_invalidatepage+0x299/0x2c0 [btrfs] [72747.567051] ? find_get_pages_range_tag+0x2cd/0x380 [72747.567076] __extent_writepage+0x203/0x320 [btrfs] [72747.567102] extent_write_cache_pages+0x2bb/0x440 [btrfs] [72747.567106] ? update_load_avg+0x7e/0x5f0 [72747.567109] ? enqueue_entity+0xf4/0x6f0 [72747.567134] extent_writepages+0x44/0xa0 [btrfs] [72747.567137] ? enqueue_task_fair+0x93/0x6f0 [72747.567140] do_writepages+0x41/0xd0 [72747.567144] __filemap_fdatawrite_range+0xc7/0x100 [72747.567167] btrfs_run_delalloc_work+0x17/0x40 [btrfs] [72747.567195] btrfs_work_helper+0xc2/0x300 [btrfs] [72747.567200] process_one_work+0x1aa/0x340 [72747.567202] worker_thread+0x30/0x390 [72747.567205] ? create_worker+0x1a0/0x1a0 [72747.567208] kthread+0x116/0x130 [72747.567211] ? kthread_park+0x80/0x80 [72747.567214] ret_from_fork+0x1f/0x30 [72747.569686] task:fsstress state:D stack: ---truncated---

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

3

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 c53e9653605dbf708f5be02902de51831be4b009 to < f8fbbd06fab9b75dcd68d850fe318ac3bc128974 (affected · git)c53e9653605dbf708f5be02902de51831be4b009 to < d5347827d0b4b2250cbce6eccaa1c81dc78d8651 (affected · git)c53e9653605dbf708f5be02902de51831be4b009 to < 96157707c0420e3d3edfe046f1cc797fee117ade (affected · git)c53e9653605dbf708f5be02902de51831be4b009 to < f9baa501b4fd6962257853d46ddffbc21f27e344 (affected · git)36af2de520cca7c37974cc4944b47850f6c460ee (affected · git)5.4.141 to < 5.5 (affected · semver)Default: unaffected Linux · cna
Linux Linux 5.9 (affected)0 to < 5.9 (unaffected · semver)5.10.241 through 5.10.* (unaffected · semver)5.11.22 through 5.11.* (unaffected · semver)5.12.5 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

5

Provider assertions

3

Linux · cna

btrfs: fix deadlock when cloning inline extents and using qgroups

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
50e5ace82fca613c2757b0ecfc1da69076e7577e642d17d187ec260b6d4cf29e
Ingested
23 Sep 2026, 07:57:04 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