Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-100095

published high CVSS 3.1 · 7.8

f2fs: check every cur_*_segno[] entry on readonly images

Published
30 Nov 2026, 13:23:43 UTC
Updated
01 Dec 2026, 05:40:02 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxa7d9fe3c33887085a2e10c085d378126314dc222 to < 8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7 · a7d9fe3c33887085a2e10c085d378126314dc222 to < ff71b66629d4c770d7d60f24482f29a6969a6688 · a7d9fe3c33887085a2e10c085d378126314dc222 to < 2e4cd3d492510fe4108233ebbbbb3a46494d69ff · a7d9fe3c33887085a2e10c085d378126314dc222 to < 7d671f85cb844645d65f43283b019f4bbecdde46 · a7d9fe3c33887085a2e10c085d378126314dc222 to < 7f050459206298020b028243ce3caef3ed9949b6 · a7d9fe3c33887085a2e10c085d378126314dc222 to < 2061dcbb7750a00247eec17eccd6241365f99b7e · a7d9fe3c33887085a2e10c085d378126314dc222 to < 9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.14 (affected) · 0 to < 5.14 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Scenarios
en: 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. AC: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. PR: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. UI: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. S: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. C: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. I: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. A: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.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux a7d9fe3c33887085a2e10c085d378126314dc222 to < 8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7 (affected · git)a7d9fe3c33887085a2e10c085d378126314dc222 to < ff71b66629d4c770d7d60f24482f29a6969a6688 (affected · git)a7d9fe3c33887085a2e10c085d378126314dc222 to < 2e4cd3d492510fe4108233ebbbbb3a46494d69ff (affected · git)a7d9fe3c33887085a2e10c085d378126314dc222 to < 7d671f85cb844645d65f43283b019f4bbecdde46 (affected · git)a7d9fe3c33887085a2e10c085d378126314dc222 to < 7f050459206298020b028243ce3caef3ed9949b6 (affected · git)a7d9fe3c33887085a2e10c085d378126314dc222 to < 2061dcbb7750a00247eec17eccd6241365f99b7e (affected · git)a7d9fe3c33887085a2e10c085d378126314dc222 to < 9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb (affected · git)Default: unaffected Linux · cna
Linux Linux 5.14 (affected)0 to < 5.14 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

7

Provider assertions

1

Linux · cna

f2fs: check every cur_*_segno[] entry on readonly images

Provenance

Schema
5.2
Searchable
yes
Content hash
ac2c42cda25cd0f5ec3445e7b0fcc4dbb8f53e8e102a14cfc1275e62e86eb053
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected