{"id":"CVE-2026-100095","summary":"f2fs: check every cur_*_segno[] entry on readonly images","details":"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() -\u003e\nreset_curseg(), which writes se-\u003etype through &sit_i-\u003esentries[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.","modified":"2026-11-30T15:00:56.088647609Z","published":"2026-11-30T13:23:43.870Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100095.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2061dcbb7750a00247eec17eccd6241365f99b7e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2e4cd3d492510fe4108233ebbbbb3a46494d69ff"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7d671f85cb844645d65f43283b019f4bbecdde46"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7f050459206298020b028243ce3caef3ed9949b6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ff71b66629d4c770d7d60f24482f29a6969a6688"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100095.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100095"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a7d9fe3c33887085a2e10c085d378126314dc222"},{"fixed":"8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7"},{"fixed":"ff71b66629d4c770d7d60f24482f29a6969a6688"},{"fixed":"2e4cd3d492510fe4108233ebbbbb3a46494d69ff"},{"fixed":"7d671f85cb844645d65f43283b019f4bbecdde46"},{"fixed":"7f050459206298020b028243ce3caef3ed9949b6"},{"fixed":"2061dcbb7750a00247eec17eccd6241365f99b7e"},{"fixed":"9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100095.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.14.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100095.json"}}],"schema_version":"1.9.2"}