CVE-2026-97561

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

Published Sep 25, 2026 CVSS 3.1 · 7.0 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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

Source ID Title
Debian DLA Debian DLA DLA-4904-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4906-1 linux security update
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9173-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9175-1 Linux kernel (Oracle) vulnerabilities
Ubuntu USN Ubuntu USN USN-9173-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9183-1 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-9173-3 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9174-2 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9191-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9192-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-640
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

Type Values Removed Values Added
Weaknesses CWE-640
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
Weaknesses
  • CWE-708

    Incorrect Ownership Assignment

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 30, 2026, 12:37 PM
Reserved
Sep 24, 2026, 4:01 PM
Status
Received
Published
Sep 25, 2026, 11:17 AM
Modified
Oct 30, 2026, 1:21 PM
Severity
Moderate
Public date
Sep 25, 2026, 12:00 AM