CVE-2026-23465

btrfs: log new dentries when logging parent dir of a conflicting inode

No CVSS score yet EPSS 0.18%

Published 3 Apr 2026 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2026-23465

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-23465 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

btrfs: log new dentries when logging parent dir of a conflicting inode

If we log the parent directory of a conflicting inode, we are not logging the new dentries of the directory, so when we finish we have the parent directory's inode marked as logged but we did not log its new dentries. As a consequence if the parent directory is explicitly fsynced later and it does not have any new changes since we logged it, the fsync is a no-op and after a power failure the new dentries are missing.

Example scenario:

$ mkdir foo

$ sync

$rmdir foo

$ mkdir dir1 $ mkdir dir2

# A file with the same name and parent as the directory we just deleted # and was persisted in a past transaction. So the deleted directory's # inode is a conflicting inode of this new file's inode. $ touch foo

$ ln foo dir2/link

# The fsync on dir2 will log the parent directory (".") because the # conflicting inode (deleted directory) does not exists anymore, but it # it does not log its new dentries (dir1). $ xfs_io -c "fsync" dir2

# This fsync on the parent directory is no-op, since the previous fsync # logged it (but without logging its new dentries). $ xfs_io -c "fsync" .

<power failure>

# After log replay dir1 is missing.

Fix this by ensuring we log new dir dentries whenever we log the parent directory of a no longer existing conflicting inode.

A test case for fstests will follow soon.

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.51% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from a3baaf0d786e22fc86295fda9c58ba0dee07599f, before 6c23595c54cfeb878e3fbbb8eb08bc5061d0c2d4
affected from a3baaf0d786e22fc86295fda9c58ba0dee07599f, before 56e72c8b02d982be775d9df025357c152383ee84
affected from a3baaf0d786e22fc86295fda9c58ba0dee07599f, before f556b1e09d054e31f464c0fd37280c2b5a393fee
affected from a3baaf0d786e22fc86295fda9c58ba0dee07599f, before 1cf30c73602c69d750c9345c47f2c0e9d0cfb578
affected from a3baaf0d786e22fc86295fda9c58ba0dee07599f, before 6f5a51969b1deb79aefd2194b48fe7e78e72ff7e
affected from a3baaf0d786e22fc86295fda9c58ba0dee07599f, before 9573a365ff9ff45da9222d3fe63695ce562beb24
Other versions: unaffected
Linux
affected 5.1
unaffected before 5.1
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.130 up to and including 6.6.*
unaffected from 6.12.78 up to and including 6.12.*
unaffected from 6.18.20 up to and including 6.18.*
unaffected from 6.19.10 up to and including 6.19.*
unaffected 7.0 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-23465 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-23465

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-23465
trivy image --scanners vuln IMAGE | grep CVE-2026-23465

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-23465 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.