Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97610 Overview
CVE-2026-97610 is a Linux kernel vulnerability in the network filesystem (netfs) subsystem. The flaw resides in netfs_unbuffered_write(), where the return value ret can remain uninitialized when preparation of the first subrequest fails or when the iterator is empty. Synchronous writes through netfs_unbuffered_write_iter_locked() may then return an unrelated error instead of the correct wreq->error. The issue is reachable through the Common Internet File System (CIFS) client when cifs_prepare_write() fails to reopen the file or obtain credits. The defect was identified using Clang's -Wconditional-uninitialized diagnostic and has been resolved upstream.
Critical Impact
Synchronous CIFS writes can propagate incorrect error codes to userspace when subrequest preparation fails, leading to inconsistent error handling in applications relying on accurate write(2) return values.
Affected Products
- Linux kernel netfs subsystem (upstream, prior to the referenced fix commits)
- CIFS client leveraging the netfs write path
- Stable kernel branches receiving backports via commits 2e38d50, 3d038ee, and f18e877
Discovery Timeline
- 2026-09-25 - CVE-2026-97610 published to the National Vulnerability Database (NVD)
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97610
Vulnerability Analysis
The defect is an Uninitialized Memory Use issue in the kernel's netfs write path. Inside netfs_unbuffered_write(), the loop iterates through subrequests created for an unbuffered write operation. The local variable ret is only assigned inside the loop body, under the assumption that at least one subrequest will execute far enough to set it.
Two conditions break this assumption. First, if preparation of the first subrequest fails, the loop exits immediately. Second, the empty-iterator check can short-circuit the loop before any assignment occurs. In both cases, ret holds whatever stack value existed at function entry.
For synchronous writes, netfs_unbuffered_write_iter_locked() consumes the uninitialized value and may return it to the caller instead of the authoritative wreq->error field. This produces non-deterministic error reporting to userspace through the write() system call path.
Root Cause
The root cause is a missing default initialization of the ret variable combined with early-exit paths in the subrequest loop. The CIFS client exposes the condition when cifs_prepare_write() cannot reopen the target file or acquire the credits required by the Server Message Block (SMB) credit flow-control mechanism.
Attack Vector
The issue is a correctness and reliability defect rather than a direct memory-safety exploitation primitive. It is triggered by filesystem failure modes on the CIFS client. The patch initializes ret to 0, so the caller returns wreq->error when no data was written, or the number of bytes already written otherwise.
See the upstream fixes for implementation detail: Kernel Git Commit 2e38d50, Kernel Git Commit 3d038ee, and Kernel Git Commit f18e877.
Detection Methods for CVE-2026-97610
Indicators of Compromise
- Unexpected or inconsistent errno values returned from write(2) calls against CIFS-mounted shares.
- CIFS client log messages indicating failures to reopen files or obtain SMB credits around the time of failed writes.
- Application-level write failures that cannot be correlated with any corresponding kernel error entry.
Detection Strategies
- Enumerate running kernel versions across the fleet and compare against the fixed stable commits referenced in the advisory.
- Audit kernel build configurations for CIFS usage (CONFIG_CIFS=y or =m) to prioritize affected hosts.
- Review application telemetry on CIFS-dependent workloads for anomalous EIO, ENOSPC, or stale error codes on short or zero-byte writes.
Monitoring Recommendations
- Collect dmesg and /var/log/messages entries containing cifs: and netfs: tags into a central log pipeline.
- Track CIFS mount reconnection events and SMB credit exhaustion warnings as correlation signals.
- Alert on repeated write failures from the same process ID targeting CIFS mount points.
How to Mitigate CVE-2026-97610
Immediate Actions Required
- Identify Linux hosts mounting CIFS shares and schedule kernel updates to a version containing commits 2e38d50, 3d038ee, or f18e877.
- Prioritize servers running synchronous or O_SYNC workloads against CIFS, as these are the paths most sensitive to the incorrect return value.
- Verify vendor kernel changelogs from your Linux distribution to confirm the backport is included.
Patch Information
The upstream fix initializes ret to 0 at the top of netfs_unbuffered_write() so the function returns wreq->error when no bytes were written and the byte count otherwise. Apply the stable kernel updates referenced in Kernel Git Commit 2e38d50, Kernel Git Commit 3d038ee, and Kernel Git Commit f18e877.
Workarounds
- Where feasible, prefer buffered writes over unbuffered writes against CIFS mounts until kernels are patched.
- Ensure CIFS server-side credit limits and session configurations minimize cifs_prepare_write() failures.
- Add application-side retry logic for transient write failures on network filesystems to reduce exposure to incorrect errno propagation.
# Verify running kernel version and CIFS module presence
uname -r
modinfo cifs | grep -E '^(filename|version):'
# Check for active CIFS mounts that are in scope
mount -t cifs
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

