CVE Catalog

CVE-2026-97610

Unknown
Published: Translated: NVD NIST

Summary

In the Linux kernel's netfs module, there is an issue with an uninitialized return value in the netfs_unbuffered_write() function. If preparation of the first subrequest fails, the loop exits before ret is initialized, which can lead to returning an incorrect error code. The fix initializes ret to 0.

Risk Assessment

The vulnerability could lead to incorrect error reporting, which may hinder troubleshooting or cause unexpected filesystem behavior.

Recommendation

Apply the kernel patch that initializes the ret variable and update the system.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: netfs: Fix uninitialized return value in netfs_unbuffered_write() If preparation of the first subrequest fails, netfs_unbuffered_write() exits its loop before ret is initialized. The empty-iterator check can do the same. For synchronous writes, netfs_unbuffered_write_iter_locked() may then return an unrelated error instead of wreq->error. This is reachable through CIFS if cifs_prepare_write() fails to reopen the file or obtain credits. Initialize ret to 0 so the caller returns wreq->error if no data was written, or the number of bytes already written otherwise. Found with Clang's -Wconditional-uninitialized.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS