{"id":"CVE-2025-21811","published":"2025-02-27T20:01:02Z","modified":"2026-08-05T11:54:38Z","title":"nilfs2: protect access to buffers with no active references","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00326,"percentile":0.18149,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/e1fc4a90a90ea8514246c45435662531975937d9","tags":[]},{"url":"https://git.kernel.org/stable/c/72cf688d0ce7e642b12ddc9b2a42524737ec1b4a","tags":[]},{"url":"https://git.kernel.org/stable/c/d8ff250e085a4c4cdda4ad1cdd234ed110393143","tags":[]},{"url":"https://git.kernel.org/stable/c/58c27fa7a610b6e8d44e6220e7dbddfbaccaf439","tags":[]},{"url":"https://git.kernel.org/stable/c/8e1b9201c9a24638cf09c6e1c9f224157328010b","tags":[]},{"url":"https://git.kernel.org/stable/c/4b08d23d7d1917bef4fbee8ad81372f49b006656","tags":[]},{"url":"https://git.kernel.org/stable/c/c437dfac9f7a5a46ac2a5e6d6acd3059e9f68188","tags":[]},{"url":"https://git.kernel.org/stable/c/367a9bffabe08c04f6d725032cce3d891b2b9e1a","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html","tags":[]}],"priority":{"score":9.1,"factors":[{"name":"EPSS percentile","points":3.63},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 8c26c4e2694a163d525976e804d81cd955bbb40c, < e1fc4a90a90ea8514246c45435662531975937d9",">= 8c26c4e2694a163d525976e804d81cd955bbb40c, < 72cf688d0ce7e642b12ddc9b2a42524737ec1b4a",">= 8c26c4e2694a163d525976e804d81cd955bbb40c, < d8ff250e085a4c4cdda4ad1cdd234ed110393143",">= 8c26c4e2694a163d525976e804d81cd955bbb40c, < 58c27fa7a610b6e8d44e6220e7dbddfbaccaf439",">= 8c26c4e2694a163d525976e804d81cd955bbb40c, < 8e1b9201c9a24638cf09c6e1c9f224157328010b",">= 8c26c4e2694a163d525976e804d81cd955bbb40c, < 4b08d23d7d1917bef4fbee8ad81372f49b006656",">= 8c26c4e2694a163d525976e804d81cd955bbb40c, < c437dfac9f7a5a46ac2a5e6d6acd3059e9f68188",">= 8c26c4e2694a163d525976e804d81cd955bbb40c, < 367a9bffabe08c04f6d725032cce3d891b2b9e1a"]},{"vendor":"Linux","product":"Linux","versions":["3.10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-03-04T18:01:20.629324Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-5976","exploited":false,"provenance":"source"}}