# CVE-2026-53368: f2fs: fix fsck inconsistency caused by incorrect nat\_entry flag usage

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; 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-07-19T09:10:29.573Z
- **Modified:** 2026-10-30T13:19:16.840Z

## Who should check

- Anyone running Linux \>= 88bd02c9472a166b706284a34a84f1243322d782, \< bb1275802b482bc5854e434e212589fe253eab22; \>= 88bd02c9472a166b706284a34a84f1243322d782, \< 270c519bca3a59b6140d176415aff16e4e06f9e3; \>= 88bd02c9472a166b706284a34a84f1243322d782, \< bedb710b63ae1bd617e65d0a8cf6cea1200b3753; \>= 88bd02c9472a166b706284a34a84f1243322d782, \< b28a83ea4934215b5de906c3ee4fbfbc651573e0; \>= 88bd02c9472a166b706284a34a84f1243322d782, \< 019f9dda7f66e55eb94cd32e1d3fff5835f73fbc
- Anyone running Linux 3.18

## Description

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

f2fs: fix fsck inconsistency caused by incorrect nat\_entry flag usage

f2fs\_need\_dentry\_mark() reads nat\_entry flags without mutual exclusion
with the checkpoint path, which can result in an incorrect inode block
marking state. The scenario is as follows:

create & write & fsync 'file A'                 write checkpoint
- f2fs\_do\_sync\_file // inline inode
 - f2fs\_write\_inode // inode folio is dirty
                                                - f2fs\_write\_checkpoint
                                                 - f2fs\_flush\_merged\_writes
                                                 - f2fs\_sync\_node\_pages
 - f2fs\_fsync\_node\_pages // no dirty node
 - f2fs\_need\_inode\_block\_update // return true
 - f2fs\_fsync\_node\_pages // inode dirtied
  - f2fs\_need\_dentry\_mark //return true
                                                 - f2fs\_flush\_nat\_entries
                                                - f2fs\_write\_checkpoint end
  - \_\_write\_node\_folio // inode with DENT\_BIT\_SHIFT set
  SPO, "fsck --dry-run" find inode has already checkpointed but still
  with DENT\_BIT\_SHIFT set

The state observed by f2fs\_need\_dentry\_mark() can differ from the state
observed in \_\_write\_node\_folio() after acquiring sbi-\>node\_write. The
root cause is that the semantics of IS\_CHECKPOINTED and
HAS\_FSYNCED\_INODE are only guaranteed after the checkpoint write has
fully completed.

This patch moves set\_dentry\_mark() into \_\_write\_node\_folio() and
protects it with the sbi-\>node\_write lock.

## Affected and fixed versions

- Linux: \>= 88bd02c9472a166b706284a34a84f1243322d782, \< bb1275802b482bc5854e434e212589fe253eab22; \>= 88bd02c9472a166b706284a34a84f1243322d782, \< 270c519bca3a59b6140d176415aff16e4e06f9e3; \>= 88bd02c9472a166b706284a34a84f1243322d782, \< bedb710b63ae1bd617e65d0a8cf6cea1200b3753; \>= 88bd02c9472a166b706284a34a84f1243322d782, \< b28a83ea4934215b5de906c3ee4fbfbc651573e0; \>= 88bd02c9472a166b706284a34a84f1243322d782, \< 019f9dda7f66e55eb94cd32e1d3fff5835f73fbc (cvelist)
- Linux: 3.18 (cvelist)

## Mitigation

- Upgrade Linux to 019f9dda7f66e55eb94cd32e1d3fff5835f73fbc 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-53368. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-53368.md
Affected: Linux >= 88bd02c9472a166b706284a34a84f1243322d782, < bb1275802b482bc5854e434e212589fe253eab22; >= 88bd02c9472a166b706284a34a84f1243322d782, < 270c519bca3a59b6140d176415aff16e4e06f9e3; >= 88bd02c9472a166b706284a34a84f1243322d782, < bedb710b63ae1bd617e65d0a8cf6cea1200b3753; >= 88bd02c9472a166b706284a…
Fixed in: Linux 270c519bca3a59b6140d176415aff16e4e06f9e3, Linux 019f9dda7f66e55eb94cd32e1d3fff5835f73fbc

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-53368 being exploited?

There is no confirmed exploitation: CVE-2026-53368 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-53368?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 88bd02c9472a166b706284a34a84f1243322d782, \< bb1275802b482bc5854e434e212589fe253eab22; \>= 88bd02c9472a166b706284a34a84f1243322d782, \< 270c519bca3a59b6140d176415aff16e4e06f9e3; \>= 88bd02c9472a166b706284a34a84f1243322d782, \< bedb710b63ae1bd617e65d0a8cf6cea1200b3753; \>= 88bd02c9472a166b706284a34a84f1243322d782, \< b28a83ea4934215b5de906c3ee4fbfbc651573e0; \>= 88bd02c9472a166b706284a34a84f1243322d782, \< 019f9dda7f66e55eb94cd32e1d3fff5835f73fbc; Linux 3.18.

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

Yes. Fixed in Linux 270c519bca3a59b6140d176415aff16e4e06f9e3, Linux 019f9dda7f66e55eb94cd32e1d3fff5835f73fbc. Upgrade Linux to 019f9dda7f66e55eb94cd32e1d3fff5835f73fbc or later.

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

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/bedb710b63ae1bd617e65d0a8cf6cea1200b3753>
- patch: <https://git.kernel.org/stable/c/b28a83ea4934215b5de906c3ee4fbfbc651573e0>
- patch: <https://git.kernel.org/stable/c/019f9dda7f66e55eb94cd32e1d3fff5835f73fbc>
- other: <https://git.kernel.org/stable/c/bb1275802b482bc5854e434e212589fe253eab22>
- other: <https://git.kernel.org/stable/c/270c519bca3a59b6140d176415aff16e4e06f9e3>

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

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