CVE-2026-31715
Gravedad CVSS v3.1:
ALTA
Tipo:
CWE-416
Utilización después de liberación
Fecha de publicación:
01/05/2026
Última modificación:
17/05/2026
Descripción
*** Pendiente de traducción *** In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
f2fs: fix UAF caused by decrementing sbi->nr_pages[] in f2fs_write_end_io()<br />
<br />
The xfstests case "generic/107" and syzbot have both reported a NULL<br />
pointer dereference.<br />
<br />
The concurrent scenario that triggers the panic is as follows:<br />
<br />
F2FS_WB_CP_DATA write callback umount<br />
- f2fs_write_checkpoint<br />
- f2fs_wait_on_all_pages(sbi, F2FS_WB_CP_DATA)<br />
- blk_mq_end_request<br />
- bio_endio<br />
- f2fs_write_end_io<br />
: dec_page_count(sbi, F2FS_WB_CP_DATA)<br />
: wake_up(&sbi->cp_wait)<br />
- kill_f2fs_super<br />
- kill_block_super<br />
- f2fs_put_super<br />
: iput(sbi->node_inode)<br />
: sbi->node_inode = NULL<br />
: f2fs_in_warm_node_list<br />
- is_node_folio // sbi->node_inode is NULL and panic<br />
<br />
The root cause is that f2fs_put_super() calls iput(sbi->node_inode) and<br />
sets sbi->node_inode to NULL after sbi->nr_pages[F2FS_WB_CP_DATA] is<br />
decremented to zero. As a result, f2fs_in_warm_node_list() may<br />
dereference a NULL node_inode when checking whether a folio belongs to<br />
the node inode, leading to a panic.<br />
<br />
This patch fixes the issue by calling f2fs_in_warm_node_list() before<br />
decrementing sbi->nr_pages[F2FS_WB_CP_DATA], thus preventing the<br />
use-after-free condition.
Impacto
Puntuación base 3.x
7.80
Gravedad 3.x
ALTA
Productos y versiones vulnerables
| CPE | Desde | Hasta |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.19 (incluyendo) | 6.18.25 (excluyendo) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.19 (incluyendo) | 7.0.2 (excluyendo) |
| cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:* |
Para consultar la lista completa de nombres de CPE con productos y versiones, ver esta página
Referencias a soluciones, herramientas e información
- https://git.kernel.org/stable/c/1171f329cf1c175321251ac40fd126150d7ad1e8
- https://git.kernel.org/stable/c/188bb65f247a7a7c62f287c9a263aee3cad96fa5
- https://git.kernel.org/stable/c/2d9c4a4ed4eef1f82c5b16b037aee8bad819fd53
- https://git.kernel.org/stable/c/7be222de96c0f9eee6e65eeb017ef855ee185cfa
- https://git.kernel.org/stable/c/963d2e24d9d92a31e6773b0f642214f10013ebf7



