Skip to content
Heist/ feed
High

f2fs: fix fsck inconsistency caused by FGGC of node block

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: f2fs: fix fsck inconsistency caused by FGGC of node block During FGGC node block migration, fsck may incorrectly treat the migrated node block as fsync-written data. The reproduction scenario: root@vm:/mnt/f2fs# seq 1 2048 | xargs -n 1 ./test_sync // write inline inode and sync root@vm:/mnt/f2fs# rm -f 1 root@vm:/mnt/f2fs# sync root@vm:/mnt/f2fs# f2fs_io gc_range // move data block in sync mode and not write CP SPO, "fsck --dry-run" find inode has already checkpointed but still with DENT_BIT_SHIFT set The root cause is that GC does not clear the dentry mark and fsync mark during node block migration, leading fsck to misinterpret them as user-issued fsync writes. In BGGC mode, node block migration is handled by f2fs_sync_node_pages(), which guarantees the dentry and fsync marks are cleared before writing. This patch move the set/clear of the fsync|dentry marks into __write_node_folio to make the logic clearer, and ensures the fsync|dentry mark is cleared in FGGC.

Announced Group revision 1
Original source ↗

CVE-2026-46175

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-46175

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f",
        "lessThan": "d1820a5814eadb8e63ab6c7c8d04e28ce49836be",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f",
        "lessThan": "8ac93964658d0649337dcb3f6e38d77f8cdd86f3",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f",
        "lessThan": "8be551f538dc5b64183e27bd45a7a0795263f760",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f",
        "lessThan": "e7c6d30169b03307d27c4479563df79c08f3a746",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f",
        "lessThan": "c3e238bd1f56993f205ef83889d406dfeaf717a8",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/f2fs/node.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4.7"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.7",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.160",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.114",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.30",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.0.7",
        "versionType": "semver",
        "lessThanOrEqual": "7.0.*"
      },
      {
        "status": "unaffected",
        "version": "7.1",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/f2fs/node.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-46175

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#46331 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement