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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | kernel | 6.6.121.1-1 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | kernel-uek +34 | 6.12.0-108.64.6.3.el10uek | ELSA-2026-50112 |
Advisories 36
- WID-SEC-2026-0086 Linux Kernel: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 12, 2026
- USN-8440-1 linux-azure-6.8 vulnerabilities Ubuntu Security Notices (USN) · Nov 7, 2026
- USN-8179-1 linux, linux-aws, linux-aws-6.8, linux-gcp, linux-gke, linux-gkeop, linux-ibm, linux-lowlatency, linux-lowlatency-hwe-6.8 vulnerabilities Ubuntu Security Notices (USN) · Nov 4, 2026
- USN-8183-2 linux-aws, linux-aws-6.17, linux-hwe-6.17, linux-oracle, linux-oracle-6.17 vulnerabilities Ubuntu Security Notices (USN) · Nov 4, 2026
- USN-8203-1 linux-oracle, linux-oracle-6.8 vulnerabilities Ubuntu Security Notices (USN) · Nov 4, 2026
- USN-8204-1 linux-raspi-realtime vulnerabilities Ubuntu Security Notices (USN) · Nov 4, 2026
- USN-8184-1 linux-realtime, linux-realtime-6.8 vulnerabilities Ubuntu Security Notices (USN) · Nov 4, 2026
- USN-8185-1 linux-nvidia, linux-nvidia-6.8 vulnerabilities Ubuntu Security Notices (USN) · Nov 4, 2026
- USN-8185-2 linux-nvidia-lowlatency vulnerabilities Ubuntu Security Notices (USN) · Nov 4, 2026
- USN-8179-3 linux-hwe-6.8, linux-ibm-6.8, linux-raspi vulnerabilities Ubuntu Security Notices (USN) · Nov 4, 2026
- USN-8265-1 linux-nvidia-tegra vulnerabilities Ubuntu Security Notices (USN) · Nov 4, 2026
- USN-8258-1 linux-azure vulnerabilities Ubuntu Security Notices (USN) · Nov 4, 2026
- USN-8179-4 linux-gcp-6.8 vulnerabilities Ubuntu Security Notices (USN) · Nov 4, 2026
- USN-8183-1 linux-gcp, linux-gcp-6.17 vulnerabilities Ubuntu Security Notices (USN) · Nov 4, 2026
- USN-8245-1 linux-azure, linux-azure-6.17, linux-oem-6.17 vulnerabilities Ubuntu Security Notices (USN) · Nov 4, 2026
- USN-8177-2 linux-realtime-6.17 vulnerabilities Ubuntu Security Notices (USN) · Nov 4, 2026
- USN-8179-2 linux-aws-fips, linux-fips, linux-gcp-fips vulnerabilities Ubuntu Security Notices (USN) · Nov 4, 2026
- USN-8177-1 linux, linux-realtime vulnerabilities Ubuntu Security Notices (USN) · Nov 4, 2026
- USN-8261-1 linux-xilinx vulnerabilities Ubuntu Security Notices (USN) · Sep 7, 2026
- SUSE-SU-2026:20570-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Jul 9, 2026
- SUSE-SU-2026:20876-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 31, 2026
- SUSE-SU-2026:20845-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 28, 2026
- ALAS2023-2026-1494 Important: kernel security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Mar 27, 2026
- SUSE-SU-2026:1081-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 27, 2026
- SUSE-SU-2026:0962-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 24, 2026
- openSUSE-SU-2026:20287-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:20720-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:20667-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:20615-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:20599-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:20555-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- DSA-6127-1 linux - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-6126-1 linux - security update Debian Security (DSA / DLA) · Mar 9, 2026
- ELSA-2026-50112 Important: Unbreakable Enterprise kernel security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Feb 20, 2026
- ALAS2023-2026-1423 Important: kernel6.12 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Feb 11, 2026
- DLA-4476-1 linux-6.1 - security update Debian Security (DSA / DLA) · Feb 10, 2026
References
- https://git.kernel.org/stable/c/d64f3834dffef80f0a9185a037617a54ed7f4bd2
- https://git.kernel.org/stable/c/7359e1d39c78816ecbdb0cb4e93975794ce53973
- https://git.kernel.org/stable/c/d478f50727c3ee46d0359f0d2ae114f70191816e
- https://git.kernel.org/stable/c/a35788ddf8df65837897ecbb0ddb2896b863159e
- https://git.kernel.org/stable/c/266273eaf4d99475f1ae57f687b3e42bc71ec6f0