Skip to content
OpenAdvisories
Unscored CVE-2025-68778 EUVD-2026-2322GHSA-g468-fxhj-fm89

btrfs: don't log conflicting inode if it's a dir moved in the current transaction

Published Jan 13, 2026 · Updated May 11, 2026 · Assigned by Linux

Vendor: Linux Product: Linux Package: kernel Package: linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.15 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.4 Package: linux-aws-5.8 Package: linux-aws-6.14 Package: linux-aws-6.17 Package: linux-aws-6.2 Package: linux-aws-6.5 Package: linux-aws-6.8 Package: linux-aws-fips Package: linux-aws-hwe Package: linux-azure Package: linux-azure-4.15 Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.15 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.4 Package: linux-azure-5.8 Package: linux-azure-6.11 Package: linux-azure-6.14 Package: linux-azure-6.17 Package: linux-azure-6.2 Package: linux-azure-6.5 Package: linux-azure-6.8 Package: linux-azure-edge Package: linux-azure-fde Package: linux-azure-fde-5.15 Package: linux-azure-fde-5.19 Package: linux-azure-fde-6.14 Package: linux-azure-fde-6.2 Package: linux-azure-fde-6.8 Package: linux-azure-fips Package: linux-azure-nvidia Package: linux-azure-nvidia-6.14 Package: linux-bluefield Package: linux-fips Package: linux-gcp Package: linux-gcp-4.15 Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.15 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.4 Package: linux-gcp-5.8 Package: linux-gcp-6.11 Package: linux-gcp-6.14 Package: linux-gcp-6.17 Package: linux-gcp-6.2 Package: linux-gcp-6.5 Package: linux-gcp-6.8 Package: linux-gcp-fips Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.15 Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.15 Package: linux-hwe-5.19 Package: linux-hwe-5.4 Package: linux-hwe-5.8 Package: linux-hwe-6.11 Package: linux-hwe-6.14 Package: linux-hwe-6.17 Package: linux-hwe-6.2 Package: linux-hwe-6.5 Package: linux-hwe-6.8 Package: linux-hwe-edge Package: linux-ibm Package: linux-ibm-5.15 Package: linux-ibm-5.4 Package: linux-ibm-6.8 Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-intel-iotg Package: linux-intel-iotg-5.15 Package: linux-iot Package: linux-kvm Package: linux-lowlatency Package: linux-lowlatency-hwe-5.15 Package: linux-lowlatency-hwe-5.19 Package: linux-lowlatency-hwe-6.11 Package: linux-lowlatency-hwe-6.2 Package: linux-lowlatency-hwe-6.5 Package: linux-lowlatency-hwe-6.8 Package: linux-nvidia Package: linux-nvidia-6.11 Package: linux-nvidia-6.17 Package: linux-nvidia-6.2 Package: linux-nvidia-6.5 Package: linux-nvidia-6.8 Package: linux-nvidia-lowlatency Package: linux-nvidia-tegra Package: linux-nvidia-tegra-5.15 Package: linux-nvidia-tegra-igx Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.17 Package: linux-oem-5.6 Package: linux-oem-6.0 Package: linux-oem-6.1 Package: linux-oem-6.11 Package: linux-oem-6.14 Package: linux-oem-6.17 Package: linux-oem-6.5 Package: linux-oem-6.8 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.15 Package: linux-oracle-5.3 Package: linux-oracle-5.4 Package: linux-oracle-5.8 Package: linux-oracle-6.14 Package: linux-oracle-6.17 Package: linux-oracle-6.5 Package: linux-oracle-6.8 Package: linux-raspi Package: linux-raspi-5.4 Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-realtime-6.14 Package: linux-realtime-6.17 Package: linux-realtime-6.8 Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.15 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-riscv-6.14 Package: linux-riscv-6.17 Package: linux-riscv-6.5 Package: linux-riscv-6.8 Package: linux-starfive-5.19 Package: linux-starfive-6.2 Package: linux-starfive-6.5 Package: linux-vmware Package: linux-xilinx Package: linux-xilinx-zynqmp Platform: Linux Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

In the Linux kernel, the following vulnerability has been resolved:

btrfs: don't log conflicting inode if it's a dir moved in the current transaction

We can't log a conflicting inode if it's a directory and it was moved
from one parent directory to another parent directory in the current
transaction, as this can result an attempt to have a directory with
two hard links during log replay, one for the old parent directory and
another for the new parent directory.

The following scenario triggers that issue:

