CVE
CVE-2025-39738
CNA description
In the Linux kernel, the following vulnerability has been resolved: btrfs: do not allow relocation of partially dropped subvolumes [BUG] There is an internal report that balance triggered transaction abort, with the following call trace: item 85 key (594509824 169 0) itemoff 12599 itemsize 33 extent refs 1 gen 197740 flags 2 ref#0: tree block backref root 7 item 86 key (594558976 169 0) itemoff 12566 itemsize 33 extent refs 1 gen 197522 flags 2 ref#0: tree block backref root 7 ... BTRFS error (device loop0): extent item not found for insert, bytenr 594526208 num_bytes 16384 parent 449921024 root_objectid 934 owner 1 offset 0 BTRFS error (device loop0): failed to run delayed ref for logical 594526208 num_bytes 16384 type 182 action 1 ref_mod 1: -117 ------------[ cut here ]------------ BTRFS: Transaction aborted (error -117) WARNING: CPU: 1 PID: 6963 at ../fs/btrfs/extent-tree.c:2168 btrfs_run_delayed_refs+0xfa/0x110 [btrfs] And btrfs check doesn't report anything wrong related to the extent tree. [CAUSE] The cause is a little complex, firstly the extent tree indeed doesn't have the backref for 594526208. The extent tree only have the following two backrefs around that bytenr on-disk: item 65 key (594509824 METADATA_ITEM 0) itemoff 13880 itemsize 33 refs 1 gen 197740 flags TREE_BLOCK tree block skinny level 0 (176 0x7) tree block backref root CSUM_TREE item 66 key (594558976 METADATA_ITEM 0) itemoff 13847 itemsize 33 refs 1 gen 197522 flags TREE_BLOCK tree block skinny level 0 (176 0x7) tree block backref root CSUM_TREE But the such missing backref item is not an corruption on disk, as the offending delayed ref belongs to subvolume 934, and that subvolume is being dropped: item 0 key (934 ROOT_ITEM 198229) itemoff 15844 itemsize 439 generation 198229 root_dirid 256 bytenr…
Affected versions
All Linux kernel vulnerabilities →
- 6.17-rc1This version only
- ≥ 6.16, < 6.16.2Fixed in 6.16.2
- ≥ 6.13, < 6.15.11Fixed in 6.15.11
- ≥ 6.7, < 6.12.43Fixed in 6.12.43
- ≥ 6.2, < 6.6.103Fixed in 6.6.103
- ≥ 5.16, < 6.1.149Fixed in 6.1.149
- ≥ 5.11.1, < 5.15.190Fixed in 5.15.190
- 5.11This version only
- 5.11-rc7This version only
- 5.11-rc6This version only
- 5.11-rc5This version only
- 5.11-rc4This version only
- 5.11-rc3This version only
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- git.kernel.org/stable/c/125e94a4b76b7b75d194f85bedd628097d2121f0 · Patch
- git.kernel.org/stable/c/39a93e1c9dbf7e11632efeb20fcf0fc1dcf64d51 · Patch
- git.kernel.org/stable/c/4289b494ac553e74e86fed1c66b2bf9530bc1082 · Patch
- git.kernel.org/stable/c/4e403bd8e127d40dc7c05f06ee969c1ba1537ec5 · Patch
- git.kernel.org/stable/c/f83d4c81bda3b7d1813268ab77408f7a0ce691ff · Patch
- git.kernel.org/stable/c/fa086b1398cf7e5f7dee7241bd5f2855cb5df8dc · Patch
- git.kernel.org/stable/c/fcb1f77b8ed8795608ca7a1f6505e2b07236c1f3 · Patch
- lists.debian.org/debian-lts-announce/2025/10/msg00008.html · Third Party Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.