Bug 2586252 (CVE-2026-100095) - CVE-2026-100095 kernel: kernel: Out-of-bounds write in f2fs via crafted read-only filesystem image
Summary: CVE-2026-100095 kernel: kernel: Out-of-bounds write in f2fs via crafted read-...
Keywords:
Status: NEW
Alias: CVE-2026-100095
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-30 13:38 UTC by OSIDB Bzimport
Modified: 2026-11-30 17:16 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-30 13:38:10 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.