# CVE-2026-23465: btrfs: log new dentries when logging parent dir of a conflicting inode

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-04-03T15:15:44.862Z
- Modified: 2026-10-30T13:18:38.753Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from a3baaf0d786e22fc86295fda9c58ba0dee07599f before 6c23595c54cfeb878e3fbbb8eb08bc5061d0c2d4; from a3baaf0d786e22fc86295fda9c58ba0dee07599f before 56e72c8b02d982be775d9df025357c152383ee84; from a3baaf0d786e22fc86295fda9c58ba0dee07599f before f556b1e09d054e31f464c0fd37280c2b5a393fee; from a3baaf0d786e22fc86295fda9c58ba0dee07599f before 1cf30c73602c69d750c9345c47f2c0e9d0cfb578; from a3baaf0d786e22fc86295fda9c58ba0dee07599f before 6f5a51969b1deb79aefd2194b48fe7e78e72ff7e; from a3baaf0d786e22fc86295fda9c58ba0dee07599f before 9573a365ff9ff45da9222d3fe63695ce562beb24; 5.1 (not affected: before 5.1; from 6.1.191 up to 6.1.*; from 6.6.130 up to 6.6.*; from 6.12.78 up to 6.12.*; from 6.18.20 up to 6.18.*; from 6.19.10 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 5.1 before 6.6.130; from 6.7 before 6.12.78; from 6.13 before 6.18.20; from 6.19 before 6.19.10; 7.0

## References

- <https://git.kernel.org/stable/c/6c23595c54cfeb878e3fbbb8eb08bc5061d0c2d4>
- <https://git.kernel.org/stable/c/56e72c8b02d982be775d9df025357c152383ee84> (patch)
- <https://git.kernel.org/stable/c/f556b1e09d054e31f464c0fd37280c2b5a393fee> (patch)
- <https://git.kernel.org/stable/c/1cf30c73602c69d750c9345c47f2c0e9d0cfb578> (patch)
- <https://git.kernel.org/stable/c/6f5a51969b1deb79aefd2194b48fe7e78e72ff7e> (patch)
- <https://git.kernel.org/stable/c/9573a365ff9ff45da9222d3fe63695ce562beb24> (patch)

## Sources

- CVE List: [CVE-2026-23465](https://www.cve.org/CVERecord?id=CVE-2026-23465), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-23465](https://nvd.nist.gov/vuln/detail/CVE-2026-23465), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-23465 · Whole record: https://cve.day/CVE-2026-23465.json · Rebuilt by cve.day 2026-11-25T22:59:17.892Z
