Linux kernel out-of-bounds write in F2FS during readonly mount
Affects the Linux kernel f2fs driver on read-only images with a crafted checkpoint. No vendor rating is given. The fix is upstream commit 9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb.
- Exploited
- No known exploitation
- Fix
- Vendor patch: 9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb
- Who is exposed
- Specific setups only
Summary
The Linux kernel's f2fs filesystem code checks only the first entry of its current-segment arrays when mounting read-only images, so a crafted image can trigger out-of-bounds memory writes during mount. The fix checks every entry in those arrays.
Written by a model
Original 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.
What to do
Check whether your setup matches what the bug needs.
The image has the f2fs read-only (RO) feature set. The checkpoint holds an out-of-range current segment number at index 1 or 2 of cur_data_segno or cur_node_segno, with a checksum recomputed so the image mounts.Apply the vendor's patch: 9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-100095 (f2fs: check every cur_*_segno[] entry on readonly images), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-100095 (entry last updated 2026-12-01):
Affected:
- Linux Linux: version range not reported
- Linux Linux: versions 5.14
Vendor patches: 9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7). Check each asset for these patch ids, not only its version.
Conditions (all must be true for the bug to be hit):
- The image has the f2fs read-only (RO) feature set. (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7)
- The checkpoint holds an out-of-range current segment number at index 1 or 2 of cur_data_segno or cur_node_segno, with a checksum recomputed so the image mounts. (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: local access, no login, a user action.
CISA KEV: CVE-2026-100095 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-100095 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- 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
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-100095
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-100095"}.Affected versions
- Linux LinuxVersion range not reported
- Linux Linux5.14
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure5/25Specific setups only
- Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
- Severity7.8/10CVSS 7.8
- No patch0/5No signal
What would change the score
- Would score about 83 if added to CISA KEV
- Would score about 78 if CISA's SSVC rates exploitation active
- Would score about 43 if CISA's SSVC rates it automatable
Timeline
- CVE published
- First seen by cve.now1 day
- Record last updated
- Posted on X by cve.now
Evidence 9
Questions about CVE-2026-100095
Is CVE-2026-100095 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
On an f2fs image with the read-only feature set, a checkpoint with an out-of-range current segment number at index 1 or 2 of cur_data_segno or cur_node_segno can be mounted, because a goto skips the bounds check. This leads to out-of-bounds heap writes during mount that can corrupt adjacent kernel memory.
Source: git.kernel.org, cve.org
Which versions are affected by CVE-2026-100095?
Linux: version 5.14.
Source: cve.now feed data
Am I affected, and how do I check?
The facts list Linux kernel f2fs but name no affected version range. The bug needs an f2fs image with the read-only feature set and a checkpoint whose cur_data_segno or cur_node_segno entry at index 1 or 2 is out of range, with a valid checksum so the image mounts.
Source: git.kernel.org, cve.org
How do I fix CVE-2026-100095?
The fix is upstream commit 9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb, which bounds-checks every cur_*_segno index and skips the node-versus-data cross-check explicitly. No fixed version is named in the facts, so apply that commit to the kernel source you build from.
Source: git.kernel.org, cve.org
Related
- CVE-2026-139801KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM
- CVE-2026-139799mm/shmem: hold off eviction in shmem_writeout()
- CVE-2026-139792ALSA: pcm: Prevent O_APPEND open on OSS streams
- CVE-2026-139788cipso: stop modifying live ip_options_rcu
- CVE-2026-139786mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows
- CVE-2026-1398009p/xen: drain response work after unbinding IRQ
No corrections so far. Something wrong on this page? Report an error.