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

smb: client: honor forceuid/forcegid when mapping SIDs to uid/gid

When the administrator mounts with forceuid or forcegid (uid=/gid=
mount options), they expect all files to appear owned by the specified
user/group. However, several code paths unconditionally called
sid_to_id() to overwrite cf_uid/cf_gid with server-provided values,
ignoring the administrator's explicit override:

- smb311_posix_info_to_fattr() (stat via POSIX extensions)
- cifs_posix_to_fattr() (readdir via POSIX extensions)
- parse_sec_desc() (CIFS ACL ownership mapping)

This allowed an untrusted server to dictate local file ownership even
when the mount was configured to force specific uid/gid values.

Fix all three call sites to check CIFS_MOUNT_OVERR_UID and
CIFS_MOUNT_OVERR_GID before calling sid_to_id(), following the
same pattern already used by cifs_unix_basic_to_fattr() for unix
extensions.
Published: 2026-09-25
Score: 7.0 High
EPSS: < 1% Very Low
KEV: No
Impact: Local Privilege Escalation via Unauthorized Ownership Spoofing
Action: Immediate Patch
AI Analysis

Impact

The vulnerability occurs in the Linux kernel’s SMB client when administrator-provided forceuid or forcegid mount options are ignored during certain operations. In multiple code paths—stat via POSIX extensions, readdir via POSIX extensions, and CIFS ACL ownership mapping—the code unconditionally maps server‑supplied SIDs to local uid/gid values, overwriting the client‑specified forced identities. This flaw allows a malicious SMB server to dictate local file ownership on the client system, potentially enabling the execution of privileged actions or escalation of rights. The weakness represents an improper authorization problem that undermines the trust boundaries set by mount options.

Affected Systems

The affected products are Linux kernel distributions that implement the SMB client. All releases of the Linux operating system that include the SMB client code are potentially impacted unless the vendor has applied the patch. No specific version numbers are listed in the CNA data, so administrators should verify that their kernel image incorporates the fix described in the advisory.

Risk and Exploitability

The CVSS score is 7.0 and the EPSS score is <1%, and the vulnerability is not listed in the CISA KEV catalog. Nonetheless, an untrusted SMB server can influence local file ownership, which poses a significant risk to systems exposed to SMB shares. Exploitation requires the victim to mount a CIFS/SMB share with forceuid/forcegid enabled—an approach that is common in many shared‑workgroup scenarios. The fix removes the server's ability to override the mount‑specified identity, thereby eliminating this vector. In the absence of widely reported exploits, cautious assumption and prompt remediation are advised.

Generated by OpenCVE AI on October 1, 2026 at 10:52 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that updates the SMB client to honor CIFS_MOUNT_OVERR_UID and CIFS_MOUNT_OVERR_GID settings before mapping server‑supplied SIDs.
  • If using a custom kernel, rebuild or apply the upstream commit that contains the fix directly to the kernel source tree.
  • Restrict SMB share accessibility by disabling forceuid/forcegid on mounts that connect to untrusted or external servers, or by enforcing network‑level controls to limit exposure to SMB servers.

Generated by OpenCVE AI on October 1, 2026 at 10:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 15 Oct 2026 13:30:00 +0000


Thu, 01 Oct 2026 09:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-640

Tue, 29 Sep 2026 13:15:00 +0000

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

None

cvssV3_1

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

threat_severity

Moderate


Fri, 25 Sep 2026 23:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-640

Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: smb: client: honor forceuid/forcegid when mapping SIDs to uid/gid When the administrator mounts with forceuid or forcegid (uid=/gid= mount options), they expect all files to appear owned by the specified user/group. However, several code paths unconditionally called sid_to_id() to overwrite cf_uid/cf_gid with server-provided values, ignoring the administrator's explicit override: - smb311_posix_info_to_fattr() (stat via POSIX extensions) - cifs_posix_to_fattr() (readdir via POSIX extensions) - parse_sec_desc() (CIFS ACL ownership mapping) This allowed an untrusted server to dictate local file ownership even when the mount was configured to force specific uid/gid values. Fix all three call sites to check CIFS_MOUNT_OVERR_UID and CIFS_MOUNT_OVERR_GID before calling sid_to_id(), following the same pattern already used by cifs_unix_basic_to_fattr() for unix extensions.
Title smb: client: honor forceuid/forcegid when mapping SIDs to uid/gid
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-15T10:11:52.445Z

Reserved: 2026-09-24T16:01:01.155Z

Link: CVE-2026-97561

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:06.657

Modified: 2026-10-15T11:18:09.033

Link: CVE-2026-97561

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-97561 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T11:00:06Z

Weaknesses
  • CWE-708

    Incorrect Ownership Assignment