In the Linux kernel, the following vulnerability has been resolved: nfsd: fix partial-write detection in nfsd_direct_write nfsd_direct_write() walks… (CVE-2026-89678)
A vulnerability in the Linux kernel's NFS server code (nfsd) related to partial-write detection in the nfsd_direct_write function has been resolved. The issue caused the function to incorrectly detect short writes when the amount written was between 50% and 99% of the segment size, leading to incorrect file offsets for subsequent writes and over-reporting of bytes written to NFS clients.
AI Analysis
Technical Summary
The vulnerability in the Linux kernel's nfsd_direct_write function arises from improper detection of partial writes. The function iterates over write segments and uses vfs_iocb_iter_write to perform writes, then checks if a short write occurred by comparing the bytes written (host_err) to the segment's iter.count. However, iter.count is updated by write_iter to reflect the residual bytes after the write, causing the condition to only detect partial writes if less than half the segment was written. This allows short writes completing between 50% and 99% of the segment to go undetected, resulting in the next segment being written at an incorrect file offset and the total bytes written being over-reported to the NFS client. The fix involves snapshotting the segment's byte count before the write and comparing host_err against that snapshot to correctly detect any short write and break the loop accordingly.
Potential Impact
The vulnerability can cause data corruption or inconsistency by writing subsequent data segments at incorrect file offsets due to undetected partial writes. Additionally, it causes the NFS server to over-report the number of bytes written to clients, potentially misleading client applications about the success of write operations. There is no information about exploitation in the wild or direct security impact such as privilege escalation or denial of service.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the Linux kernel by correcting the partial-write detection logic in nfsd_direct_write. Users and administrators should apply the official kernel updates that include this fix to ensure correct handling of partial writes in NFS server operations. No other specific mitigation steps are indicated.
In the Linux kernel, the following vulnerability has been resolved: nfsd: fix partial-write detection in nfsd_direct_write nfsd_direct_write() walks… (CVE-2026-89678)
Description
A vulnerability in the Linux kernel's NFS server code (nfsd) related to partial-write detection in the nfsd_direct_write function has been resolved. The issue caused the function to incorrectly detect short writes when the amount written was between 50% and 99% of the segment size, leading to incorrect file offsets for subsequent writes and over-reporting of bytes written to NFS clients.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel's nfsd_direct_write function arises from improper detection of partial writes. The function iterates over write segments and uses vfs_iocb_iter_write to perform writes, then checks if a short write occurred by comparing the bytes written (host_err) to the segment's iter.count. However, iter.count is updated by write_iter to reflect the residual bytes after the write, causing the condition to only detect partial writes if less than half the segment was written. This allows short writes completing between 50% and 99% of the segment to go undetected, resulting in the next segment being written at an incorrect file offset and the total bytes written being over-reported to the NFS client. The fix involves snapshotting the segment's byte count before the write and comparing host_err against that snapshot to correctly detect any short write and break the loop accordingly.
Potential Impact
The vulnerability can cause data corruption or inconsistency by writing subsequent data segments at incorrect file offsets due to undetected partial writes. Additionally, it causes the NFS server to over-report the number of bytes written to clients, potentially misleading client applications about the success of write operations. There is no information about exploitation in the wild or direct security impact such as privilege escalation or denial of service.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the Linux kernel by correcting the partial-write detection logic in nfsd_direct_write. Users and administrators should apply the official kernel updates that include this fix to ensure correct handling of partial writes in NFS server operations. No other specific mitigation steps are indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-qpfv-2qf2-xr5w
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-89678"]
Threat ID: 6aa4a00055bf5e2cf5a8660a
Added to database: 09/12/2026, 00:42:40 UTC
Last enriched: 09/12/2026, 00:54:55 UTC
Last updated: 09/12/2026, 00:54:55 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.