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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **Published:** 2026-04-03T15:15:44.862Z
- **Modified:** 2026-10-30T13:18:38.753Z

## Who should check

- Anyone running Linux \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< 6c23595c54cfeb878e3fbbb8eb08bc5061d0c2d4; \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< 56e72c8b02d982be775d9df025357c152383ee84; \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< f556b1e09d054e31f464c0fd37280c2b5a393fee; \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< 1cf30c73602c69d750c9345c47f2c0e9d0cfb578; \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< 6f5a51969b1deb79aefd2194b48fe7e78e72ff7e; \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< 9573a365ff9ff45da9222d3fe63695ce562beb24
- Anyone running Linux 5.1

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

## Affected and fixed versions

- Linux: \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< 6c23595c54cfeb878e3fbbb8eb08bc5061d0c2d4; \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< 56e72c8b02d982be775d9df025357c152383ee84; \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< f556b1e09d054e31f464c0fd37280c2b5a393fee; \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< 1cf30c73602c69d750c9345c47f2c0e9d0cfb578; \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< 6f5a51969b1deb79aefd2194b48fe7e78e72ff7e; \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< 9573a365ff9ff45da9222d3fe63695ce562beb24 (cvelist)
- Linux: 5.1 (cvelist)

## Mitigation

- Upgrade Linux to 9573a365ff9ff45da9222d3fe63695ce562beb24 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-23465. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23465.md
Affected: Linux >= a3baaf0d786e22fc86295fda9c58ba0dee07599f, < 6c23595c54cfeb878e3fbbb8eb08bc5061d0c2d4; >= a3baaf0d786e22fc86295fda9c58ba0dee07599f, < 56e72c8b02d982be775d9df025357c152383ee84; >= a3baaf0d786e22fc86295fda9c58ba0dee07599f, < f556b1e09d054e31f464c0fd37280c2b5a393fee; >= a3baaf0d786e22fc86295fd…
Fixed in: Linux 6c23595c54cfeb878e3fbbb8eb08bc5061d0c2d4, Linux 56e72c8b02d982be775d9df025357c152383ee84, Linux 1cf30c73602c69d750c9345c47f2c0e9d0cfb578, Linux 6f5a51969b1deb79aefd2194b48fe7e78e72ff7e, Linux 9573a365ff9ff45da9222d3fe63695ce562beb24

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-23465 being exploited?

There is no confirmed exploitation: CVE-2026-23465 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-23465?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-23465?

Linux \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< 6c23595c54cfeb878e3fbbb8eb08bc5061d0c2d4; \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< 56e72c8b02d982be775d9df025357c152383ee84; \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< f556b1e09d054e31f464c0fd37280c2b5a393fee; \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< 1cf30c73602c69d750c9345c47f2c0e9d0cfb578; \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< 6f5a51969b1deb79aefd2194b48fe7e78e72ff7e; \>= a3baaf0d786e22fc86295fda9c58ba0dee07599f, \< 9573a365ff9ff45da9222d3fe63695ce562beb24; Linux 5.1.

### Is there a fix for CVE-2026-23465?

Yes. Fixed in Linux 6c23595c54cfeb878e3fbbb8eb08bc5061d0c2d4, Linux 56e72c8b02d982be775d9df025357c152383ee84, Linux 1cf30c73602c69d750c9345c47f2c0e9d0cfb578, Linux 6f5a51969b1deb79aefd2194b48fe7e78e72ff7e, Linux 9573a365ff9ff45da9222d3fe63695ce562beb24. Upgrade Linux to 9573a365ff9ff45da9222d3fe63695ce562beb24 or later.

### How do I check if I'm affected by CVE-2026-23465?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://git.kernel.org/stable/c/6c23595c54cfeb878e3fbbb8eb08bc5061d0c2d4>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-23465>

HTML: <https://flawdb.com/CVE-2026-23465> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-23465>
