CVE-2026-100095: f2fs: check every cur_*_segno[] entry on readonly images
f2fs: check every cursegno[] entry on readonly images
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1
Event History
Frequently Asked Questions
Who is exposed to this issue?
Systems that mount F2FS images with the read-only feature are exposed if the image contains out-of-range cur_node_segno[] or cur_data_segno[] checkpoint entries. A malicious or corrupted read-only image can trigger the issue during mount.
What does successful exploitation require?
An attacker needs to supply or cause the system to mount a crafted F2FS read-only image. The crafted checkpoint must place an unchecked current segment number beyond segment_count_main, such as cur_data_segno[1] exceeding the main segment count.
What is the impact during mounting?
The invalid segment number can reach __set_sit_entry_type() through build_curseg() and reset_curseg(), causing out-of-bounds writes to the SIT entry array. The described mount succeeds even after KASAN detects out-of-bounds writes.
How can administrators identify potentially affected images?
Inspect F2FS read-only images for cur_node_segno[] and cur_data_segno[] checkpoint values that are greater than or equal to segment_count_main. In the vulnerable behavior, only index 0 of each array is bounds-checked, leaving later entries unchecked.