{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2025-21721",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-21721",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-02-27T02:07:29.784Z",
    "updatedAt": "2026-05-11T21:05:08.609Z",
    "importedAt": "2026-10-24T01:57:29.455Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "nilfs2: handle errors that nilfs_prepare_chunk() may return",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: handle errors that nilfs_prepare_chunk() may return\n\nPatch series \"nilfs2: fix issues with rename operations\".\n\nThis series fixes BUG_ON check failures reported by syzbot around rename\noperations, and a minor behavioral issue where the mtime of a child\ndirectory changes when it is renamed instead of moved.\n\n\nThis patch (of 2):\n\nThe directory manipulation routines nilfs_set_link() and\nnilfs_delete_entry() rewrite the directory entry in the folio/page\npreviously read by nilfs_find_entry(), so error handling is omitted on the\nassumption that nilfs_prepare_chunk(), which prepares the buffer for\nrewriting, will always succeed for these.  And if an error is returned, it\ntriggers the legacy BUG_ON() checks in each routine.\n\nThis assumption is wrong, as proven by syzbot: the buffer layer called by\nnilfs_prepare_chunk() may call nilfs_get_block() if necessary, which may\nfail due to metadata corruption or other reasons.  This has been there all\nalong, but improved sanity checks and error handling may have made it more\nreproducible in fuzzing tests.\n\nFix this issue by adding missing error paths in nilfs_set_link(),\nnilfs_delete_entry(), and their caller nilfs_rename().",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "2ba466d74ed74f073257f86e61519cb8f8f46184",
              "status": "affected",
              "versionType": "git",
              "lessThan": "b38c6c260c2415c7f0968871305e7a093daabb4c"
            },
            {
              "version": "2ba466d74ed74f073257f86e61519cb8f8f46184",
              "status": "affected",
              "versionType": "git",
              "lessThan": "f70bd2d8ca454e0ed78970f72147ca321dbaa015"
            },
            {
              "version": "2ba466d74ed74f073257f86e61519cb8f8f46184",
              "status": "affected",
              "versionType": "git",
              "lessThan": "607dc724b162f4452dc768865e578c1a509a1c8c"
            },
            {
              "version": "2ba466d74ed74f073257f86e61519cb8f8f46184",
              "status": "affected",
              "versionType": "git",
              "lessThan": "1ee2d454baa361d2964e3e2f2cca9ee3f769d93c"
            },
            {
              "version": "2ba466d74ed74f073257f86e61519cb8f8f46184",
              "status": "affected",
              "versionType": "git",
              "lessThan": "7891ac3b0a5c56f7148af507306308ab841cdc31"
            },
            {
              "version": "2ba466d74ed74f073257f86e61519cb8f8f46184",
              "status": "affected",
              "versionType": "git",
              "lessThan": "eddd3176b8c4c83a46ab974574cda7c3dfe09388"
            },
            {
              "version": "2ba466d74ed74f073257f86e61519cb8f8f46184",
              "status": "affected",
              "versionType": "git",
              "lessThan": "481136234dfe96c7f92770829bec6111c7c5f5dd"
            },
            {
              "version": "2ba466d74ed74f073257f86e61519cb8f8f46184",
              "status": "affected",
              "versionType": "git",
              "lessThan": "ee70999a988b8abc3490609142f50ebaa8344432"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "2.6.30",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "2.6.30"
            },
            {
              "version": "5.4.291",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.235",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.179",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.131",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.80",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.13",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.13.2",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.13.*"
            },
            {
              "version": "6.14",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}