# CVE-2026-100095: f2fs: check every cur_*_segno[] entry on readonly images

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-11-30T13:23:43.870Z
- Modified: 2026-12-01T06:17:22.250Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

f2fs: check every cur_*_segno[] entry on readonly images

sanity_check_ckpt() bounds-checks cur_node_segno[] and cur_data_segno[]
against main_segs, but on an image with the RO feature the goto that skips
the duplicate-segno cross-checks also leaves the enclosing loop, so only
index 0 of each array is ever checked.

An unchecked index reaches __set_sit_entry_type() through build_curseg() ->
reset_curseg(), which writes se->type through &sit_i->sentries[segno]. With
segment_count_main 120 and cur_data_segno[1] set to 200, KASAN reports
three out-of-bounds writes during mount and the mount then succeeds.

Use continue so every index is bounds-checked, and skip the node-vs-data
cross-check explicitly, which is the other thing the old goto skipped.

(As written by CVE List.)

## Affected

- Linux Linux: from a7d9fe3c33887085a2e10c085d378126314dc222 before 8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7; from a7d9fe3c33887085a2e10c085d378126314dc222 before ff71b66629d4c770d7d60f24482f29a6969a6688; from a7d9fe3c33887085a2e10c085d378126314dc222 before 2e4cd3d492510fe4108233ebbbbb3a46494d69ff; from a7d9fe3c33887085a2e10c085d378126314dc222 before 7d671f85cb844645d65f43283b019f4bbecdde46; from a7d9fe3c33887085a2e10c085d378126314dc222 before 7f050459206298020b028243ce3caef3ed9949b6; from a7d9fe3c33887085a2e10c085d378126314dc222 before 2061dcbb7750a00247eec17eccd6241365f99b7e; from a7d9fe3c33887085a2e10c085d378126314dc222 before 9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb; 5.14 (not affected: before 5.14; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7>
- <https://git.kernel.org/stable/c/ff71b66629d4c770d7d60f24482f29a6969a6688>
- <https://git.kernel.org/stable/c/2e4cd3d492510fe4108233ebbbbb3a46494d69ff>
- <https://git.kernel.org/stable/c/7d671f85cb844645d65f43283b019f4bbecdde46>
- <https://git.kernel.org/stable/c/7f050459206298020b028243ce3caef3ed9949b6>
- <https://git.kernel.org/stable/c/2061dcbb7750a00247eec17eccd6241365f99b7e>
- <https://git.kernel.org/stable/c/9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb>

## Sources

- CVE List: [CVE-2026-100095](https://www.cve.org/CVERecord?id=CVE-2026-100095), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-100095](https://nvd.nist.gov/vuln/detail/CVE-2026-100095), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-100095 · Whole record: https://cve.day/CVE-2026-100095.json · Rebuilt by cve.day 2026-12-01T06:32:14.420Z
