Skip to main content

In the Linux kernel, the following vulnerability has been resolved: cifs: clear tcon after cifsFileInfo_put() in cifs_file_set_size() When the else… (CVE-2026-89641)

0
High
Published: 09/11/2026 (09/11/2026, 21:31:35 UTC)
Source: GCVE Database

Description

A use-after-free vulnerability in the Linux kernel's CIFS client was resolved by ensuring proper clearing of a tcon pointer after releasing a file handle in cifs_file_set_size(). This prevents reuse of a freed pointer during fallback operations when setting file size fails.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/12/2026, 00:57:54 UTC

Technical Analysis

The vulnerability occurs in the Linux kernel CIFS client code within the cifs_file_set_size() function. When a writable file handle is found, the function borrows a tcon and server reference from the handle's tlink, attempts a handle-based set_file_size() RPC, and then releases the handle with cifsFileInfo_put(). If set_file_size() fails, the fallback path reuses the borrowed tcon and server pointers under a guard that checks if tcon is NULL. However, since tcon is not NULL, the guard is skipped. If cifsFileInfo_put() caused the last reference on a tlink to be dropped and freed (due to prior removal from the tlink tree during reconnection or session teardown), the subsequent use of tcon results in a use-after-free. The fix sets tcon to NULL after cifsFileInfo_put(), ensuring the guard triggers the path-based operation to acquire a fresh reference or fail cleanly, preventing use-after-free.

Potential Impact

This vulnerability could lead to use-after-free conditions in the kernel CIFS client, potentially causing kernel crashes or memory corruption. The exact impact depends on exploitation, but use-after-free bugs in kernel code can lead to denial of service or privilege escalation.

Mitigation Recommendations

A fix has been implemented in the Linux kernel to clear the tcon pointer after cifsFileInfo_put() in cifs_file_set_size(), preventing use-after-free. Users should apply the official kernel updates that include this fix. No additional mitigation steps are indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-f4f3-66v7-cmrj
Osv Schema Version
1.4.0
Aliases
["CVE-2026-89641"]

Threat ID: 6aa4a00455bf5e2cf5a8662f

Added to database: 09/12/2026, 00:42:44 UTC

Last enriched: 09/12/2026, 00:57:54 UTC

Last updated: 09/12/2026, 00:57:54 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses