Skip to content
Heist/ feed
Unrated

nilfs2: reject invalid block index in GC ioctl

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: nilfs2: reject invalid block index in GC ioctl Syzbot reported list corruption caused by a double list_add_tail() call on bh->b_assoc_buffers within nilfs_lookup_dirty_data_buffers(). Analysis revealed that the root cause was the insertion of a page/folio with a page index of ULONG_MAX into the page cache via the GC ioctl. filemap_get_folios_tag(), called by nilfs_lookup_dirty_data_buffers(), repeatedly detects a dirty folio with a page index of ULONG_MAX due to index wrap-around, leading to duplicate processing of dirty buffers. As a preparatory step, the GC ioctl loads the page/folio of the block to be moved during GC and inserts it into the page cache based on information in the nilfs_vdesc structure passed as an argument. Normally, this does not cause issues because the user-space GC library configures the nilfs_vdesc structure properly. However, since there is no range check on the parameters determining the page index, a request with artificially crafted parameters -- such as those generated by Syzbot -- can result in a page/folio being inserted with a page index of ULONG_MAX, triggering the above problem. This resolves the issue by checking the ranges of 'vd_offset' and 'vd_vblocknr' in the nilfs_vdesc structure that determine the page index, thereby preventing the invalid page/folio insertions.

Announced Source revision 1
Original source ↗

CVE-2026-80807

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-80807

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "7942b919f7321f95a777d396ff7894a7a83dc9b0",
        "lessThan": "898404cdf882d7b54f1132f75570984ca3214796",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7942b919f7321f95a777d396ff7894a7a83dc9b0",
        "lessThan": "ba8a8b563a28d358c45c62a306d421434a058648",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7942b919f7321f95a777d396ff7894a7a83dc9b0",
        "lessThan": "3bd064ccc70b85f9a3d53aece29dc8473be5a226",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7942b919f7321f95a777d396ff7894a7a83dc9b0",
        "lessThan": "a5e776e2937581d67ec5b9b4d27b0f70d7baa6b1",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7942b919f7321f95a777d396ff7894a7a83dc9b0",
        "lessThan": "68aa9ab6f8f2895713aa6ddf781463ed8ea5ba44",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7942b919f7321f95a777d396ff7894a7a83dc9b0",
        "lessThan": "e447f7edb99bd00cec63d6f3049e2e5074946f71",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7942b919f7321f95a777d396ff7894a7a83dc9b0",
        "lessThan": "ec6ddf271dfa4c7e3147bc2c8b2bad4315f316a1",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7942b919f7321f95a777d396ff7894a7a83dc9b0",
        "lessThan": "fbcfb75c20d71a5b542ad4ac3b79d10b997c8152",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7942b919f7321f95a777d396ff7894a7a83dc9b0",
        "lessThan": "a1735eae55448bc79c2da6593455791e886f6ed8",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/nilfs2/ioctl.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "2.6.30"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "2.6.30",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.269",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.220",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.187",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.156",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.108",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.47",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.1.11",
        "versionType": "semver",
        "lessThanOrEqual": "7.1.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.1",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/nilfs2/ioctl.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-80807

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#34824 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement