7.8high
nilfs2: protect access to buffers with no active references
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.26% (higher than 18% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: nilfs2: protect access to buffers with no active references nilfs_lookup_dirty_data_buffers(), which iterates through the buffers attached to dirty data folios/pages, accesses the attached buffers without locking the folios/pages. For data cache, nilfs_clear_folio_dirty() may be called asynchronously when the file system degenerates to read only, so nilfs_lookup_dirty_data_buffers() 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 try_to_free_buffers(). Eliminate this race issue by adjusting the lock section in this function.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 8c26c4e2694a163d525976e804d81cd955bbb40c before e1fc4a90a90ea8514246c45435662531975937d9, from 8c26c4e2694a163d525976e804d81cd955bbb40c before 72cf688d0ce7e642b12ddc9b2a42524737ec1b4a, from 8c26c4e2694a163d525976e804d81cd955bbb40c before d8ff250e085a4c4cdda4ad1cdd234ed110393143, from 8c26c4e2694a163d525976e804d81cd955bbb40c before 58c27fa7a610b6e8d44e6220e7dbddfbaccaf439, from 8c26c4e2694a163d525976e804d81cd955bbb40c before 8e1b9201c9a24638cf09c6e1c9f224157328010b, from 8c26c4e2694a163d525976e804d81cd955bbb40c before 4b08d23d7d1917bef4fbee8ad81372f49b006656, from 8c26c4e2694a163d525976e804d81cd955bbb40c before c437dfac9f7a5a46ac2a5e6d6acd3059e9f68188, from 8c26c4e2694a163d525976e804d81cd955bbb40c before 367a9bffabe08c04f6d725032cce3d891b2b9e1a and 1 more Not affected: before 3.10, from 5.4.291 up to 5.4.*, from 5.10.235 up to 5.10.*, from 5.15.179 up to 5.15.*, from 6.1.129 up to 6.1.*, from 6.6.76 up to 6.6.* | CVE List |
| linux linux_kernel | from 3.10 before 5.4.291, from 5.5 before 5.10.235, from 5.11 before 5.15.179, from 5.16 before 6.1.129, from 6.2 before 6.6.76, from 6.7 before 6.12.13, from 6.13 before 6.13.2 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA-ADP | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: nilfs2: protect access to buffers with no active references nilfs_lookup_dirty_data_buffers(), which iterates through the buffers attached to dirty data folios/pages, accesses the attached buffers without locking the folios/pages. For data cache, nilfs_clear_folio_dirty() may be called asynchronously when the file system degenerates to read only, so nilfs_lookup_dirty_data_buffers() 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 try_to_free_buffers(). Eliminate this race issue by adjusting the lock section in this function.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nilfs2: protege el acceso a los búferes sin referencias activas nilfs_lookup_dirty_data_búferes(), que itera a través de los búferes adjuntos a los folios/páginas de datos sucios, accede a los búferes adjuntos sin bloquear los folios/páginas. Para el caché de datos, nilfs_clear_folio_dirty() puede llamarse de forma asincrónica cuando el sistema de archivos se degenera a solo lectura, por lo que nilfs_lookup_dirty_data_búferes() aún tiene el potencial de causar problemas de use after free cuando los búferes pierden la protección de su estado sucio a mitad de camino debido a esta limpieza asincrónica y son liberados involuntariamente por try_to_free_búferes(). Elimine este problema de ejecución ajustando la sección de bloqueo en esta función.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-21811 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2025-21811 changed 2026-06-17 | Public domain |