Description
In the Linux kernel, the following vulnerability has been resolved:

cifs: don't update i_size in cifs_do_truncate without a cached handle

If find_writable_file() returns null, cifs_file_flush will return
0 without issuing set_file_size, and the outer 'if (!rc)' block
will set i_size to 0 before telling the server to truncate. If
the cifs_open() then fails, the inode will have size 0, while
the server file is unchanged.

Move the netfs_resize_file() and cifs_setsize() into the 'if
(cfile)', so they only run after a successful set_file_size.

In the no-handle else branch, evict stale pages with
truncate_inode_pages before the O_TRUNC open to dispose of old
cache pages, and let the open response set the i_size.
Published: 2026-10-28
Score: n/a
EPSS: n/a
KEV: No
Impact: Integrity Violation
Action: Apply Patch
AI Analysis

Impact

In the Linux kernel, the CIFS file system had a bug where, during an O_TRUNC open that failed to obtain a cached handle, the inode size was incorrectly set to zero before the server was told to truncate. This caused the local inode size to diverge from the actual file size on the server, potentially leading to data loss or corruption if subsequent file operations relied on the stale size. The flaw effectively undermines the integrity of file metadata during truncate operations, and could be exploited by a local or remote attacker with write access to a CIFS share to force misreported or incomplete data.

Affected Systems

All Linux systems running the kernel version that contains the CIFS implementation with the unpatched logic are affected. Since no specific kernel version range is provided in the advisory, any distribution kernel that had not been updated to the commit that fixes the issue is vulnerable. The vendor is the Linux kernel community, the product is the Linux operating system kernel.

Risk and Exploitability

No CVSS score is supplied and the EPSS score is unavailable, so a precise severity estimate is not possible from the data. The vulnerability is not listed in the CISA KEV catalog, suggesting there are no publicly known exploited instances yet. However, because the flaw can cause improper truncation and data inconsistency, the risk remains moderate to high for systems that rely on CIFS file operations, especially if O_TRUNC is used on files that are critical to application functionality. Exploitation would likely require local or SMB‑based file operations that trigger the non‑cached handle path.

Generated by OpenCVE AI on October 28, 2026 at 11:39 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that includes the fix for the CIFS truncation size bug.
  • Reboot the system or reload the updated kernel module to ensure the patched code is active.
  • As a temporary measure, avoid performing truncate operations (O_TRUNC) on CIFS shares until the kernel update is in place; verify that cifs_open succeeds before trusting the inode size.

Generated by OpenCVE AI on October 28, 2026 at 11:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 28 Oct 2026 12:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-668

Wed, 28 Oct 2026 10:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: cifs: don't update i_size in cifs_do_truncate without a cached handle If find_writable_file() returns null, cifs_file_flush will return 0 without issuing set_file_size, and the outer 'if (!rc)' block will set i_size to 0 before telling the server to truncate. If the cifs_open() then fails, the inode will have size 0, while the server file is unchanged. Move the netfs_resize_file() and cifs_setsize() into the 'if (cfile)', so they only run after a successful set_file_size. In the no-handle else branch, evict stale pages with truncate_inode_pages before the O_TRUNC open to dispose of old cache pages, and let the open response set the i_size.
Title cifs: don't update i_size in cifs_do_truncate without a cached handle
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-28T10:34:49.266Z

Reserved: 2026-09-25T10:25:14.395Z

Link: CVE-2026-99137

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-28T11:17:33.630

Modified: 2026-10-28T11:17:33.630

Link: CVE-2026-99137

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-28T11:45:09Z

Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-668

    Exposure of Resource to Wrong Sphere