CVE-2026-100095 (GCVE-0-2026-100095)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:23 – Updated: 2026-12-01 05:40
VLAI
Title
f2fs: check every cur_*_segno[] entry on readonly images
Summary
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.
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: a7d9fe3c33887085a2e10c085d378126314dc222 , < 8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7 (git)
Affected: a7d9fe3c33887085a2e10c085d378126314dc222 , < ff71b66629d4c770d7d60f24482f29a6969a6688 (git)
Affected: a7d9fe3c33887085a2e10c085d378126314dc222 , < 2e4cd3d492510fe4108233ebbbbb3a46494d69ff (git)
Affected: a7d9fe3c33887085a2e10c085d378126314dc222 , < 7d671f85cb844645d65f43283b019f4bbecdde46 (git)
Affected: a7d9fe3c33887085a2e10c085d378126314dc222 , < 7f050459206298020b028243ce3caef3ed9949b6 (git)
Affected: a7d9fe3c33887085a2e10c085d378126314dc222 , < 2061dcbb7750a00247eec17eccd6241365f99b7e (git)
Affected: a7d9fe3c33887085a2e10c085d378126314dc222 , < 9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb (git)
guessed Create a notification for this product.
Linux Linux Affected: 5.14
Unaffected: 0 , < 5.14 (semver)
Unaffected: 5.15.226 , ≤ 5.15.* (semver)
Unaffected: 6.1.193 , ≤ 6.1.* (semver)
Unaffected: 6.6.163 , ≤ 6.6.* (semver)
Unaffected: 6.12.117 , ≤ 6.12.* (semver)
Unaffected: 6.18.63 , ≤ 6.18.* (semver)
Unaffected: 7.3.4 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/f2fs/super.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7",
              "status": "affected",
              "version": "a7d9fe3c33887085a2e10c085d378126314dc222",
              "versionType": "git"
            },
            {
              "lessThan": "ff71b66629d4c770d7d60f24482f29a6969a6688",
              "status": "affected",
              "version": "a7d9fe3c33887085a2e10c085d378126314dc222",
              "versionType": "git"
            },
            {
              "lessThan": "2e4cd3d492510fe4108233ebbbbb3a46494d69ff",
              "status": "affected",
              "version": "a7d9fe3c33887085a2e10c085d378126314dc222",
              "versionType": "git"
            },
            {
              "lessThan": "7d671f85cb844645d65f43283b019f4bbecdde46",
              "status": "affected",
              "version": "a7d9fe3c33887085a2e10c085d378126314dc222",
              "versionType": "git"
            },
            {
              "lessThan": "7f050459206298020b028243ce3caef3ed9949b6",
              "status": "affected",
              "version": "a7d9fe3c33887085a2e10c085d378126314dc222",
              "versionType": "git"
            },
            {
              "lessThan": "2061dcbb7750a00247eec17eccd6241365f99b7e",
              "status": "affected",
              "version": "a7d9fe3c33887085a2e10c085d378126314dc222",
              "versionType": "git"
            },
            {
              "lessThan": "9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb",
              "status": "affected",
              "version": "a7d9fe3c33887085a2e10c085d378126314dc222",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/f2fs/super.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.14"
            },
            {
              "lessThan": "5.14",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.193",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.117",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.63",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.226",
                  "versionStartIncluding": "5.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.193",
                  "versionStartIncluding": "5.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.163",
                  "versionStartIncluding": "5.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.117",
                  "versionStartIncluding": "5.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.63",
                  "versionStartIncluding": "5.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.4",
                  "versionStartIncluding": "5.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "5.14",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "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() -\u003e\nreset_curseg(), which writes se-\u003etype through \u0026sit_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."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "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()-\u003e__set_sit_entry_type() via f2fs_fill_super-\u003ef2fs_build_segment_manager-\u003ebuild_curseg-\u003erestore_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 \u003e= 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-\u003esentries and free_i-\u003efree_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-\u003etype 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."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-01T05:40:02.457Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "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"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-100095",
    "datePublished": "2026-11-30T13:23:43.870Z",
    "dateReserved": "2026-09-25T10:25:14.457Z",
    "dateUpdated": "2026-12-01T05:40:02.457Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-100095",
      "date": "2026-12-04",
      "epss": "0.00186",
      "percentile": "0.08593"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "fs/f2fs/super.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7",
                    "status": "affected",
                    "version": "a7d9fe3c33887085a2e10c085d378126314dc222",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "ff71b66629d4c770d7d60f24482f29a6969a6688",
                    "status": "affected",
                    "version": "a7d9fe3c33887085a2e10c085d378126314dc222",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "2e4cd3d492510fe4108233ebbbbb3a46494d69ff",
                    "status": "affected",
                    "version": "a7d9fe3c33887085a2e10c085d378126314dc222",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7d671f85cb844645d65f43283b019f4bbecdde46",
                    "status": "affected",
                    "version": "a7d9fe3c33887085a2e10c085d378126314dc222",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7f050459206298020b028243ce3caef3ed9949b6",
                    "status": "affected",
                    "version": "a7d9fe3c33887085a2e10c085d378126314dc222",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "2061dcbb7750a00247eec17eccd6241365f99b7e",
                    "status": "affected",
                    "version": "a7d9fe3c33887085a2e10c085d378126314dc222",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb",
                    "status": "affected",
                    "version": "a7d9fe3c33887085a2e10c085d378126314dc222",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "fs/f2fs/super.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "5.14"
                  },
                  {
                    "lessThan": "5.14",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.226",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.193",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.6.*",
                    "status": "unaffected",
                    "version": "6.6.163",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.117",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.63",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.4",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "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() -\u003e\nreset_curseg(), which writes se-\u003etype through \u0026sit_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."
          }
        ],
        "id": "CVE-2026-100095",
        "lastModified": "2026-12-01T06:17:22.250",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-30T14:17:28.017",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/2061dcbb7750a00247eec17eccd6241365f99b7e"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/2e4cd3d492510fe4108233ebbbbb3a46494d69ff"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/7d671f85cb844645d65f43283b019f4bbecdde46"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/7f050459206298020b028243ce3caef3ed9949b6"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/8f8ccd227fbbd31d3eb4c2e38fbea77b0e5715a7"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/9c4ee79190c8c23a9fb5c07d3bc87eaac514b2bb"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/ff71b66629d4c770d7d60f24482f29a6969a6688"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-12-01T07:07:55+00:00",
      "cve": "CVE-2026-100095",
      "id": "CVE-2026-100095",
      "initial_release_date": "2026-11-30T13:23:43.870000+00:00",
      "product_status:known_not_affected": "280",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Out-of-bounds write in f2fs via crafted read-only filesystem image",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-100095.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.