All vulnerabilities

Servers and applications

CVE-2026-46160

btrfs: fix missing last_unlink_trans update when removing a directory

Severity
Unrated
Published
28 May 2026
Last changed
6 Nov 2026
Added to UpHeron
6 Nov 2026
Fixed in
5.15.210, 6.1.176, 6.6.141, 6.12.91, 6.18.30, 7.0.7
Exploit chance
0.1% in the next 30 daysHigher than 2% of CVEs. EPSS by FIRST, 19 Nov 2026
Sources
CVE Program

Description

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

When removing a directory we are not updating its last_unlink_trans field, which can result in incorrect fsync behaviour in case some one fsyncs the directory after it was removed because it's holding a file descriptor on it.

Example scenario:

mkdir /mnt/dir1 mkdir /mnt/dir1/dir2 mkdir /mnt/dir3

sync -f /mnt

chmod 700 /mnt/dir1 xfs_io -c fsync /mnt/dir1

mv /mnt/dir1/dir2 /mnt/dir3/

open fd on /mnt/dir1 call rmdir(2) on path "/mnt/dir1" fsync fd

When attempting to mount the filesystem, the log replay will fail with an -EIO error and dmesg/syslog has the following:

[445771.626482] BTRFS info (device dm-0): first mount of filesystem 0368bbea-6c5e-44b5-b409-09abe496e650 [445771.626486] BTRFS info (device dm-0): using crc32c checksum algorithm [445771.627912] BTRFS info (device dm-0): start tree-log replay [445771.628335] page: refcount:2 mapcount:0 mapping:0000000061443ddc index:0x1d00 pfn:0x7072a5…

From the CVE Program. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Linux kernelServers and applications · cna:linux|linux
  • From 6.19 before 7.0.7
  • From 6.13 before 6.18.30
  • From 6.7 before 6.12.91
  • From 6.2 before 6.6.141
All 7 release lines
  • From 2.6.30 before 5.10.259
  • From 5.11 before 5.15.210
  • From 5.16 before 6.1.176
  • From 6.2 before 6.6.141
  • From 6.7 before 6.12.91
  • From 6.13 before 6.18.30
  • From 6.19 before 7.0.7

About Linux kernel

Unix-like operating system kernel, basis for all Linux operating systems

From Wikidata, CC0 1.0.
GitHub stars
255,726GitHub, 15 Nov 2026
Forks
67,394GitHub, 15 Nov 2026
Developer
Linus TorvaldsWikidata
License
GNU General Public License, version 2.0Wikidata
Written in
CWikidata
First released
25 Aug 1991Wikidata
First published on GitHub
4 Sept 2011GitHub

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-46160