# CVE-2025-71069: f2fs: invalidate dentry cache on failed whiteout creation

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 11, 2026-11-26)
- **Published:** 2026-01-13T15:31:23.948Z
- **Modified:** 2026-06-17T10:03:35.880Z

## Who should check

- Anyone running Linux \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< 7f2bae0c881aa1e0a6318756df692cc13df2cc83; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< 3d95ed8cf980fdfa67a3ab9491357521ae576168; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< 64587ab4d1f16fc94f70e04fa87b2e3f69f8a7bb; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< 3d65e27e57aaa9d66709fda4cbfb62a87c04a3f5; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< c89845fae250efdd59c1d4ec60e9e1c652cee4b6; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< 0dde30753c1e8648665dbe069d814e540ce2fd37; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< d33f89b34aa313f50f9a512d58dd288999f246b0
- Anyone running Linux 4.2

## Description

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

f2fs: invalidate dentry cache on failed whiteout creation

F2FS can mount filesystems with corrupted directory depth values that
get runtime-clamped to MAX\_DIR\_HASH\_DEPTH. When RENAME\_WHITEOUT
operations are performed on such directories, f2fs\_rename performs
directory modifications (updating target entry and deleting source
entry) before attempting to add the whiteout entry via f2fs\_add\_link.

If f2fs\_add\_link fails due to the corrupted directory structure, the
function returns an error to VFS, but the partial directory
modifications have already been committed to disk. VFS assumes the
entire rename operation failed and does not update the dentry cache,
leaving stale mappings.

In the error path, VFS does not call d\_move() to update the dentry
cache. This results in new\_dentry still pointing to the old inode
(new\_inode) which has already had its i\_nlink decremented to zero.
The stale cache causes subsequent operations to incorrectly reference
the freed inode.

This causes subsequent operations to use cached dentry information that
no longer matches the on-disk state. When a second rename targets the
same entry, VFS attempts to decrement i\_nlink on the stale inode, which
may already have i\_nlink=0, triggering a WARNING in drop\_nlink().

Example sequence:
1. First rename (RENAME\_WHITEOUT): file2 → file1
   - f2fs updates file1 entry on disk (points to inode 8)
   - f2fs deletes file2 entry on disk
   - f2fs\_add\_link(whiteout) fails (corrupted directory)
   - Returns error to VFS
   - VFS does not call d\_move() due to error
   - VFS cache still has: file1 → inode 7 (stale!)
   - inode 7 has i\_nlink=0 (already decremented)

2. Second rename: file3 → file1
   - VFS uses stale cache: file1 → inode 7
   - Tries to drop\_nlink on inode 7 (i\_nlink already 0)
   - WARNING in drop\_nlink()

Fix this by explicitly invalidating old\_dentry and new\_dentry when
f2fs\_add\_link fails during whiteout creation. This forces VFS to
refresh from disk on subsequent operations, ensuring cache consistency
even when the rename partially succeeds.

Reproducer:
1. Mount F2FS image with corrupted i\_current\_depth
2. renameat2(file2, file1, RENAME\_WHITEOUT)
3. renameat2(file3, file1, 0)
4. System triggers WARNING in drop\_nlink()

## Affected and fixed versions

- Linux: \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< 7f2bae0c881aa1e0a6318756df692cc13df2cc83; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< 3d95ed8cf980fdfa67a3ab9491357521ae576168; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< 64587ab4d1f16fc94f70e04fa87b2e3f69f8a7bb; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< 3d65e27e57aaa9d66709fda4cbfb62a87c04a3f5; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< c89845fae250efdd59c1d4ec60e9e1c652cee4b6; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< 0dde30753c1e8648665dbe069d814e540ce2fd37; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< d33f89b34aa313f50f9a512d58dd288999f246b0 (cvelist)
- Linux: 4.2 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-71069.md
Affected: Linux >= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, < 7f2bae0c881aa1e0a6318756df692cc13df2cc83; >= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, < 3d95ed8cf980fdfa67a3ab9491357521ae576168; >= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, < 64587ab4d1f16fc94f70e04fa87b2e3f69f8a7bb; >= 7e01e7ad746bc8198a8b461…
Fixed in: Linux 7f2bae0c881aa1e0a6318756df692cc13df2cc83, Linux 3d95ed8cf980fdfa67a3ab9491357521ae576168, Linux 64587ab4d1f16fc94f70e04fa87b2e3f69f8a7bb, Linux 3d65e27e57aaa9d66709fda4cbfb62a87c04a3f5, Linux 0dde30753c1e8648665dbe069d814e540ce2fd37

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-2025-71069 being exploited?

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

### How serious is CVE-2025-71069?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-71069?

Linux \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< 7f2bae0c881aa1e0a6318756df692cc13df2cc83; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< 3d95ed8cf980fdfa67a3ab9491357521ae576168; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< 64587ab4d1f16fc94f70e04fa87b2e3f69f8a7bb; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< 3d65e27e57aaa9d66709fda4cbfb62a87c04a3f5; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< c89845fae250efdd59c1d4ec60e9e1c652cee4b6; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< 0dde30753c1e8648665dbe069d814e540ce2fd37; \>= 7e01e7ad746bc8198a8b46163ddc73a1c7d22339, \< d33f89b34aa313f50f9a512d58dd288999f246b0; Linux 4.2.

### Is there a fix for CVE-2025-71069?

Yes. Fixed in Linux 7f2bae0c881aa1e0a6318756df692cc13df2cc83, Linux 3d95ed8cf980fdfa67a3ab9491357521ae576168, Linux 64587ab4d1f16fc94f70e04fa87b2e3f69f8a7bb, Linux 3d65e27e57aaa9d66709fda4cbfb62a87c04a3f5, Linux 0dde30753c1e8648665dbe069d814e540ce2fd37. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-71069?

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

- other: <https://git.kernel.org/stable/c/7f2bae0c881aa1e0a6318756df692cc13df2cc83>
- other: <https://git.kernel.org/stable/c/3d95ed8cf980fdfa67a3ab9491357521ae576168>
- other: <https://git.kernel.org/stable/c/64587ab4d1f16fc94f70e04fa87b2e3f69f8a7bb>
- other: <https://git.kernel.org/stable/c/3d65e27e57aaa9d66709fda4cbfb62a87c04a3f5>
- other: <https://git.kernel.org/stable/c/c89845fae250efdd59c1d4ec60e9e1c652cee4b6>
- other: <https://git.kernel.org/stable/c/0dde30753c1e8648665dbe069d814e540ce2fd37>
- other: <https://git.kernel.org/stable/c/d33f89b34aa313f50f9a512d58dd288999f246b0>

## 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-2025-71069>

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