1) We have directories "dir1" and "dir2" created in a past transaction.
Directory "dir1" has inode A as its parent directory;

2) We move "dir1" to some other directory;

3) We create a file with the name "dir1" in directory inode A;

4) We fsync the new file. This results in logging the inode of the new file
and the inode for the directory "dir1" that was previously moved in the
current transaction. So the log tree has the INODE_REF item for the
new location of "dir1";

5) We move the new file to some other directory. This results in updating
the log tree to included the new INODE_REF for the new location of the
file and removes the INODE_REF for the old location. This happens
during the rename when we call btrfs_log_new_name();

6) We fsync the file, and that persists the log tree changes done in the
previous step (btrfs_log_new_name() only updates the log tree in
memory);

7) We have a power failure;

8) Next time the fs is mounted, log replay happens and when processing
the inode for directory "dir1" we find a new INODE_REF and add that
link, but we don't remove the old link of the inode since we have
not logged the old parent directory of the directory inode "dir1".

As a result after log replay finishes when we trigger writeback of the
subvolume tree's extent buffers, the tree check will detect that we have
a directory a hard link count of 2 and we get a mount failure.
The errors and stack traces reported in dmesg/syslog are like this:

[ 3845.729764] BTRFS info (device dm-0): start tree-log replay
[ 3845.730304] page: refcount:3 mapcount:0 mapping:000000005c8a3027 index:0x1d00 pfn:0x11510c
[ 3845.731236] memcg:ffff9264c02f4e00
[ 3845.731751] aops:btree_aops [btrfs] ino:1
[ 3845.732300] flags: 0x17fffc00000400a(uptodate|private|writeback|node=0|zone=2|lastcpupid=0x1ffff)
[ 3845.733346] raw: 017fffc00000400a 0000000000000000 dead000000000122 ffff9264d978aea8
[ 3845.734265] raw: 0000000000001d00 ffff92650e6d4738 00000003ffffffff ffff9264c02f4e00
[ 3845.735305] page dumped because: eb page dump
[ 3845.735981] BTRFS critical (device dm-0): corrupt leaf: root=5 block=30408704 slot=6 ino=257, invalid nlink: has 2 expect no more than 1 for dir
[ 3845.737786] BTRFS info (device dm-0): leaf 30408704 gen 10 total ptrs 17 free space 14881 owner 5
[ 3845.737789] BTRFS info (device dm-0): refs 4 lock_owner 0 current 30701
[ 3845.737792] item 0 key (256 INODE_ITEM 0) itemoff 16123 itemsize 160
[ 3845.737794] inode generation 3 transid 9 size 16 nbytes 16384
[ 3845.737795] block group 0 mode 40755 links 1 uid 0 gid 0
[ 3845.737797] rdev 0 sequence 2 flags 0x0
[ 3845.737798] atime 1764259517.0
[ 3845.737800] ctime 1764259517.572889464
[ 3845.737801] mtime 1764259517.572889464
[ 3845.737802] otime 1764259517.0
[ 3845.737803] item 1 key (256 INODE_REF 256) itemoff 16111 itemsize 12
[ 3845.737805] index 0 name_len 2
[ 3845.737807] item 2 key (256 DIR_ITEM 2363071922) itemoff 16077 itemsize 34
[ 3845.737808] location key (257 1 0) type 2
[ 3845.737810] transid 9 data_len 0 name_len 4
[ 3845.737811] item 3 key (256 DIR_ITEM 2676584006) itemoff 16043 itemsize 34
[ 3845.737813] location key (258 1 0) type 2
[ 3845.737814] transid 9 data_len 0 name_len 4
[ 3845.737815] item 4 key (256 DIR_INDEX 2) itemoff 16009 itemsize 34
[ 3845.737816] location key (257 1 0) type 2
[
---truncated---

Affected products

VendorProductAffectedFixed
Linux Linux 4.8 6.1.160

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 6.18.3-1 —
Debian 13 linux 6.12.69-1 DSA-6126-1
Debian 12 linux 6.1.162-1 DSA-6127-1
Debian 11 linux-6.1 6.1.162-1~deb11u1 DLA-4476-1
ReleasePackageFixed inAdvisory
Ubuntu Nvidia-BlueField 24.04 LTS linux-bluefield 6.8.0-1017.21 —
Ubuntu Nvidia-BlueField 22.04 LTS linux-bluefield No fix yet —
Ubuntu 25.10 linux 6.17.0-22.22 USN-8177-1
Ubuntu 25.10 linux-aws +1 6.17.0-1012.12 USN-8183-2, USN-8183-1
Ubuntu 25.10 linux-azure +1 6.17.0-1013.13 USN-8245-1
Ubuntu 25.10 linux-azure-fde No fix yet —
Ubuntu 25.10 linux-oracle 6.17.0-1011.11 USN-8183-2
Ubuntu 25.10 linux-realtime 6.17.0-1010.11 USN-8177-1
Ubuntu 25.10 linux-riscv 6.17.0-22.22.1 —
Ubuntu 24.04 LTS linux 6.8.0-110.110 USN-8179-1
Ubuntu 24.04 LTS linux-aws 6.8.0-1052.55 USN-8179-1
Ubuntu 24.04 LTS linux-aws-6.17 +1 6.17.0-1012.12~24.04.1 USN-8183-2, USN-8183-1
Ubuntu 24.04 LTS linux-azure 6.8.0-1054.60 USN-8258-1
Ubuntu 24.04 LTS linux-azure-6.17 6.17.0-1013.13~24.04.1 USN-8245-1
Ubuntu 24.04 LTS linux-azure-fde 6.8.0-1058.65 —
Ubuntu 24.04 LTS linux-azure-nvidia 6.8.0-1039.42 —
Ubuntu 24.04 LTS linux-gcp 6.8.0-1054.57 USN-8179-1
Ubuntu 24.04 LTS linux-gke 6.8.0-1050.56 USN-8179-1
Ubuntu 24.04 LTS linux-gkeop 6.8.0-1037.40 USN-8179-1
Ubuntu 24.04 LTS linux-hwe-6.17 6.17.0-22.22~24.04.1 USN-8183-2
Ubuntu 24.04 LTS linux-ibm 6.8.0-1051.51 USN-8179-1
Ubuntu 24.04 LTS linux-lowlatency 6.8.0-110.110.1 USN-8179-1
Ubuntu 24.04 LTS linux-nvidia 6.8.0-1051.54 USN-8185-1
Ubuntu 24.04 LTS linux-nvidia-6.17 6.17.0-1018.18 —
Ubuntu 24.04 LTS linux-nvidia-lowlatency 6.8.0-1051.54.1 USN-8185-2
Ubuntu 24.04 LTS linux-nvidia-tegra 6.8.0-1022.22 USN-8265-1
Ubuntu 24.04 LTS linux-oem-6.17 6.17.0-1020.20 USN-8245-1
Ubuntu 24.04 LTS linux-oracle 6.8.0-1049.50 USN-8203-1
Ubuntu 24.04 LTS linux-oracle-6.17 6.17.0-1011.11~24.04.1 USN-8183-2
Ubuntu 24.04 LTS linux-raspi 6.8.0-1052.56 USN-8179-3
Ubuntu 24.04 LTS linux-riscv +18 No fix yet —
Ubuntu 24.04 LTS linux-riscv-6.17 6.17.0-22.22.1~24.04.1 —
Ubuntu 24.04 LTS linux-xilinx 6.8.0-1028.29 USN-8261-1
Ubuntu 22.04 LTS linux +49 No fix yet —
Ubuntu 22.04 LTS linux-aws-6.8 6.8.0-1052.55~22.04.1 USN-8179-1
Ubuntu 22.04 LTS linux-azure-6.8 6.8.0-1059.65~22.04.1 USN-8440-1
Ubuntu 22.04 LTS linux-azure-fde-6.8 6.8.0-1058.65~22.04.1 —
Ubuntu 22.04 LTS linux-gcp-6.8 6.8.0-1054.57~22.04.1 USN-8179-4
Ubuntu 22.04 LTS linux-hwe-6.8 +1 6.8.0-110.110~22.04.1 USN-8179-3
Ubuntu 22.04 LTS linux-ibm-6.8 6.8.0-1051.51~22.04.1 USN-8179-3
Ubuntu 22.04 LTS linux-lowlatency-hwe-6.8 6.8.0-110.110.1~22.04.1 USN-8179-1
Ubuntu 22.04 LTS linux-nvidia-6.8 6.8.0-1051.54~22.04.1 USN-8185-1
Ubuntu 22.04 LTS linux-oracle-6.8 6.8.0-1049.50~22.04.1 USN-8203-1
Show 16 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS linux-gke +28 No fix yet —
Ubuntu 18.04 LTS linux-gcp +14 No fix yet —
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Ubuntu Pro Realtime 24.04 LTS linux-raspi-realtime 6.8.0-2042.43 USN-8204-1
Ubuntu Pro Realtime 24.04 LTS linux-realtime 6.8.1-1047.48 USN-8184-1
Ubuntu Pro Realtime 24.04 LTS linux-realtime-6.14 No fix yet —
Ubuntu Pro Realtime 24.04 LTS linux-realtime-6.17 6.17.0-1010.11~24.04.1 USN-8177-2
Ubuntu Pro Realtime 22.04 LTS linux-realtime +1 No fix yet —
Ubuntu Pro Realtime 22.04 LTS linux-realtime-6.8 6.8.1-1047.48~22.04.1 USN-8184-1
Ubuntu Pro FIPS 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 18.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS-updates 24.04 LTS linux-aws-fips 6.8.0-1052.55+fips1 USN-8179-2
Ubuntu Pro FIPS-updates 24.04 LTS linux-azure-fips 6.8.0-1053.59+fips1 —
Ubuntu Pro FIPS-updates 24.04 LTS linux-fips 6.8.0-110.110+fips2 USN-8179-2
Ubuntu Pro FIPS-updates 24.04 LTS linux-gcp-fips 6.8.0-1054.57+fips1 USN-8179-2
Ubuntu Pro FIPS-updates 22.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS-updates 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS-updates 18.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS-preview 22.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro 20.04 LTS linux +21 No fix yet —
Ubuntu Pro 18.04 LTS linux +12 No fix yet —
Ubuntu Pro 16.04 LTS linux-gcp +4 No fix yet —
Ubuntu Pro 14.04 LTS linux-azure No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 kernel-64kb +7 6.4.0-150700.53.34.1 SUSE-SU-2026:1081-1
SLES 15 SP7 kernel-default-base 6.4.0-150700.53.34.1.150700.17.23.1 SUSE-SU-2026:1081-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 kernel-64kb +8 6.12.0-160000.26.1 SUSE-SU-2026:20599-1
SLES for SAP 16.0 kernel-default-base 6.12.0-160000.26.1.160000.2.7 SUSE-SU-2026:20599-1
SLES 16.0 kernel-64kb +8 6.12.0-160000.26.1 SUSE-SU-2026:20615-1, SUSE-SU-2026:20599-1
SLES 16.0 kernel-default-base 6.12.0-160000.26.1.160000.2.7 SUSE-SU-2026:20599-1
SLE Micro 6.2 kernel-default-base 6.12.0-160000.26.1.160000.2.7 SUSE-SU-2026:20555-1
SLE Micro 6.2 kernel-rt +5 6.12.0-160000.26.1 SUSE-SU-2026:20570-1, SUSE-SU-2026:20555-1
SLE Micro 6.1 kernel-default-base 6.4.0-40.1.21.17 SUSE-SU-2026:20667-1
SLE Micro 6.1 kernel-rt +4 6.4.0-40.1 SUSE-SU-2026:20876-1, SUSE-SU-2026:20667-1
SLE Micro 6.0 kernel-default-base 6.4.0-40.1.21.17 SUSE-SU-2026:20720-1
SLE Micro 6.0 kernel-rt +4 6.4.0-40.1 SUSE-SU-2026:20845-1, SUSE-SU-2026:20720-1
SLE Live Patching 15 SP7 kernel-default 6.4.0-150700.53.34.1 SUSE-SU-2026:1081-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7-RT_Update_10 1-150700.1.3.1 SUSE-SU-2026:0962-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7_Update_10 1-150700.15.3.1 SUSE-SU-2026:1081-1
SUSE Real Time Module 15 SP7 kernel-rt +2 6.4.0-150700.7.34.1 SUSE-SU-2026:0962-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 kernel-default-base 6.12.0-160000.26.1.160000.2.7 openSUSE-SU-2026:20287-1
openSUSE Leap 16.0 kernel-rt +11 6.12.0-160000.26.1 openSUSE-SU-2026:20287-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 kernel-livepatch-6.12.64-87.122 +1 1:1.0-0.amzn2023 ALAS2023-2026-1494, ALAS2023-2026-1423
Amazon Linux 2023 perf +14 1:6.1.161-183.298.amzn2023 ALAS2023-2026-1494
Amazon Linux 2023 perf6.12 +14 1:6.12.64-87.122.amzn2023 ALAS2023-2026-1423

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 kernel 6.6.121.1-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 kernel-uek +34 6.12.0-108.64.6.3.el10uek ELSA-2026-50112

Advisories 36

References