CVE-2026-31715
publishedf2fs: fix UAF caused by decrementing sbi->nr_pages[] in f2fs_write_end_io()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux50fa53eccf9f911a5b435248a2b0bd484fd82e5e to < 7dbdab4430e4654db9aacef12b9b3b8b29ca25cb · 50fa53eccf9f911a5b435248a2b0bd484fd82e5e to < ffb94770dbdfb5411be5d9f44a960b010ec890ad · 50fa53eccf9f911a5b435248a2b0bd484fd82e5e to < 0d40b26377f891e6dcb6efaf8ef9374c99be1b1d · 50fa53eccf9f911a5b435248a2b0bd484fd82e5e to < 1171f329cf1c175321251ac40fd126150d7ad1e8 · 50fa53eccf9f911a5b435248a2b0bd484fd82e5e to < 7be222de96c0f9eee6e65eeb017ef855ee185cfa · 50fa53eccf9f911a5b435248a2b0bd484fd82e5e to < 963d2e24d9d92a31e6773b0f642214f10013ebf7 · 50fa53eccf9f911a5b435248a2b0bd484fd82e5e to < 188bb65f247a7a7c62f287c9a263aee3cad96fa5 · 50fa53eccf9f911a5b435248a2b0bd484fd82e5e to < 2d9c4a4ed4eef1f82c5b16b037aee8bad819fd53 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.19 (affected) · 0 to < 4.19 (unaffected · semver) · 5.10.259 through 5.10.* (unaffected · semver) · 5.15.210 through 5.15.* (unaffected · semver) · 6.1.176 through 6.1.* (unaffected · semver) · 6.6.140 through 6.6.* (unaffected · semver) · 6.12.86 through 6.12.* (unaffected · semver) · 6.18.25 through 6.18.* (unaffected · semver) · 7.0.2 through 7.0.* (unaffected · semver) · 7.1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | linux | Advisory build | 6.1.176-1 | DLA-4665-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| Ubuntu | focal | linux-aws-5.15 | Advisory build | 5.15.0-1117.124~20.04.1 | USN-8875-1 |
| Debian | bullseye | linux | Advisory build | 5.10.259-1 | DLA-4664-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.176-1~deb11u1 | DLA-4671-1 |
| Debian | trixie | linux | Advisory build | 6.12.86-1 | DSA-6253-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| Ubuntu | focal | linux-aws-5.15-cloud-tools-5.15.0-1117 | Advisory build | 5.15.0-1117.124~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-aws-5.15-headers-5.15.0-1117 | Advisory build | 5.15.0-1117.124~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-aws-5.15-tools-5.15.0-1117 | Advisory build | 5.15.0-1117.124~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-azure-5.15 | Advisory build | 5.15.0-1123.132~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-azure-5.15-cloud-tools-5.15.0-1123 | Advisory build | 5.15.0-1123.132~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-azure-5.15-headers-5.15.0-1123 | Advisory build | 5.15.0-1123.132~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-azure-5.15-tools-5.15.0-1123 | Advisory build | 5.15.0-1123.132~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-azure-fde-5.15 | Advisory build | 5.15.0-1122.131~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-azure-fde-5.15-cloud-tools-5.15.0-1122 | Advisory build | 5.15.0-1122.131~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-azure-fde-5.15-headers-5.15.0-1122 | Advisory build | 5.15.0-1122.131~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-azure-fde-5.15-tools-5.15.0-1122 | Advisory build | 5.15.0-1122.131~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1070-nvidia-tegra | Advisory build | 5.15.0-1070.72~20.04.1 | USN-8963-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1070-nvidia-tegra-rt | Advisory build | 5.15.0-1070.72~20.04.1 | USN-8963-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1111-ibm | Advisory build | 5.15.0-1111.115~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1112-intel-iotg | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1114-oracle | Advisory build | 5.15.0-1114.120~20.04.1 | USN-8879-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1117-aws | Advisory build | 5.15.0-1117.124~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1118-gcp | Advisory build | 5.15.0-1118.128~20.04.1 | USN-8878-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1122-azure-fde | Advisory build | 5.15.0-1122.131~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1123-azure | Advisory build | 5.15.0-1123.132~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-195-lowlatency | Advisory build | 5.15.0-195.205~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-195-lowlatency-64k | Advisory build | 5.15.0-195.205~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-198-generic | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-198-generic-64k | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-198-generic-lpae | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1112-intel-iotg | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1117-aws | Advisory build | 5.15.0-1117.124~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1122-azure-fde | Advisory build | 5.15.0-1122.131~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1123-azure | Advisory build | 5.15.0-1123.132~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-195-lowlatency | Advisory build | 5.15.0-195.205~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-198-generic | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-gcp-5.15 | Advisory build | 5.15.0-1118.128~20.04.1 | USN-8878-1 |
| Ubuntu | focal | linux-gcp-5.15-headers-5.15.0-1118 | Advisory build | 5.15.0-1118.128~20.04.1 | USN-8878-1 |
| Ubuntu | focal | linux-gcp-5.15-tools-5.15.0-1118 | Advisory build | 5.15.0-1118.128~20.04.1 | USN-8878-1 |
| Ubuntu | focal | linux-headers-5.15.0-1070-nvidia-tegra | Advisory build | 5.15.0-1070.72~20.04.1 | USN-8963-1 |
| Ubuntu | focal | linux-headers-5.15.0-1070-nvidia-tegra-rt | Advisory build | 5.15.0-1070.72~20.04.1 | USN-8963-1 |
| Ubuntu | focal | linux-headers-5.15.0-1111-ibm | Advisory build | 5.15.0-1111.115~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-1112-intel-iotg | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-1114-oracle | Advisory build | 5.15.0-1114.120~20.04.1 | USN-8879-1 |
| Ubuntu | focal | linux-headers-5.15.0-1117-aws | Advisory build | 5.15.0-1117.124~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-1118-gcp | Advisory build | 5.15.0-1118.128~20.04.1 | USN-8878-1 |
| Ubuntu | focal | linux-headers-5.15.0-1122-azure-fde | Advisory build | 5.15.0-1122.131~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-1123-azure | Advisory build | 5.15.0-1123.132~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-195-lowlatency | Advisory build | 5.15.0-195.205~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-195-lowlatency-64k | Advisory build | 5.15.0-195.205~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-198-generic | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-198-generic-64k | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-198-generic-lpae | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-hwe-5.15 | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-5.15.0-198 | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-hwe-5.15-headers-5.15.0-198 | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-hwe-5.15-tools-5.15.0-198 | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-ibm-5.15 | Advisory build | 5.15.0-1111.115~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-ibm-5.15-headers-5.15.0-1111 | Advisory build | 5.15.0-1111.115~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-ibm-5.15-source-5.15.0 | Advisory build | 5.15.0-1111.115~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-ibm-5.15-tools-5.15.0-1111 | Advisory build | 5.15.0-1111.115~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-5.15.0-198-generic | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-5.15.0-198-generic-lpae | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1070-nvidia-tegra | Advisory build | 5.15.0-1070.72~20.04.1 | USN-8963-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1070-nvidia-tegra-rt | Advisory build | 5.15.0-1070.72~20.04.1 | USN-8963-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1111-ibm | Advisory build | 5.15.0-1111.115~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1112-intel-iotg | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1114-oracle | Advisory build | 5.15.0-1114.120~20.04.1 | USN-8879-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1117-aws | Advisory build | 5.15.0-1117.124~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1118-gcp | Advisory build | 5.15.0-1118.128~20.04.1 | USN-8878-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1122-azure-fde | Advisory build | 5.15.0-1122.131~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1123-azure | Advisory build | 5.15.0-1123.132~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-195-lowlatency | Advisory build | 5.15.0-195.205~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-195-lowlatency-64k | Advisory build | 5.15.0-195.205~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-198-generic | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-198-generic-64k | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-intel-iotg-5.15 | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-5.15.0-1112 | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-common | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-headers-5.15.0-1112 | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-5.15.0-1112 | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-common | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-host | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15 | Advisory build | 5.15.0-195.205~20.04.1 | USN-8875-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 50fa53eccf9f911a5b435248a2b0bd484fd82e5e to < 7dbdab4430e4654db9aacef12b9b3b8b29ca25cb (affected · git)50fa53eccf9f911a5b435248a2b0bd484fd82e5e to < ffb94770dbdfb5411be5d9f44a960b010ec890ad (affected · git)50fa53eccf9f911a5b435248a2b0bd484fd82e5e to < 0d40b26377f891e6dcb6efaf8ef9374c99be1b1d (affected · git)50fa53eccf9f911a5b435248a2b0bd484fd82e5e to < 1171f329cf1c175321251ac40fd126150d7ad1e8 (affected · git)50fa53eccf9f911a5b435248a2b0bd484fd82e5e to < 7be222de96c0f9eee6e65eeb017ef855ee185cfa (affected · git)50fa53eccf9f911a5b435248a2b0bd484fd82e5e to < 963d2e24d9d92a31e6773b0f642214f10013ebf7 (affected · git)50fa53eccf9f911a5b435248a2b0bd484fd82e5e to < 188bb65f247a7a7c62f287c9a263aee3cad96fa5 (affected · git)50fa53eccf9f911a5b435248a2b0bd484fd82e5e to < 2d9c4a4ed4eef1f82c5b16b037aee8bad819fd53 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.19 (affected)0 to < 4.19 (unaffected · semver)5.10.259 through 5.10.* (unaffected · semver)5.15.210 through 5.15.* (unaffected · semver)6.1.176 through 6.1.* (unaffected · semver)6.6.140 through 6.6.* (unaffected · semver)6.12.86 through 6.12.* (unaffected · semver)6.18.25 through 6.18.* (unaffected · semver)7.0.2 through 7.0.* (unaffected · semver)7.1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/0d40b26377f891e6dcb6efaf8ef9374c99be1b1d
- 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/7dbdab4430e4654db9aacef12b9b3b8b29ca25cb
- https://git.kernel.org/stable/c/963d2e24d9d92a31e6773b0f642214f10013ebf7
- https://git.kernel.org/stable/c/ffb94770dbdfb5411be5d9f44a960b010ec890ad
Provider assertions
1Linux · cna
f2fs: fix UAF caused by decrementing sbi->nr_pages[] in f2fs_write_end_io()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 79c56af0eb41bb579674af5d7e1e60f42829187061c008632c55951869200100
- Ingested
- 23 Sep 2026, 09:09:43 UTC
- Source record
- Official CVE record