{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "527851124d10f9c50b1c578e0a56fcd49922422d"
            },
            {
              "fixed": "df8632f36be4693677c18966319ae546b4341061"
            },
            {
              "fixed": "8e0cea93da8755cfebe9a0ea7e2b37e68d59118d"
            },
            {
              "fixed": "e8c7a13a7b63542753ab3c6c55b142b09d207c78"
            },
            {
              "fixed": "29f3c1be4e554c9dbc66e13333034e0947477cb6"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.0.0"
            },
            {
              "fixed": "6.12.118"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.64"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99677.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: clamp the pNFS layout range to the maximum file size\n\nxfs_fs_map_blocks() lets two bad layout ranges through. An offset of\n2^63 or more is negative and passes \"offset \u003e limit\". A length above\nthe limit, such as NFS4_UINT64_MAX, wraps \"offset \u003e limit - length\"\nand stays unclamped. With NFS4_UINT64_MAX, a read layout is built from\nan uninitialized mapping.\n\nReject a negative offset and one at the limit, and clamp the length.\nThis needs \"xfs: cap the block count of xfs_iomap_write_direct() at one\nextent\".",
  "id": "CVE-2026-99677",
  "modified": "2026-11-20T06:45:18.424527469Z",
  "published": "2026-11-20T05:50:24.903Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/29f3c1be4e554c9dbc66e13333034e0947477cb6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8e0cea93da8755cfebe9a0ea7e2b37e68d59118d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/df8632f36be4693677c18966319ae546b4341061"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e8c7a13a7b63542753ab3c6c55b142b09d207c78"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99677.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99677"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "xfs: clamp the pNFS layout range to the maximum file size"
}