Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99678

published high CVSS 3.1 · 7.5

xfs: cap the block count of xfs_iomap_write_direct() at one extent

Published
20 Nov 2026, 05:50:25 UTC
Updated
23 Nov 2026, 08:05:53 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux527851124d10f9c50b1c578e0a56fcd49922422d to < a5d7ce30a20abcb1149a793879ac645547c9162d · 527851124d10f9c50b1c578e0a56fcd49922422d to < 7c69fa22f36f44eb4dc367b915bb6b06e1f60c42 · 527851124d10f9c50b1c578e0a56fcd49922422d to < dbee0c8c244bbe00dbf4da145609de82c2758dc5 · 527851124d10f9c50b1c578e0a56fcd49922422d to < ade881e5fd44b8993c1371bbd8e2ea7f207e5251 · 527851124d10f9c50b1c578e0a56fcd49922422d to < 7f4972601b3faa66524e44df9e929fd491e35bfd · 527851124d10f9c50b1c578e0a56fcd49922422d to < 73b0f3d5201f741125061d8559e9631f1af4cb39 · 527851124d10f9c50b1c578e0a56fcd49922422d to < 83e0edb26d05515083784db26a02a809371ccdb3 · 527851124d10f9c50b1c578e0a56fcd49922422d to < 66d1ce09ebd72709f8d739630c39f440445173fd · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.0 (affected) · 0 to < 4.0 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc2 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Pending Fix Not stated Amazon Linux assessment
Debian trixie linux Advisory build 6.12.118-1 DSA-6652-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develaarch64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develppc64le Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devels390x Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
Show 13 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Tumbleweed kernel-develx86_64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosaarch64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosppc64le Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macross390x Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosx86_64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceaarch64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceppc64le Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sources390x Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourcex86_64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillaaarch64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillappc64le Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillas390x Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillax86_64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1

Description

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

2

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.5 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Scenarios
en: 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. AC: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. PR: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. UI:N - The same client creates the file and sends the LAYOUTGET whose loga_length is the value that wraps the reservation. S: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. C: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. I: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. A: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.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 527851124d10f9c50b1c578e0a56fcd49922422d to < a5d7ce30a20abcb1149a793879ac645547c9162d (affected · git)527851124d10f9c50b1c578e0a56fcd49922422d to < 7c69fa22f36f44eb4dc367b915bb6b06e1f60c42 (affected · git)527851124d10f9c50b1c578e0a56fcd49922422d to < dbee0c8c244bbe00dbf4da145609de82c2758dc5 (affected · git)527851124d10f9c50b1c578e0a56fcd49922422d to < ade881e5fd44b8993c1371bbd8e2ea7f207e5251 (affected · git)527851124d10f9c50b1c578e0a56fcd49922422d to < 7f4972601b3faa66524e44df9e929fd491e35bfd (affected · git)527851124d10f9c50b1c578e0a56fcd49922422d to < 73b0f3d5201f741125061d8559e9631f1af4cb39 (affected · git)527851124d10f9c50b1c578e0a56fcd49922422d to < 83e0edb26d05515083784db26a02a809371ccdb3 (affected · git)527851124d10f9c50b1c578e0a56fcd49922422d to < 66d1ce09ebd72709f8d739630c39f440445173fd (affected · git)Default: unaffected Linux · cna
Linux Linux 4.0 (affected)0 to < 4.0 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

xfs: cap the block count of xfs_iomap_write_direct() at one extent

Provenance

Schema
5.2
Searchable
yes
Content hash
fb98f16fddf944717b6be8dd9d52a5dda02b2b72f63a9563faa236b388b6460b
Ingested
23 Nov 2026, 14:37:13 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected