{
  "id": "CVE-2025-21811",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21811",
  "published_at": "2025-02-27T20:01:02.256Z",
  "title": "nilfs2: protect access to buffers with no active references",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: protect access to buffers with no active references\n\nnilfs_lookup_dirty_data_buffers(), which iterates through the buffers\nattached to dirty data folios/pages, accesses the attached buffers without\nlocking the folios/pages.\n\nFor data cache, nilfs_clear_folio_dirty() may be called asynchronously\nwhen the file system degenerates to read only, so\nnilfs_lookup_dirty_data_buffers() still has the potential to cause use\nafter free issues when buffers lose the protection of their dirty state\nmidway due to this asynchronous clearing and are unintentionally freed by\ntry_to_free_buffers().\n\nEliminate this race issue by adjusting the lock section in this function.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.8,
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 8c26c4e2694a163d525976e804d81cd955bbb40c, \u003c e1fc4a90a90ea8514246c45435662531975937d9",
          "\u003e= 8c26c4e2694a163d525976e804d81cd955bbb40c, \u003c 72cf688d0ce7e642b12ddc9b2a42524737ec1b4a",
          "\u003e= 8c26c4e2694a163d525976e804d81cd955bbb40c, \u003c d8ff250e085a4c4cdda4ad1cdd234ed110393143",
          "\u003e= 8c26c4e2694a163d525976e804d81cd955bbb40c, \u003c 58c27fa7a610b6e8d44e6220e7dbddfbaccaf439",
          "\u003e= 8c26c4e2694a163d525976e804d81cd955bbb40c, \u003c 8e1b9201c9a24638cf09c6e1c9f224157328010b",
          "\u003e= 8c26c4e2694a163d525976e804d81cd955bbb40c, \u003c 4b08d23d7d1917bef4fbee8ad81372f49b006656",
          "\u003e= 8c26c4e2694a163d525976e804d81cd955bbb40c, \u003c c437dfac9f7a5a46ac2a5e6d6acd3059e9f68188",
          "\u003e= 8c26c4e2694a163d525976e804d81cd955bbb40c, \u003c 367a9bffabe08c04f6d725032cce3d891b2b9e1a"
        ],
        "fixed_in": [
          "e1fc4a90a90ea8514246c45435662531975937d9",
          "72cf688d0ce7e642b12ddc9b2a42524737ec1b4a",
          "d8ff250e085a4c4cdda4ad1cdd234ed110393143",
          "58c27fa7a610b6e8d44e6220e7dbddfbaccaf439",
          "8e1b9201c9a24638cf09c6e1c9f224157328010b",
          "4b08d23d7d1917bef4fbee8ad81372f49b006656",
          "c437dfac9f7a5a46ac2a5e6d6acd3059e9f68188",
          "367a9bffabe08c04f6d725032cce3d891b2b9e1a"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.10"
        ],
        "fixed_in": [
          "0",
          "5.4.291",
          "5.10.235",
          "5.15.179",
          "6.1.129",
          "6.6.76",
          "6.12.13",
          "6.13.2",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to e1fc4a90a90ea8514246c45435662531975937d9 or 72cf688d0ce7e642b12ddc9b2a42524737ec1b4a or d8ff250e085a4c4cdda4ad1cdd234ed110393143 or 58c27fa7a610b6e8d44e6220e7dbddfbaccaf439 or 8e1b9201c9a24638cf09c6e1c9f224157328010b or 4b08d23d7d1917bef4fbee8ad81372f49b006656 or c437dfac9f7a5a46ac2a5e6d6acd3059e9f68188 or 367a9bffabe08c04f6d725032cce3d891b2b9e1a or later.",
      "Upgrade Linux to 0 or 5.4.291 or 5.10.235 or 5.15.179 or 6.1.129 or 6.6.76 or 6.12.13 or 6.13.2 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
