CVE-2023-54187 (GCVE-0-2023-54187)
Vulnerability from cvelistv5
Published
2025-12-30 12:08
Modified
2026-08-05 09:17
Summary
In the Linux kernel, the following vulnerability has been resolved: f2fs: fix potential corruption when moving a directory F2FS has the same issue in ext4_rename causing crash revealed by xfstests/generic/707. See also commit 0813299c586b ("ext4: Fix possible corruption when moving a directory")
Impacted products
Vendor Product Version
Linux Linux Version: 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce
Version: 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce
Version: 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce
Version: 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce
Version: 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce
Version: 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce
Version: 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/f2fs/namei.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "3e77036246123ff710fa2661dcaa12a45284f09b",
              "status": "affected",
              "version": "622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce",
              "versionType": "git"
            },
            {
              "lessThan": "957904f531fd857a92743b11fbc9c9ffdf7f3207",
              "status": "affected",
              "version": "622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce",
              "versionType": "git"
            },
            {
              "lessThan": "8f57f3e112cf1d16682b6ff9c31c72f40f7da9c9",
              "status": "affected",
              "version": "622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce",
              "versionType": "git"
            },
            {
              "lessThan": "8a0b544b7caedfbc05065b6377fd1d8bf7ef5e70",
              "status": "affected",
              "version": "622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce",
              "versionType": "git"
            },
            {
              "lessThan": "f20191100952013f0916418cdaed0ab55c7b634c",
              "status": "affected",
              "version": "622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce",
              "versionType": "git"
            },
            {
              "lessThan": "0a76082a4a32a90d1ef33dee8b400efc082b4b6f",
              "status": "affected",
              "version": "622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce",
              "versionType": "git"
            },
            {
              "lessThan": "d94772154e524b329a168678836745d2773a6e02",
              "status": "affected",
              "version": "622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/f2fs/namei.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.19"
            },
            {
              "lessThan": "3.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.243",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.180",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.112",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.29",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.2.*",
              "status": "unaffected",
              "version": "6.2.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.3.*",
              "status": "unaffected",
              "version": "6.3.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.4",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.243",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.180",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.112",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.29",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2.16",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.3.3",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.4",
                  "versionStartIncluding": "3.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: fix potential corruption when moving a directory\n\nF2FS has the same issue in ext4_rename causing crash revealed by\nxfstests/generic/707.\n\nSee also commit 0813299c586b (\"ext4: Fix possible corruption when moving a directory\")"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The vulnerability is reached through the ordinary rename()/renameat2() syscall on a locally mounted f2fs filesystem, requiring local system access. No network protocol handler is involved.\nAC:L - The attacker controls both sides of the race \u2014 one thread issues the cross-directory rename while another creates entries in the moved directory to force inline-to-normal dentry conversion \u2014 and the unprotected window spans f2fs_balance_fs() (which can run GC and block for a long time), f2fs_lock_op() and f2fs_add_link(), making it wide and retryable indefinitely.\nPR:L - Any unprivileged local user with write access to two directories on an f2fs mount can trigger this; on Android every app has writable directories on the f2fs /data partition, and inline_dentry is enabled by default in default_options().\nUI:N - The attacker performs both the rename and the concurrent directory-modifying operations itself; no victim action is needed on an already-mounted filesystem.\nS:U - The corruption stays within the kernel/filesystem security authority; there is no crossing into a hypervisor, IOMMU, or other separate security scope.\nC:H - The stale write lands inside the inode\u0027s i_addr[] block-address array, planting an attacker-influenced physical block number into the directory, so subsequent readdir/lookup reads and exposes disk blocks belonging to other users\u0027 files.\nI:H - This is persistent on-disk metadata corruption \u2014 an attacker-influenced 32-bit value is written into a directory inode\u0027s block pointer and marked dirty, causing later directory writes to overwrite blocks owned by other files and producing double-allocated blocks requiring fsck.\nA:H - The commit states the race causes a crash (reproduced by xfstests/generic/707), and the resulting mismatched page-type writeback wait can hang under the page lock while the corrupted metadata triggers -EFSCORRUPTED/SBI_NEED_FSCK filesystem shutdown."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T09:17:54.804Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/3e77036246123ff710fa2661dcaa12a45284f09b"
        },
        {
          "url": "https://git.kernel.org/stable/c/957904f531fd857a92743b11fbc9c9ffdf7f3207"
        },
        {
          "url": "https://git.kernel.org/stable/c/8f57f3e112cf1d16682b6ff9c31c72f40f7da9c9"
        },
        {
          "url": "https://git.kernel.org/stable/c/8a0b544b7caedfbc05065b6377fd1d8bf7ef5e70"
        },
        {
          "url": "https://git.kernel.org/stable/c/f20191100952013f0916418cdaed0ab55c7b634c"
        },
        {
          "url": "https://git.kernel.org/stable/c/0a76082a4a32a90d1ef33dee8b400efc082b4b6f"
        },
        {
          "url": "https://git.kernel.org/stable/c/d94772154e524b329a168678836745d2773a6e02"
        }
      ],
      "title": "f2fs: fix potential corruption when moving a directory",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-54187",
    "datePublished": "2025-12-30T12:08:56.562Z",
    "dateReserved": "2025-12-30T12:06:44.497Z",
    "dateUpdated": "2026-08-05T09:17:54.804Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…