{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-99678", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2026-09-25T10:25:14.428Z", "datePublished": "2026-11-20T05:50:25.703Z", "dateUpdated": "2026-11-23T08:05:53.633Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-11-23T08:05:53.633Z" }, "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": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH" }, "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." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "fs/xfs/xfs_iomap.c" ], "versions": [ { "version": "527851124d10f9c50b1c578e0a56fcd49922422d", "lessThan": "a5d7ce30a20abcb1149a793879ac645547c9162d", "status": "affected", "versionType": "git" }, { "version": "527851124d10f9c50b1c578e0a56fcd49922422d", "lessThan": "7c69fa22f36f44eb4dc367b915bb6b06e1f60c42", "status": "affected", "versionType": "git" }, { "version": "527851124d10f9c50b1c578e0a56fcd49922422d", "lessThan": "dbee0c8c244bbe00dbf4da145609de82c2758dc5", "status": "affected", "versionType": "git" }, { "version": "527851124d10f9c50b1c578e0a56fcd49922422d", "lessThan": "ade881e5fd44b8993c1371bbd8e2ea7f207e5251", "status": "affected", "versionType": "git" }, { "version": "527851124d10f9c50b1c578e0a56fcd49922422d", "lessThan": "7f4972601b3faa66524e44df9e929fd491e35bfd", "status": "affected", "versionType": "git" }, { "version": "527851124d10f9c50b1c578e0a56fcd49922422d", "lessThan": "73b0f3d5201f741125061d8559e9631f1af4cb39", "status": "affected", "versionType": "git" }, { "version": "527851124d10f9c50b1c578e0a56fcd49922422d", "lessThan": "83e0edb26d05515083784db26a02a809371ccdb3", "status": "affected", "versionType": "git" }, { "version": "527851124d10f9c50b1c578e0a56fcd49922422d", "lessThan": "66d1ce09ebd72709f8d739630c39f440445173fd", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "fs/xfs/xfs_iomap.c" ], "versions": [ { "version": "4.0", "status": "affected" }, { "version": "0", "lessThan": "4.0", "status": "unaffected", "versionType": "semver" }, { "version": "5.10.275", "lessThanOrEqual": "5.10.*", "status": "unaffected", "versionType": "semver" }, { "version": "5.15.226", "lessThanOrEqual": "5.15.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.1.193", "lessThanOrEqual": "6.1.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.163", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.118", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.18.64", "lessThanOrEqual": "6.18.*", "status": "unaffected", "versionType": "semver" }, { "version": "7.3.5", "lessThanOrEqual": "7.3.*", "status": "unaffected", "versionType": "semver" }, { "version": "7.4-rc2", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.0", "versionEndExcluding": "5.10.275" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.0", "versionEndExcluding": "5.15.226" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.0", "versionEndExcluding": "6.1.193" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.0", "versionEndExcluding": "6.6.163" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.0", "versionEndExcluding": "6.12.118" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.0", "versionEndExcluding": "6.18.64" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.0", "versionEndExcluding": "7.3.5" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.0", "versionEndExcluding": "7.4-rc2" } ] } ] } ], "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" } } } }