{"id":"CVE-2026-100095","aliases":["CVE-2026-100095"],"related":[],"kind":"vulnerability","state":"published","title":"f2fs: check every cur_*_segno[] entry on readonly images","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: check every cur_*_segno[] entry on readonly images\n\nsanity_check_ckpt() bounds-checks cur_node_segno[] and cur_data_segno[]\nagainst main_segs, but on an image with the RO feature the goto that skips\nthe duplicate-segno cross-checks also leaves the enclosing loop, so only\nindex 0 of each array is ever checked.\n\nAn unchecked index reaches __set_sit_entry_type() through build_curseg() ->\nreset_curseg(), which writes se->type through &sit_i->sentries[segno]. With\nsegment_count_main 120 and cur_data_segno[1] set to 200, KASAN reports\nthree out-of-bounds writes during mount and the mount then succeeds.\n\nUse continue so every index is bounds-checked, and skip the node-vs-data\ncross-check explicitly, which is the other thing the old goto skipped.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: check every cur_*_segno[] entry on readonly images\n\nsanity_check_ckpt() bounds-checks cur_node_segno[] and cur_data_segno[]\nagainst main_segs, but on an image with the RO feature the goto that skips\nthe duplicate-segno cross-checks also leaves the enclosing loop, so only\nindex 0 of each array is ever checked.\n\nAn unchecked index reaches __set_sit_entry_type() through build_curseg() ->\nreset_curseg(), which writes se->type through &sit_i->sentries[segno]. With\nsegment_count_main 120 and cur_data_segno[1] set to 200, KASAN reports\nthree out-of-bounds writes during mount and the mount then succeeds.\n\nUse continue so every index is bounds-checked, and skip the node-vs-data\ncross-check explicitly, which is the other thing the old goto skipped.","source":"cvelist"}],"published":"2026-11-30T13:23:43.870Z","modified":"2026-12-01T06:17:22.250Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"a7d9fe3c33887085a2e10c085d378126314dc222","fixed":"8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7","status":"affected"},{"type":"git","introduced":"a7d9fe3c33887085a2e10c085d378126314dc222","fixed":"ff71b66629d4c770d7d60f24482f29a6969a6688","status":"affected"},{"type":"git","introduced":"a7d9fe3c33887085a2e10c085d378126314dc222","fixed":"2e4cd3d492510fe4108233ebbbbb3a46494d69ff","status":"affected"},{"type":"git","introduced":"a7d9fe3c33887085a2e10c085d378126314dc222","fixed":"7d671f85cb844645d65f43283b019f4bbecdde46","status":"affected"},{"type":"git","introduced":"a7d9fe3c33887085a2e10c085d378126314dc222","fixed":"7f050459206298020b028243ce3caef3ed9949b6","status":"affected"},{"type":"git","introduced":"a7d9fe3c33887085a2e10c085d378126314dc222","fixed":"2061dcbb7750a00247eec17eccd6241365f99b7e","status":"affected"},{"type":"git","introduced":"a7d9fe3c33887085a2e10c085d378126314dc222","fixed":"9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ff71b66629d4c770d7d60f24482f29a6969a6688","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2e4cd3d492510fe4108233ebbbbb3a46494d69ff","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7d671f85cb844645d65f43283b019f4bbecdde46","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7f050459206298020b028243ce3caef3ed9949b6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2061dcbb7750a00247eec17eccd6241365f99b7e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-100095","url":"https://www.cve.org/CVERecord?id=CVE-2026-100095","licence":"CVE Terms of Use","modified":"2026-12-01T05:40:02.457Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-100095","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100095","licence":"Public domain","modified":"2026-12-01T06:17:22.250Z"}],"updatedAt":"2026-12-01T06:32:14.420Z","epss":{"score":0.00186,"percentile":0.08619,"date":"2026-12-01T12:00:22.000Z"}}