{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-31715","published":"2026-05-01T14:16:21.637000Z","last_modified":"2026-11-11T21:10:00.200000Z","status":"Modified","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-416"],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"4.19","version_end_excluding":"6.18.25"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.19","version_end_excluding":"7.0.2"},{"criteria":"cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"7.1"}],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux_kernel"],"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2026-31715/","html_en":"/en/cve/CVE-2026-31715/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-31715","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-31715"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: fix UAF caused by decrementing sbi->nr_pages[] in f2fs_write_end_io()\n\nThe xfstests case \"generic/107\" and syzbot have both reported a NULL\npointer dereference.\n\nThe concurrent scenario that triggers the panic is as follows:\n\nF2FS_WB_CP_DATA write callback          umount\n                                        - f2fs_write_checkpoint\n                                         - f2fs_wait_on_all_pages(sbi, F2FS_WB_CP_DATA)\n- blk_mq_end_request\n - bio_endio\n  - f2fs_write_end_io\n   : dec_page_count(sbi, F2FS_WB_CP_DATA)\n   : wake_up(&sbi->cp_wait)\n                                        - kill_f2fs_super\n                                         - kill_block_super\n                                          - f2fs_put_super\n                                           : iput(sbi->node_inode)\n                                           : sbi->node_inode = NULL\n   : f2fs_in_warm_node_list\n    - is_node_folio // sbi->node_inode is NULL and panic\n\nThe root cause is that f2fs_put_super() calls iput(sbi->node_inode) and\nsets sbi->node_inode to NULL after sbi->nr_pages[F2FS_WB_CP_DATA] is\ndecremented to zero. As a result, f2fs_in_warm_node_list() may\ndereference a NULL node_inode when checking whether a folio belongs to\nthe node inode, leading to a panic.\n\nThis patch fixes the issue by calling f2fs_in_warm_node_list() before\ndecrementing sbi->nr_pages[F2FS_WB_CP_DATA], thus preventing the\nuse-after-free condition.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/0d40b26377f891e6dcb6efaf8ef9374c99be1b1d","tags":[]},{"url":"https://git.kernel.org/stable/c/1171f329cf1c175321251ac40fd126150d7ad1e8","tags":[]},{"url":"https://git.kernel.org/stable/c/188bb65f247a7a7c62f287c9a263aee3cad96fa5","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/2d9c4a4ed4eef1f82c5b16b037aee8bad819fd53","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/7be222de96c0f9eee6e65eeb017ef855ee185cfa","tags":[]},{"url":"https://git.kernel.org/stable/c/7dbdab4430e4654db9aacef12b9b3b8b29ca25cb","tags":[]},{"url":"https://git.kernel.org/stable/c/963d2e24d9d92a31e6773b0f642214f10013ebf7","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/ffb94770dbdfb5411be5d9f44a960b010ec890ad","tags":[]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:10793-1","url":"https://www.suse.com/support/update/","published":"2026-05-16T00:00:00+00:00","severity":"critical","exploited":false,"untrusted":{"title":"kernel-devel-7.0.7-1.1 on GA media"}}]}