Skip to main content

In the Linux kernel, the following vulnerability has been resolved: smb: client: clear setuid/setgid bit on write with cifsacl/modefromsid/posix… (CVE-2026-89638)

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

Description

A vulnerability in the Linux kernel's SMB client implementation allowed the setuid/setgid bits on files to persist after writes when using certain CIFS mount options (cifsacl, modefromsid, or SMB3.1.1 POSIX extensions). Normally, these bits are cleared on write to prevent privilege escalation, but due to improper handling, the cleared mode was not propagated to the server, allowing the bits to survive and potentially enable privilege escalation.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/12/2026, 00:58:45 UTC

Technical Analysis

The Linux kernel's SMB client did not correctly clear the setuid/setgid bits on files written over CIFS mounts with cifsacl, modefromsid, or SMB3.1.1 POSIX extensions enabled. The VFS strips these bits and issues a setattr with ATTR_KILL_SUID/ATTR_KILL_SGID and an ATTR_MODE with the cleared mode. However, the CIFS client functions cifs_setattr_unix() and cifs_setattr_nounix() unconditionally dropped ATTR_MODE when ATTR_KILL_SUID or ATTR_KILL_SGID were set, preventing the cleared mode from being sent to the server. This caused the setuid/setgid bits to persist on the server, contrary to local filesystem behavior, potentially allowing privilege escalation on subsequent execution. The fix involved modifying cifs_setattr_nounix() to only skip mode changes when the mode is emulated via the DOS read-only attribute and removing the shortcut in cifs_setattr_unix() to always push the cleared mode to the server.

Potential Impact

The vulnerability allows setuid/setgid bits to persist on files after write operations over CIFS mounts with specific options, contrary to expected behavior where these bits are cleared. This persistence can lead to unexpected privilege escalation if a file with these bits set is executed, as the bits grant elevated privileges. The issue affects security by undermining the intended protection against privilege escalation on files accessed via SMB/CIFS mounts with the affected options.

Mitigation Recommendations

A fix has been implemented in the Linux kernel to address this issue by ensuring the cleared setuid/setgid bits are properly propagated to the server in all relevant CIFS mount scenarios. Users should update to a kernel version that includes this fix. Since this is a kernel-level vulnerability, applying the official kernel patch or upgrading to a fixed kernel release is the recommended remediation.

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-7hx7-9jhj-445w
Osv Schema Version
1.4.0
Aliases
["CVE-2026-89638"]

Threat ID: 6aa4a00555bf5e2cf5a86639

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

Last enriched: 09/12/2026, 00:58:45 UTC

Last updated: 09/12/2026, 00:58:45 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