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

published high CVSS 3.1 · 7.8

btrfs: harden block_group::bg_list against list_del() races

Published
09 May 2025, 06:42:04 UTC
Updated
30 Oct 2026, 12:21:24 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux01eca70ef8cf499d0cb6d1bbd691558e7792cf17 to < ccb20413e7c82e4429c81f10d0e36cd9c0c643cd · a9f189716cf15913c453299d72f69c51a9b0f86b to < 9039afe6240ae01d6caf2fa731590ac74fb8a69b · a9f189716cf15913c453299d72f69c51a9b0f86b to < bf089c4d1141b27332c092b1dcca5022c415a3b6 · a9f189716cf15913c453299d72f69c51a9b0f86b to < 909e60fb469d4101c6b08cf6e622efb062bb24a1 · a9f189716cf15913c453299d72f69c51a9b0f86b to < 185fd73e5ac06027c4be9a129e59193f6a3ef202 · a9f189716cf15913c453299d72f69c51a9b0f86b to < 7511e29cf1355b2c47d0effb39e463119913e2f6 · edf3b5aadb2515c808200b904baa5b70a727f0ac · 5d19abcffd8404078dfa7d7118cec357b5e7bc58 · 6.1.47 to < 6.1.191 · 5.15.128 to < 5.16 · 6.4.12 to < 6.5 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.5 (affected) · 0 to < 6.5 (unaffected · semver) · 6.1.191 through 6.1.* (unaffected · semver) · 6.6.160 through 6.6.* (unaffected · semver) · 6.12.24 through 6.12.* (unaffected · semver) · 6.13.12 through 6.13.* (unaffected · semver) · 6.14.3 through 6.14.* (unaffected · semver) · 6.15 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-995 Fixed Not stated Amazon Linux assessment
Debian bookworm linux Advisory build 6.1.192-1 DLA-4906-1
Oracle Linux 10 kernel-uekaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uekaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Oracle Linux 10 kernel-uekx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uekx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-coreaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-coreaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-corex86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-corex86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debugaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debugaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debugx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debugx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modules-deprecatedaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modules-deprecatedaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modules-deprecatedx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modules-deprecatedx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modules-desktopaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modules-desktopaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modules-desktopx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modules-desktopx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modules-extraaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modules-extraaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modules-extrax86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modules-extrax86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modules-usbaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modules-usbaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modules-usbx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modules-usbx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modules-wirelessaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modules-wirelessaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-debug-modules-wirelessx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-debug-modules-wirelessx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-develaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-develaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-develx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-develx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-docx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-docx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-modulesaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-modulesaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-modulesx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-modulesx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-modules-coreaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-modules-coreaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-modules-corex86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-modules-corex86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-modules-deprecatedaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-modules-deprecatedaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-modules-deprecatedx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-modules-deprecatedx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-modules-desktopaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-modules-desktopaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-modules-desktopx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-modules-desktopx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-modules-extraaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-modules-extraaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-modules-extrax86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-modules-extrax86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-modules-usbaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-modules-usbaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-modules-usbx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-modules-usbx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-modules-wirelessaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-modules-wirelessaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-modules-wirelessx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-modules-wirelessx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-toolsaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-toolsaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek-toolsx86_64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek-toolsx86_64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek64kaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek64kaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek64k-coreaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480
Oracle Linux 10 kernel-uek64k-coreaarch64 Advisory build 0:6.12.0-102.36.5.2.el10uek ELSA-2025-20530
Oracle Linux 10 kernel-uek64k-develaarch64 Advisory build 0:6.12.0-101.33.4.3.el10uek ELSA-2025-20480

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: harden block_group::bg_list against list_del() races As far as I can tell, these calls of list_del_init() on bg_list cannot run concurrently with btrfs_mark_bg_unused() or btrfs_mark_bg_to_reclaim(), as they are in transaction error paths and situations where the block group is readonly. However, if there is any chance at all of racing with mark_bg_unused(), or a different future user of bg_list, better to be safe than sorry. Otherwise we risk the following interleaving (bg_list refcount in parens) T1 (some random op) T2 (btrfs_mark_bg_unused) !list_empty(&bg->bg_list); (1) list_del_init(&bg->bg_list); (1) list_move_tail (1) btrfs_put_block_group (0) btrfs_delete_unused_bgs bg = list_first_entry list_del_init(&bg->bg_list); btrfs_put_block_group(bg); (-1) Ultimately, this results in a broken ref count that hits zero one deref early and the real final deref underflows the refcount, resulting in a WARNING.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

