CVE-2025-37856

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

7.8 high EPSS 0.31%

Published 9 May 2025 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2025-37856

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-37856 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.31%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 25.6% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 01eca70ef8cf499d0cb6d1bbd691558e7792cf17, before ccb20413e7c82e4429c81f10d0e36cd9c0c643cd
affected from a9f189716cf15913c453299d72f69c51a9b0f86b, before 9039afe6240ae01d6caf2fa731590ac74fb8a69b
affected from a9f189716cf15913c453299d72f69c51a9b0f86b, before bf089c4d1141b27332c092b1dcca5022c415a3b6
affected from a9f189716cf15913c453299d72f69c51a9b0f86b, before 909e60fb469d4101c6b08cf6e622efb062bb24a1
affected from a9f189716cf15913c453299d72f69c51a9b0f86b, before 185fd73e5ac06027c4be9a129e59193f6a3ef202
affected from a9f189716cf15913c453299d72f69c51a9b0f86b, before 7511e29cf1355b2c47d0effb39e463119913e2f6
affected edf3b5aadb2515c808200b904baa5b70a727f0ac
affected 5d19abcffd8404078dfa7d7118cec357b5e7bc58
affected from 6.1.47, before 6.1.191
affected from 5.15.128, before 5.16
affected from 6.4.12, before 6.5
Other versions: unaffected
Linux
affected 6.5
unaffected before 6.5
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.160 up to and including 6.6.*
unaffected from 6.12.24 up to and including 6.12.*
unaffected from 6.13.12 up to and including 6.13.*
unaffected from 6.14.3 up to and including 6.14.*
unaffected 6.15 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-37856 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-37856

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-37856
trivy image --scanners vuln IMAGE | grep CVE-2025-37856

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-37856 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.