CVE-2025-21811

Source
https://cve.org/CVERecord?id=CVE-2025-21811
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21811.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21811
Downstream
Related
Published
2025-02-27T20:01:02.256Z
Modified
2026-03-09T23:50:26.178444Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
nilfs2: protect access to buffers with no active references
Details

In the Linux kernel, the following vulnerability has been resolved:

nilfs2: protect access to buffers with no active references

nilfslookupdirtydatabuffers(), which iterates through the buffers attached to dirty data folios/pages, accesses the attached buffers without locking the folios/pages.

For data cache, nilfsclearfoliodirty() may be called asynchronously when the file system degenerates to read only, so nilfslookupdirtydatabuffers() still has the potential to cause use after free issues when buffers lose the protection of their dirty state midway due to this asynchronous clearing and are unintentionally freed by trytofreebuffers().

Eliminate this race issue by adjusting the lock section in this function.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21811.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8c26c4e2694a163d525976e804d81cd955bbb40c
Fixed
e1fc4a90a90ea8514246c45435662531975937d9
Fixed
72cf688d0ce7e642b12ddc9b2a42524737ec1b4a
Fixed
d8ff250e085a4c4cdda4ad1cdd234ed110393143
Fixed
58c27fa7a610b6e8d44e6220e7dbddfbaccaf439
Fixed
8e1b9201c9a24638cf09c6e1c9f224157328010b
Fixed
4b08d23d7d1917bef4fbee8ad81372f49b006656
Fixed
c437dfac9f7a5a46ac2a5e6d6acd3059e9f68188
Fixed
367a9bffabe08c04f6d725032cce3d891b2b9e1a

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21811.json"