CVE-2026-89641
cifs: clear tcon after cifsFileInfo_put() in cifs_file_set_size()
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < 4f18c9e7ee464aaae5cd9fccdb943b3fcb4655d4; >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < 4bea15d9c7683218f57b8c1f5f0aa75cab76af8d; >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < b96db32fed8dfb2478d7c208f89bf383beed1535
- Anyone running Linux 6.18
Vulnerability facts
- Affected
- Linux >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < 4f18c9e7ee464aaae5cd9fccdb943b3fcb4655d4; >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < 4bea15d9c7683218f57b8c1f5f0aa75cab76af8d; >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < b96db32fed8dfb2478d7c208f89bf383beed1535; Linux 6.18
- Fixed in
- Linux 4f18c9e7ee464aaae5cd9fccdb943b3fcb4655d4, Linux 4bea15d9c7683218f57b8c1f5f0aa75cab76af8d
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.18% chance of exploitation in 30 days (percentile 4, 2026-11-26)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < 4f18c9e7ee464aaae5cd9fccdb943b3fcb4655d4; >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < 4bea15d9c7683218f57b8c1f5f0aa75cab76af8d; >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < b96db32fed8dfb2478d7c208f89bf383beed1535 | — | cvelist |
| Linux | 6.18 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-89641. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-89641.md Affected: Linux >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < 4f18c9e7ee464aaae5cd9fccdb943b3fcb4655d4; >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < 4bea15d9c7683218f57b8c1f5f0aa75cab76af8d; >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < b96db32fed8dfb2478d7c208f89bf383beed1535; Linux 6.18 Fixed in: Linux 4f18c9e7ee464aaae5cd9fccdb943b3fcb4655d4, Linux 4bea15d9c7683218f57b8c1f5f0aa75cab76af8d Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2026-89641 being exploited?
There is no confirmed exploitation: CVE-2026-89641 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-89641?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-89641?
Linux >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < 4f18c9e7ee464aaae5cd9fccdb943b3fcb4655d4; >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < 4bea15d9c7683218f57b8c1f5f0aa75cab76af8d; >= 110fee6b9bb58a5c50047fc2594d415f741b591e, < b96db32fed8dfb2478d7c208f89bf383beed1535; Linux 6.18.
Is there a fix for CVE-2026-89641?
Yes. Fixed in Linux 4f18c9e7ee464aaae5cd9fccdb943b3fcb4655d4, Linux 4bea15d9c7683218f57b8c1f5f0aa75cab76af8d. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2026-89641?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.