Summary
In the Linux kernel, a pNFS client can send a LAYOUTCOMMIT over a range without blocks (a hole), causing XFS to shut down or expose stale data. The source rates the vulnerability as critical, with a CVSS score of 9.4.
What happened
The kernel NFS server (nfsd) does not check the extents in a LAYOUTCOMMIT against its own layouts, so a client can commit a hole. xfs_iomap_write_unwritten() then allocates written blocks in that range. A large hole overruns the block reservation and shuts XFS down; a small one exposes stale data. The fix refuses such a range with an -EIO error, using XFS_BMAPI_CONVERT_ONLY.
Why it matters
According to the description, the effect is an XFS filesystem shutdown or exposure of stale data. The CVSS 3.1 score is 9.4 (vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H), assigned by the Linux kernel CNA, and the stated severity is critical. CISA's KEV catalog does not list known exploitation of this flaw, and the source provides no evidence that it was a zero-day.
Affected products and versions
Linux (kernel). Affected ranges stated by the source: from commit 527851124d10f9c50b1c578e0a56fcd49922422d up to, but not including, commits 097608700b06804fe81a695417004896507edaeb, d13039937a44e935ed57d661f3f4adcde8375785 and bcf0b7f18ad11e1d410e82ffef678705eff0a317 (depending on the branch); version 4.0 is also listed as affected. Versions earlier than 4.0 are listed as unaffected. Versions 6.18.65 (6.18.* series), 7.3.5 (7.3.* series) and 7.4-rc2 are listed as unaffected.
| Product | Versions | Fixed in |
|---|---|---|
| Linux Linux | >= 527851124d10f9c50b1c578e0a56fcd49922422d, < 097608700b06804fe81a695417004896507edaeb | — |
| Linux Linux | >= 527851124d10f9c50b1c578e0a56fcd49922422d, < d13039937a44e935ed57d661f3f4adcde8375785 | — |
| Linux Linux | >= 527851124d10f9c50b1c578e0a56fcd49922422d, < bcf0b7f18ad11e1d410e82ffef678705eff0a317 | — |
| Linux Linux | 4.0 | — |
| Linux Linux | < 4.0 | — |
| Linux Linux | 6.18.65 | 6.18.65 |
| Linux Linux | 7.3.5 | 7.3.5 |
| Linux Linux | 7.4-rc2 | 7.4-rc2 |
Action recommended by the source
The source indicates the issue is resolved in versions 6.18.65, 7.3.5 and 7.4-rc2, and links the fix commits on git.kernel.org (d13039937a44e935ed57d661f3f4adcde8375785, bcf0b7f18ad11e1d410e82ffef678705eff0a317 and 097608700b06804fe81a695417004896507edaeb). The source does not state any other mitigations.
Fixed in: 6.18.65, 7.3.5, 7.4-rc2
Sources and references
Relevant change history
Published
Advisory published.