{"api_version":"1","generated_at":"2026-11-22T20:39:59+00:00","cve":"CVE-2026-99678","urls":{"html":"https://cve.report/CVE-2026-99678","api":"https://cve.report/api/cve/CVE-2026-99678.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99678","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99678"},"summary":{"title":"xfs: cap the block count of xfs_iomap_write_direct() at one extent","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:02","updated_at":"2026-11-22 11:17:06"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.5","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","data":{"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","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.5","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","data":{"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"}}],"references":[{"url":"https://git.kernel.org/stable/c/73b0f3d5201f741125061d8559e9631f1af4cb39","name":"https://git.kernel.org/stable/c/73b0f3d5201f741125061d8559e9631f1af4cb39","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/66d1ce09ebd72709f8d739630c39f440445173fd","name":"https://git.kernel.org/stable/c/66d1ce09ebd72709f8d739630c39f440445173fd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/83e0edb26d05515083784db26a02a809371ccdb3","name":"https://git.kernel.org/stable/c/83e0edb26d05515083784db26a02a809371ccdb3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7f4972601b3faa66524e44df9e929fd491e35bfd","name":"https://git.kernel.org/stable/c/7f4972601b3faa66524e44df9e929fd491e35bfd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99678","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99678","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 527851124d10f9c50b1c578e0a56fcd49922422d 7f4972601b3faa66524e44df9e929fd491e35bfd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 527851124d10f9c50b1c578e0a56fcd49922422d 73b0f3d5201f741125061d8559e9631f1af4cb39 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 527851124d10f9c50b1c578e0a56fcd49922422d 83e0edb26d05515083784db26a02a809371ccdb3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 527851124d10f9c50b1c578e0a56fcd49922422d 66d1ce09ebd72709f8d739630c39f440445173fd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.0","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.0 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"99678","cve":"CVE-2026-99678","epss":"0.001680000","percentile":"0.062430000","score_date":"2026-11-21","updated_at":"2026-11-22 00:14:17"},"legacy_qids":[]},"source_records":{"cve_program":{"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":"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":"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":"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-22T11:09:39.299Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"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-22T11:09:39.299Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:02","lastModifiedDate":"2026-11-22 11:17:06","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99678","Ordinal":"1","Title":"xfs: cap the block count of xfs_iomap_write_direct() at one exte","CVE":"CVE-2026-99678","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99678","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"xfs: cap the block count of xfs_iomap_write_direct() at one exte"}]}}}