VDB

CVE-2026-31715

CVE-2026-31715 PUBLISHED

f2fs: fix UAF caused by decrementing sbi->nr_pages[] in f2fs_write_end_io()

Reported by linux · Published May 1, 2026

In the Linux kernel, the following vulnerability has been resolved: f2fs: fix UAF caused by decrementing sbi->nr_pages[] in f2fs_write_end_io() The xfstests case "generic/107" and syzbot have both reported a NULL pointer dereference. The concurrent scenario that triggers the panic is as follows: F2FS_WB_CP_DATA write callback umount - f2fs_write_checkpoint - f2fs_wait_on_all_pages(sbi, F2FS_WB_CP_DATA) - blk_mq_end_request - bio_endio - f2fs_write_end_io : dec_page_count(sbi, F2FS_WB_CP_DATA) : wake_up(&sbi->cp_wait) - kill_f2fs_super - kill_block_super - f2fs_put_super : iput(sbi->node_inode) : sbi->node_inode = NULL : f2fs_in_warm_node_list - is_node_folio // sbi->node_inode is NULL and panic The root cause is that f2fs_put_super() calls iput(sbi->node_inode) and sets sbi->node_inode to NULL after sbi->nr_pages[F2FS_WB_CP_DATA] is decremented to zero. As a result, f2fs_in_warm_node_list() may dereference a NULL node_inode when checking whether a folio belongs to the node inode, leading to a panic. This patch fixes the issue by calling f2fs_in_warm_node_list() before decrementing sbi->nr_pages[F2FS_WB_CP_DATA], thus preventing the use-after-free condition.

EPSS 0.12% · 1.8th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux-aws-6.18Chainguard6.18.31-r0
linux_kernellinux7.0.2, 6.18.25

Risk scores

EPSS Score
0.12%
1.8th percentile

Affected products

VendorProductVersions
LinuxLinux50fa53eccf9f911a5b435248a2b0bd484fd82e5e, 50fa53eccf9f911a5b435248a2b0bd484fd82e5e, 50fa53eccf9f911a5b435248a2b0bd484fd82e5e
LinuxLinux4.19, 0, 6.18.25
LinuxLinux7.1-rc1, 4.19, 0
linuxlinux_kernel4.19, 4.19, 4.19

Timeline

  • May 1, 2026 CVE Published
  • May 18, 2026 EPSS Score (23 in total, the first dated here)
  • Jun 2, 2026 Security Advisory (120 in total, the first dated here)
  • Jul 28, 2026 Coalition ESS Score
  • Aug 11, 2026 Distribution Patch (114 in total, the first dated here)
  • Nov 11, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-31715
vulnetix vdb fixes CVE-2026-31715

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-31715/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›