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

cifs: clear tcon after cifsFileInfo_put() in cifs_file_set_size()

When the else branch of cifs_file_set_size() finds a writable file handle
via find_writable_file(), it borrows tcon and server from the handle's
tlink, attempts the handle-based set_file_size() RPC, and then releases
the handle with cifsFileInfo_put().

If set_file_size() fails, execution falls through to the path-based
fallback, which reuses the borrowed tcon and server under the
"if (tcon == NULL)" guard. Since tcon is not NULL at that point, the
guard is skipped. If cifsFileInfo_put() dropped the last reference on a
tlink that was already removed from the tlink tree (TCON_LINK_IN_TREE
cleared, as happens during reconnection or session teardown),
cifs_put_tlink() will have freed tcon; the subsequent set_path_size()
call is then a use-after-free.

Setting tcon = NULL after cifsFileInfo_put() causes the existing guard
to take the cifs_sb_tlink() path, which acquires a fresh reference for
the path-based operation or fails cleanly if the session is gone.
Published: 2026-09-11
Score: 4.7 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Kernel use‑after‑free leading to memory corruption
Action: Immediate Patch
AI Analysis

Impact

The CIFS subsystem in the Linux kernel contains a use‑after‑free flaw in the file‑size update routine. When a writable file handle fails to update its size via a handle‑based RPC, the code falls back to a path‑based operation that reuses a server link (tcon) that has already been freed by cifsFileInfo_put(). The resulting dereference of freed memory can corrupt kernel data structures and potentially lead to a crash or unauthorized code execution, thereby affecting system integrity and availability. The weakness is identified as CWE‑825.

Affected Systems

All Linux kernel builds that include the CIFS driver and have not been patched with the fix that clears the tcon reference after cifsFileInfo_put(). This includes standard distribution kernels that have not applied the latest security update, as well as custom builds that retain the unpatched CIFS implementation.

Risk and Exploitability

The CVSS score of 4.7 indicates moderate severity, and the EPSS score of <1% indicates a very low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that an attacker would need an SMB/CIFS session that attempts a file‑size change operation which fails, triggering the path‑based fallback. The attacker could be a remote client with SMB/CIFS access to the target system. The precise impact depends on the system context; reproducible exploitation could lead to kernel memory corruption but does not provide a guaranteed code‑execution pathway.

Generated by OpenCVE AI on September 13, 2026 at 02:57 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that includes the patch which clears the tcon reference after cifsFileInfo_put()
  • Disable CIFS modules or unmount CIFS shares to prevent the vulnerable path from being exercised
  • Restrict SMB/CIFS traffic to trusted networks or block unauthenticated clients until the kernel is updated

Generated by OpenCVE AI on September 13, 2026 at 02:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 12 Sep 2026 15:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sat, 12 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important


Sat, 12 Sep 2026 10:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 11 Sep 2026 23:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: cifs: clear tcon after cifsFileInfo_put() in cifs_file_set_size() When the else branch of cifs_file_set_size() finds a writable file handle via find_writable_file(), it borrows tcon and server from the handle's tlink, attempts the handle-based set_file_size() RPC, and then releases the handle with cifsFileInfo_put(). If set_file_size() fails, execution falls through to the path-based fallback, which reuses the borrowed tcon and server under the "if (tcon == NULL)" guard. Since tcon is not NULL at that point, the guard is skipped. If cifsFileInfo_put() dropped the last reference on a tlink that was already removed from the tlink tree (TCON_LINK_IN_TREE cleared, as happens during reconnection or session teardown), cifs_put_tlink() will have freed tcon; the subsequent set_path_size() call is then a use-after-free. Setting tcon = NULL after cifsFileInfo_put() causes the existing guard to take the cifs_sb_tlink() path, which acquires a fresh reference for the path-based operation or fails cleanly if the session is gone.
Title cifs: clear tcon after cifsFileInfo_put() in cifs_file_set_size()
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-09-11T19:45:34.036Z

Reserved: 2026-09-11T19:38:34.740Z

Link: CVE-2026-89641

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-11T20:19:49.867

Modified: 2026-09-11T20:19:49.867

Link: CVE-2026-89641

cve-icon Redhat

Severity : Important

Publid Date: 2026-09-11T19:45:34Z

Links: CVE-2026-89641 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-13T03:00:11Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference