CVE-2025-21811

Severity CVSS v4.0:
Pending analysis
Type:
CWE-416 Use After Free
Publication date:
27/02/2025
Last modified:
03/11/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> nilfs2: protect access to buffers with no active references<br /> <br /> nilfs_lookup_dirty_data_buffers(), which iterates through the buffers<br /> attached to dirty data folios/pages, accesses the attached buffers without<br /> locking the folios/pages.<br /> <br /> For data cache, nilfs_clear_folio_dirty() may be called asynchronously<br /> when the file system degenerates to read only, so<br /> nilfs_lookup_dirty_data_buffers() still has the potential to cause use<br /> after free issues when buffers lose the protection of their dirty state<br /> midway due to this asynchronous clearing and are unintentionally freed by<br /> try_to_free_buffers().<br /> <br /> Eliminate this race issue by adjusting the lock section in this function.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 3.10 (including) 5.4.291 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.5 (including) 5.10.235 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.15.179 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 6.1.129 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 (including) 6.6.76 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.12.13 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.13 (including) 6.13.2 (excluding)