CVE-2025-37856

MediumCVSS 5.5/10Last modified Oct 30, 2026

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.

Metrics

CVSS 3.1 5.5/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected software

VendorProductVersions
LinuxLinux>= 01eca70ef8cf499d0cb6d1bbd691558e7792cf17, < ccb20413e7c82e4429c81f10d0e36cd9c0c643cd; >= a9f189716cf15913c453299d72f69c51a9b0f86b, < 9039afe6240ae01d6caf2fa731590ac74fb8a69b; >= a9f189716cf15913c453299d72f69c51a9b0f86b, < bf089c4d1141b27332c092b1dcca5022c415a3b6; >= a9f189716cf15913c453299d72f69c51a9b0f86b, < 909e60fb469d4101c6b08cf6e622efb062bb24a1; >= a9f189716cf15913c453299d72f69c51a9b0f86b, < 185fd73e5ac06027c4be9a129e59193f6a3ef202; >= a9f189716cf15913c453299d72f69c51a9b0f86b, < 7511e29cf1355b2c47d0effb39e463119913e2f6; edf3b5aadb2515c808200b904baa5b70a727f0ac; 5d19abcffd8404078dfa7d7118cec357b5e7bc58; >= 6.1.47, < 6.1.191; >= 5.15.128, < 5.16; >= 6.4.12, < 6.5
LinuxLinux6.5

References

Timeline

Published
May 9, 2025
Last modified
Oct 30, 2026
NVD status
Modified

Related CVEs from 2025

CVE-2025-378575.5In the Linux kernel, the following vulnerability has been resolved: scsi: st: Fix array overflow in st_setup() Change the array size to foCVE-2025-378585.5In the Linux kernel, the following vulnerability has been resolved: fs/jfs: Prevent integer overflow in AG size calculation The JFS filesyCVE-2025-378595.5In the Linux kernel, the following vulnerability has been resolved: page_pool: avoid infinite loop to schedule delayed worker We noticed tCVE-2025-37868.8A vulnerability was found in Tenda AC15 up to 15.03.05.19 and classified as critical. This issue affects the function fromSetWirelessRepeat CVE-2025-378605.5In the Linux kernel, the following vulnerability has been resolved: sfc: fix NULL dereferences in ef100_process_design_param() Since citedCVE-2025-378617.8In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Synchronous access b/w reset and tm thread for reply queuCVE-2025-378625.5In the Linux kernel, the following vulnerability has been resolved: HID: pidff: Fix null pointer dereference in pidff_find_fields This funCVE-2025-378635.5In the Linux kernel, the following vulnerability has been resolved: ovl: don't allow datadir only In theory overlayfs could support upper CVE-2025-378645.5In the Linux kernel, the following vulnerability has been resolved: net: dsa: clean up FDB, MDB, VLAN entries on unbind As explained in maCVE-2025-378655.5In the Linux kernel, the following vulnerability has been resolved: net: dsa: mv88e6xxx: fix -ENOENT when deleting VLANs and MST is unsuppoCVE-2025-378665.5In the Linux kernel, the following vulnerability has been resolved: mlxbf-bootctl: use sysfs_emit_at() in secure_boot_fuse_state_show() A CVE-2025-378675.5In the Linux kernel, the following vulnerability has been resolved: RDMA/core: Silence oversized kvmalloc() warning syzkaller triggered an