CVE-2026-53320 (GCVE-0-2026-53320)
Vulnerability from cvelistv5
Published
2026-06-26 19:41
Modified
2026-06-26 19:41
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: nilfs2: reject zero bd_oblocknr in nilfs_ioctl_mark_blocks_dirty() nilfs_ioctl_mark_blocks_dirty() uses bd_oblocknr to detect dead blocks by comparing it with the current block number bd_blocknr. If they differ, the block is considered dead and skipped. However, bd_oblocknr should never be 0 since block 0 typically stores the primary superblock and is never a valid GC target block. A corrupted ioctl request with bd_oblocknr set to 0 causes the comparison to incorrectly match when the lookup returns -ENOENT and sets bd_blocknr to 0, bypassing the dead block check and calling nilfs_bmap_mark() on a non-existent block. This causes nilfs_btree_do_lookup() to return -ENOENT, triggering the WARN_ON(ret == -ENOENT). Fix this by rejecting ioctl requests with bd_oblocknr set to 0 at the beginning of each iteration. [ryusuke: slightly modified the commit message and comments for accuracy]
Impacted products
Vendor Product Version
Linux Linux Version: 7942b919f7321f95a777d396ff7894a7a83dc9b0
Version: 7942b919f7321f95a777d396ff7894a7a83dc9b0
Version: 7942b919f7321f95a777d396ff7894a7a83dc9b0
Version: 7942b919f7321f95a777d396ff7894a7a83dc9b0
Version: 7942b919f7321f95a777d396ff7894a7a83dc9b0
Version: 7942b919f7321f95a777d396ff7894a7a83dc9b0
Version: 7942b919f7321f95a777d396ff7894a7a83dc9b0
Version: 7942b919f7321f95a777d396ff7894a7a83dc9b0
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/nilfs2/ioctl.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "e0a0c4903cbba351f0f5b5d104960d3a5b23202f",
              "status": "affected",
              "version": "7942b919f7321f95a777d396ff7894a7a83dc9b0",
              "versionType": "git"
            },
            {
              "lessThan": "9472d37799a0b9ff9b99639f35961ac2f0b3c9be",
              "status": "affected",
              "version": "7942b919f7321f95a777d396ff7894a7a83dc9b0",
              "versionType": "git"
            },
            {
              "lessThan": "65e07964b4b2daf9a54e686cf0fa72d74a9648a8",
              "status": "affected",
              "version": "7942b919f7321f95a777d396ff7894a7a83dc9b0",
              "versionType": "git"
            },
            {
              "lessThan": "b88f905d4449b70da6bda547be546e365e44352e",
              "status": "affected",
              "version": "7942b919f7321f95a777d396ff7894a7a83dc9b0",
              "versionType": "git"
            },
            {
              "lessThan": "4525658002be3ad310b16bf8db48c8adb6a55d32",
              "status": "affected",
              "version": "7942b919f7321f95a777d396ff7894a7a83dc9b0",
              "versionType": "git"
            },
            {
              "lessThan": "e5ff0ba4b6983cdbcc826efc201e7179ece5d46f",
              "status": "affected",
              "version": "7942b919f7321f95a777d396ff7894a7a83dc9b0",
              "versionType": "git"
            },
            {
              "lessThan": "94094e70fe292c9566502772d4d4d6d6a99204b1",
              "status": "affected",
              "version": "7942b919f7321f95a777d396ff7894a7a83dc9b0",
              "versionType": "git"
            },
            {
              "lessThan": "be3e5d10643d3be1cbac9d9939f220a99253f980",
              "status": "affected",
              "version": "7942b919f7321f95a777d396ff7894a7a83dc9b0",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/nilfs2/ioctl.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.30"
            },
            {
              "lessThan": "2.6.30",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.258",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.209",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.175",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.141",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.91",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.33",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.0.*",
              "status": "unaffected",
              "version": "7.0.10",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.258",
                  "versionStartIncluding": "2.6.30",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.209",
                  "versionStartIncluding": "2.6.30",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.175",
                  "versionStartIncluding": "2.6.30",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.141",
                  "versionStartIncluding": "2.6.30",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.91",
                  "versionStartIncluding": "2.6.30",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.33",
                  "versionStartIncluding": "2.6.30",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0.10",
                  "versionStartIncluding": "2.6.30",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1",
                  "versionStartIncluding": "2.6.30",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: reject zero bd_oblocknr in nilfs_ioctl_mark_blocks_dirty()\n\nnilfs_ioctl_mark_blocks_dirty() uses bd_oblocknr to detect dead blocks\nby comparing it with the current block number bd_blocknr. If they differ,\nthe block is considered dead and skipped.\n\nHowever, bd_oblocknr should never be 0 since block 0 typically stores the\nprimary superblock and is never a valid GC target block. A corrupted ioctl\nrequest with bd_oblocknr set to 0 causes the comparison to incorrectly\nmatch when the lookup returns -ENOENT and sets bd_blocknr to 0, bypassing\nthe dead block check and calling nilfs_bmap_mark() on a non-existent\nblock. This causes nilfs_btree_do_lookup() to return -ENOENT, triggering\nthe WARN_ON(ret == -ENOENT).\n\nFix this by rejecting ioctl requests with bd_oblocknr set to 0 at the\nbeginning of each iteration.\n\n[ryusuke: slightly modified the commit message and comments for accuracy]"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-06-26T19:41:11.932Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/e0a0c4903cbba351f0f5b5d104960d3a5b23202f"
        },
        {
          "url": "https://git.kernel.org/stable/c/9472d37799a0b9ff9b99639f35961ac2f0b3c9be"
        },
        {
          "url": "https://git.kernel.org/stable/c/65e07964b4b2daf9a54e686cf0fa72d74a9648a8"
        },
        {
          "url": "https://git.kernel.org/stable/c/b88f905d4449b70da6bda547be546e365e44352e"
        },
        {
          "url": "https://git.kernel.org/stable/c/4525658002be3ad310b16bf8db48c8adb6a55d32"
        },
        {
          "url": "https://git.kernel.org/stable/c/e5ff0ba4b6983cdbcc826efc201e7179ece5d46f"
        },
        {
          "url": "https://git.kernel.org/stable/c/94094e70fe292c9566502772d4d4d6d6a99204b1"
        },
        {
          "url": "https://git.kernel.org/stable/c/be3e5d10643d3be1cbac9d9939f220a99253f980"
        }
      ],
      "title": "nilfs2: reject zero bd_oblocknr in nilfs_ioctl_mark_blocks_dirty()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-53320",
    "datePublished": "2026-06-26T19:41:11.932Z",
    "dateReserved": "2026-06-09T07:44:35.398Z",
    "dateUpdated": "2026-06-26T19:41:11.932Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…