42

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 btrfs's core block-group allocator, reached through ordinary file creation/deletion, `sync()`/`fsync()`, and ENOSPC-driven transaction aborts on a locally mounted btrfs filesystem. There is no network protocol handler in the path. AC:L - The attacker drives both sides of the race with a single unprivileged workload — emptying block groups feeds `btrfs_mark_bg_unused()` while `sync()` forces the `btrfs_finish_extent_commit()` traversal — and the create/delete/sync loop can be repeated indefinitely until the window is hit. The same bg_list refcount race was demonstrably reproduced in practice by its sibling CVE-2025-22115 and by fstests generic/297. PR:L - Any unprivileged local user with write access to a btrfs mount (home directory, `/tmp`, or a container volume) can trigger the full sequence; no capability, no user namespace, and no CAP_SYS_ADMIN operation such as scrub or balance is required. UI:N - The attacker's own process performs every step, and the cleaner kthread consumes the freed object on its own timer. btrfs is the default root filesystem on Fedora and openSUSE, so no victim needs to mount anything. S:U - The refcount underflow, the freed object, and its consumer all live in the kernel's own security authority, with no crossing of a hypervisor, IOMMU, or sandbox boundary. C:H - `btrfs_put_block_group()` `kfree()`s the block group into a general kmalloc cache while it is still linked on `fs_info->unused_bgs`, so an unprivileged heap spray can reclaim the slot and the cleaner kthread will read `space_info`, `start`, `length`, and `flags` back out of it, exposing kernel heap contents. I:H - `list_del_init()` on the freed node writes through attacker-reclaimed `prev`/`next` pointers, yielding a controlled kernel write primitive, and the downstream `btrfs_remove_chunk(trans, block_group->start)` operates on a garbage offset, destroying live on-disk btrfs metadata. A:H - The refcount underflow raises `refcount_t: underflow; use-after-free`, an immediate panic under the widely deployed `panic_on_warn=1`, and the use-after-free crashes the cleaner kthread and can corrupt or wedge the filesystem outright.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 01eca70ef8cf499d0cb6d1bbd691558e7792cf17 to < ccb20413e7c82e4429c81f10d0e36cd9c0c643cd (affected · git)a9f189716cf15913c453299d72f69c51a9b0f86b to < 9039afe6240ae01d6caf2fa731590ac74fb8a69b (affected · git)a9f189716cf15913c453299d72f69c51a9b0f86b to < bf089c4d1141b27332c092b1dcca5022c415a3b6 (affected · git)a9f189716cf15913c453299d72f69c51a9b0f86b to < 909e60fb469d4101c6b08cf6e622efb062bb24a1 (affected · git)a9f189716cf15913c453299d72f69c51a9b0f86b to < 185fd73e5ac06027c4be9a129e59193f6a3ef202 (affected · git)a9f189716cf15913c453299d72f69c51a9b0f86b to < 7511e29cf1355b2c47d0effb39e463119913e2f6 (affected · git)edf3b5aadb2515c808200b904baa5b70a727f0ac (affected · git)5d19abcffd8404078dfa7d7118cec357b5e7bc58 (affected · git)6.1.47 to < 6.1.191 (affected · semver)5.15.128 to < 5.16 (affected · semver)6.4.12 to < 6.5 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.5 (affected)0 to < 6.5 (unaffected · semver)6.1.191 through 6.1.* (unaffected · semver)6.6.160 through 6.6.* (unaffected · semver)6.12.24 through 6.12.* (unaffected · semver)6.13.12 through 6.13.* (unaffected · semver)6.14.3 through 6.14.* (unaffected · semver)6.15 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

1

Linux · cna

btrfs: harden block_group::bg_list against list_del() races

Provenance

Schema
5.2
Searchable
yes
Content hash
53eac1c2e6ad715f24d98af16407e7184bd4b53551994512b537199dd9388496
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