{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-100095","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.457Z","datePublished":"2026-11-30T13:23:43.870Z","dateUpdated":"2026-12-01T05:40:02.457Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:40:02.457Z"},"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bad values are cur_data_segno[1..2]/cur_node_segno[1..2] in the on-disk f2fs_checkpoint of a crafted RO-feature image. f2fs_sanity_check_ckpt() skips them, and they reach reset_curseg()->__set_sit_entry_type() via f2fs_fill_super->f2fs_build_segment_manager->build_curseg->restore_curseg_summaries. They come from a local disk or image file, not from any network protocol.\nAC:L - Deterministic, no race. With F2FS_FEATURE_RO set, the goto check_data/skip_cross exits each loop after index 0, so any segno >= segment_count_main at index 1 or 2 passes once the checkpoint CRC is recomputed. Mount then succeeds. The -EROFS from the RO-feature check makes libmount retry read-only, so a plain mount works.\nPR:N - f2fs_fs_type is FS_REQUIRES_DEV without FS_USERNS_MOUNT, so the mount needs init-namespace CAP_SYS_ADMIN, which the attacker does not hold. The most severe case is a crafted image or removable device that an administrator or desktop automounter mounts, so the attacker needs no account or capability on the victim.\nUI:R - The victim must mount the attacker-supplied RO-feature f2fs image. The out-of-bounds writes happen during f2fs_build_segment_manager() inside f2fs_fill_super(), so that mount is the required user interaction.\nS:U - The out-of-bounds writes hit kernel heap memory past sit_i->sentries and free_i->free_segmap/free_secmap in the same kernel that mounts the image. No guest-to-host, IOMMU or other security boundary is crossed.\nC:H - The attacker picks a 32-bit segno, so __set_sit_entry_type() writes into sentries[segno] up to ~160GiB past the 40-byte-per-entry kvmalloc array, and test_and_set_bit() sets a chosen bit up to 512MiB past free_segmap. Up to 4 such writes per mount, repeatable by remounting, can corrupt pointers or lengths to build kernel read primitives.\nI:H - These are real out-of-bounds heap writes: a bitfield read-modify-write storing seg_type 1/2/4/5 into the low 6 bits of a dword, plus bit sets in free_segmap/free_secmap at attacker-chosen offsets. Corrupting adjacent kernel objects this way can be used for privilege escalation; KASAN reports three OOB writes.\nA:H - A segno that lands outside mapped memory makes the se->type store in __set_sit_entry_type() or test_and_set_bit() in __set_test_and_inuse() fault during mount (an oops). Silent corruption of neighbouring heap objects can crash the kernel later."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/f2fs/super.c"],"versions":[{"version":"a7d9fe3c33887085a2e10c085d378126314dc222","lessThan":"8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7","status":"affected","versionType":"git"},{"version":"a7d9fe3c33887085a2e10c085d378126314dc222","lessThan":"ff71b66629d4c770d7d60f24482f29a6969a6688","status":"affected","versionType":"git"},{"version":"a7d9fe3c33887085a2e10c085d378126314dc222","lessThan":"2e4cd3d492510fe4108233ebbbbb3a46494d69ff","status":"affected","versionType":"git"},{"version":"a7d9fe3c33887085a2e10c085d378126314dc222","lessThan":"7d671f85cb844645d65f43283b019f4bbecdde46","status":"affected","versionType":"git"},{"version":"a7d9fe3c33887085a2e10c085d378126314dc222","lessThan":"7f050459206298020b028243ce3caef3ed9949b6","status":"affected","versionType":"git"},{"version":"a7d9fe3c33887085a2e10c085d378126314dc222","lessThan":"2061dcbb7750a00247eec17eccd6241365f99b7e","status":"affected","versionType":"git"},{"version":"a7d9fe3c33887085a2e10c085d378126314dc222","lessThan":"9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/f2fs/super.c"],"versions":[{"version":"5.14","status":"affected"},{"version":"0","lessThan":"5.14","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7"},{"url":"https://git.kernel.org/stable/c/ff71b66629d4c770d7d60f24482f29a6969a6688"},{"url":"https://git.kernel.org/stable/c/2e4cd3d492510fe4108233ebbbbb3a46494d69ff"},{"url":"https://git.kernel.org/stable/c/7d671f85cb844645d65f43283b019f4bbecdde46"},{"url":"https://git.kernel.org/stable/c/7f050459206298020b028243ce3caef3ed9949b6"},{"url":"https://git.kernel.org/stable/c/2061dcbb7750a00247eec17eccd6241365f99b7e"},{"url":"https://git.kernel.org/stable/c/9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb"}],"title":"f2fs: check every cur_*_segno[] entry on readonly images","x_generator":{"engine":"bippy-1.2.0"}}}}