CVE-2026-99678 (GCVE-0-2026-99678)

Vulnerability from cvelistv5 – Published: 2026-11-20 05:50 – Updated: 2026-11-23 08:05
VLAI
Title
xfs: cap the block count of xfs_iomap_write_direct() at one extent
Summary
In the Linux kernel, the following vulnerability has been resolved: xfs: cap the block count of xfs_iomap_write_direct() at one extent xfs_iomap_write_direct() reserves blocks for the whole count in an unsigned int. For a pNFS layout the client chooses that count, and an RW LAYOUTGET for 16 TiB wraps the reservation and shuts XFS down. xfs_bmapi_write() maps at most XFS_MAX_BMBT_EXTLEN blocks here, so cap the count at that. nfsd asks again for the rest. The other callers get the same mapping as before.
Impacted products
Vendor Product Version
Linux Linux Affected: 527851124d10f9c50b1c578e0a56fcd49922422d , < a5d7ce30a20abcb1149a793879ac645547c9162d (git)
Affected: 527851124d10f9c50b1c578e0a56fcd49922422d , < 7c69fa22f36f44eb4dc367b915bb6b06e1f60c42 (git)
Affected: 527851124d10f9c50b1c578e0a56fcd49922422d , < dbee0c8c244bbe00dbf4da145609de82c2758dc5 (git)
Affected: 527851124d10f9c50b1c578e0a56fcd49922422d , < ade881e5fd44b8993c1371bbd8e2ea7f207e5251 (git)
Affected: 527851124d10f9c50b1c578e0a56fcd49922422d , < 7f4972601b3faa66524e44df9e929fd491e35bfd (git)
Affected: 527851124d10f9c50b1c578e0a56fcd49922422d , < 73b0f3d5201f741125061d8559e9631f1af4cb39 (git)
Affected: 527851124d10f9c50b1c578e0a56fcd49922422d , < 83e0edb26d05515083784db26a02a809371ccdb3 (git)
Affected: 527851124d10f9c50b1c578e0a56fcd49922422d , < 66d1ce09ebd72709f8d739630c39f440445173fd (git)
Create a notification for this product.
Linux Linux Affected: 4.0
Unaffected: 0 , < 4.0 (semver)
Unaffected: 5.10.275 , ≤ 5.10.* (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.118 , ≤ 6.12.* (semver)
Unaffected: 6.18.64 , ≤ 6.18.* (semver)
Unaffected: 7.3.5 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/xfs/xfs_iomap.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a5d7ce30a20abcb1149a793879ac645547c9162d",
              "status": "affected",
              "version": "527851124d10f9c50b1c578e0a56fcd49922422d",
              "versionType": "git"
            },
            {
              "lessThan": "7c69fa22f36f44eb4dc367b915bb6b06e1f60c42",
              "status": "affected",
              "version": "527851124d10f9c50b1c578e0a56fcd49922422d",
              "versionType": "git"
            },
            {
              "lessThan": "dbee0c8c244bbe00dbf4da145609de82c2758dc5",
              "status": "affected",
              "version": "527851124d10f9c50b1c578e0a56fcd49922422d",
              "versionType": "git"
            },
            {
              "lessThan": "ade881e5fd44b8993c1371bbd8e2ea7f207e5251",
              "status": "affected",
              "version": "527851124d10f9c50b1c578e0a56fcd49922422d",
              "versionType": "git"
            },
            {
              "lessThan": "7f4972601b3faa66524e44df9e929fd491e35bfd",
              "status": "affected",
              "version": "527851124d10f9c50b1c578e0a56fcd49922422d",
              "versionType": "git"
            },
            {
              "lessThan": "73b0f3d5201f741125061d8559e9631f1af4cb39",
              "status": "affected",
              "version": "527851124d10f9c50b1c578e0a56fcd49922422d",
              "versionType": "git"
            },
            {
              "lessThan": "83e0edb26d05515083784db26a02a809371ccdb3",
              "status": "affected",
              "version": "527851124d10f9c50b1c578e0a56fcd49922422d",
              "versionType": "git"
            },
            {
              "lessThan": "66d1ce09ebd72709f8d739630c39f440445173fd",
              "status": "affected",
              "version": "527851124d10f9c50b1c578e0a56fcd49922422d",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/xfs/xfs_iomap.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.0"
            },
            {
              "lessThan": "4.0",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.275",
              "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.118",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.64",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.275",
                  "versionStartIncluding": "4.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.226",
                  "versionStartIncluding": "4.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.193",
                  "versionStartIncluding": "4.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.163",
                  "versionStartIncluding": "4.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.118",
                  "versionStartIncluding": "4.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.64",
                  "versionStartIncluding": "4.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.5",
                  "versionStartIncluding": "4.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc2",
                  "versionStartIncluding": "4.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: cap the block count of xfs_iomap_write_direct() at one extent\n\nxfs_iomap_write_direct() reserves blocks for the whole count in an\nunsigned int. For a pNFS layout the client chooses that count, and an\nRW LAYOUTGET for 16 TiB wraps the reservation and shuts XFS down.\n\nxfs_bmapi_write() maps at most XFS_MAX_BMBT_EXTLEN blocks here, so cap\nthe count at that. nfsd asks again for the rest. The other callers get\nthe same mapping as before."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.5,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - The attacker-controlled value is loga_length in an NFSv4.1 OP_LAYOUTGET (nfsd4_decode_layoutget). nfsd4_block_proc_layoutget passes it to xfs_fs_map_blocks, which calls xfs_iomap_write_direct with that block count; NFS over TCP is a routable transport.\nAC:L - The client creates a non-reflink, non-realtime file so xfs_fs_map_blocks sees a hole, and chooses loga_length so the block count truncates when XFS_DIOSTRAT_SPACE_RES is stored in unsigned int dblocks (2^32 blocks is 16TiB at 4K). xfs_bmapi_write then allocates one extent up to XFS_MAX_BMBT_EXTLEN and xfs_trans_mod_sb finds t_blk_res_used greater than t_blk_res.\nPR:N - IOMODE_RW makes nfsd4_layoutget call fh_verify with NFSD_MAY_WRITE, and nfsd_setuser copies the RPC cr_uid into fsuid. On an AUTH_SYS export that uid is client-asserted; root_squash remaps only uid 0, so the attacker needs no authenticated account or capability.\nUI:N - The same client creates the file and sends the LAYOUTGET whose loga_length is the value that wraps the reservation.\nS:U - xfs_force_shutdown marks the XFS mount that served the LAYOUTGET, which is the same kernel security authority that holds the filesystem and nfsd.\nC:N - xfs_trans_commit fails and xfs_fs_map_blocks returns before xfs_bmbt_to_iomap, so OP_LAYOUTGET completes with an NFS error and no extent data. The fault is the t_blk_res accounting check in xfs_trans_mod_sb.\nI:N - After t_blk_res_used exceeds t_blk_res, xfs_force_shutdown stops the log, and __xfs_trans_commit returns -EIO before xlog_cil_commit, leaving the over-allocation out of the on-disk log.\nA:H - The wrapped dblocks value makes xfs_trans_mod_sb call xfs_force_shutdown(SHUTDOWN_CORRUPT_INCORE) from inside xfs_bmapi_write. That mount then fails further I/O with EIO until an administrator unmounts and remounts it."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-23T08:05:53.633Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/a5d7ce30a20abcb1149a793879ac645547c9162d"
        },
        {
          "url": "https://git.kernel.org/stable/c/7c69fa22f36f44eb4dc367b915bb6b06e1f60c42"
        },
        {
          "url": "https://git.kernel.org/stable/c/dbee0c8c244bbe00dbf4da145609de82c2758dc5"
        },
        {
          "url": "https://git.kernel.org/stable/c/ade881e5fd44b8993c1371bbd8e2ea7f207e5251"
        },
        {
          "url": "https://git.kernel.org/stable/c/7f4972601b3faa66524e44df9e929fd491e35bfd"
        },
        {
          "url": "https://git.kernel.org/stable/c/73b0f3d5201f741125061d8559e9631f1af4cb39"
        },
        {
          "url": "https://git.kernel.org/stable/c/83e0edb26d05515083784db26a02a809371ccdb3"
        },
        {
          "url": "https://git.kernel.org/stable/c/66d1ce09ebd72709f8d739630c39f440445173fd"
        }
      ],
      "title": "xfs: cap the block count of xfs_iomap_write_direct() at one extent",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99678",
    "datePublished": "2026-11-20T05:50:25.703Z",
    "dateReserved": "2026-09-25T10:25:14.428Z",
    "dateUpdated": "2026-11-23T08:05:53.633Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99678",
      "date": "2026-11-24",
      "epss": "0.00612",
      "percentile": "0.50048"
    },
    "microsoft_vex": {
      "current_release_date": "2026-11-25T01:07:59.000Z",
      "cve": "CVE-2026-99678",
      "id": "msrc_CVE-2026-99678",
      "initial_release_date": "2026-11-20T18:08:52.000Z",
      "product_status:fixed": "2",
      "product_status:known_affected": "2",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "xfs: cap the block count of xfs_iomap_write_direct() at one extent",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-99678.json",
      "version": "5"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "fs/xfs/xfs_iomap.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "a5d7ce30a20abcb1149a793879ac645547c9162d",
                    "status": "affected",
                    "version": "527851124d10f9c50b1c578e0a56fcd49922422d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7c69fa22f36f44eb4dc367b915bb6b06e1f60c42",
                    "status": "affected",
                    "version": "527851124d10f9c50b1c578e0a56fcd49922422d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "dbee0c8c244bbe00dbf4da145609de82c2758dc5",
                    "status": "affected",
                    "version": "527851124d10f9c50b1c578e0a56fcd49922422d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "ade881e5fd44b8993c1371bbd8e2ea7f207e5251",
                    "status": "affected",
                    "version": "527851124d10f9c50b1c578e0a56fcd49922422d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7f4972601b3faa66524e44df9e929fd491e35bfd",
                    "status": "affected",
                    "version": "527851124d10f9c50b1c578e0a56fcd49922422d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "73b0f3d5201f741125061d8559e9631f1af4cb39",
                    "status": "affected",
                    "version": "527851124d10f9c50b1c578e0a56fcd49922422d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "83e0edb26d05515083784db26a02a809371ccdb3",
                    "status": "affected",
                    "version": "527851124d10f9c50b1c578e0a56fcd49922422d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "66d1ce09ebd72709f8d739630c39f440445173fd",
                    "status": "affected",
                    "version": "527851124d10f9c50b1c578e0a56fcd49922422d",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "fs/xfs/xfs_iomap.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "4.0"
                  },
                  {
                    "lessThan": "4.0",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.10.*",
                    "status": "unaffected",
                    "version": "5.10.275",
                    "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.118",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.64",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.5",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc2",
                    "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\nxfs: cap the block count of xfs_iomap_write_direct() at one extent\n\nxfs_iomap_write_direct() reserves blocks for the whole count in an\nunsigned int. For a pNFS layout the client chooses that count, and an\nRW LAYOUTGET for 16 TiB wraps the reservation and shuts XFS down.\n\nxfs_bmapi_write() maps at most XFS_MAX_BMBT_EXTLEN blocks here, so cap\nthe count at that. nfsd asks again for the rest. The other callers get\nthe same mapping as before."
          }
        ],
        "id": "CVE-2026-99678",
        "lastModified": "2026-11-23T08:18:08.603",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 3.9,
              "impactScore": 3.6,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-20T06:18:02.613",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/66d1ce09ebd72709f8d739630c39f440445173fd"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/73b0f3d5201f741125061d8559e9631f1af4cb39"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/7c69fa22f36f44eb4dc367b915bb6b06e1f60c42"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/7f4972601b3faa66524e44df9e929fd491e35bfd"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/83e0edb26d05515083784db26a02a809371ccdb3"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/a5d7ce30a20abcb1149a793879ac645547c9162d"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/ade881e5fd44b8993c1371bbd8e2ea7f207e5251"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/dbee0c8c244bbe00dbf4da145609de82c2758dc5"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-24T23:44:20+00:00",
      "cve": "CVE-2026-99678",
      "id": "CVE-2026-99678",
      "initial_release_date": "2026-11-20T05:50:25.703000+00:00",
      "product_status:known_affected": "280",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via integer overflow in XFS pNFS block reservation",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99678.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-11-25T01:00:19Z",
      "cve": "CVE-2026-99678",
      "id": "CVE-2026-99678",
      "initial_release_date": "2026-11-20T17:42:49Z",
      "product_status:known_affected": "161",
      "product_status:known_not_affected": "190",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-99678",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-99678.json",
      "version": "5"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

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.

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.


Loading…