CVE-2026-97561
smb: client: honor forceuid/forcegid when mapping SIDs to uid/gid
Check your servers for CVE-2026-97561
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-97561 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.89% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 9409ae58e0759d010b347e7b19ebc90ab5d4b98f, before 89a3b4704af2208e381c55037ff2d1e2365b83e4 affected from 9409ae58e0759d010b347e7b19ebc90ab5d4b98f, before be6eccccec867c22d7c65fab4ea4e91ec3d5b8c6 affected from 9409ae58e0759d010b347e7b19ebc90ab5d4b98f, before bc35de451c128d399ad185d6269f8847e97cd1c9 affected from 9409ae58e0759d010b347e7b19ebc90ab5d4b98f, before 6ac7a29691558bed18e2df1780636b8aa0fd13d5 affected from 9409ae58e0759d010b347e7b19ebc90ab5d4b98f, before e1b74f8f8c1d13190b09fe623b729d36b7ac22a8 affected from 9409ae58e0759d010b347e7b19ebc90ab5d4b98f, before 18a72975e9f35aadecc75b031f693f2d1f49308f
Other versions: unaffected
|
| Linux |
affected 3.0 unaffected before 3.0 unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.114 up to and including 6.12.* unaffected from 6.18.57 up to and including 6.18.* unaffected from 7.2.7 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-97561 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-97561
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-97561
trivy image --scanners vuln IMAGE | grep CVE-2026-97561
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/89a3b4704af2208e381c55037ff2d1e2365b83e4 git.kernel.org
- https://git.kernel.org/stable/c/be6eccccec867c22d7c65fab4ea4e91ec3d5b8c6 git.kernel.org
- https://git.kernel.org/stable/c/bc35de451c128d399ad185d6269f8847e97cd1c9 git.kernel.org
- https://git.kernel.org/stable/c/6ac7a29691558bed18e2df1780636b8aa0fd13d5 git.kernel.org
- https://git.kernel.org/stable/c/e1b74f8f8c1d13190b09fe623b729d36b7ac22a8 git.kernel.org
- https://git.kernel.org/stable/c/18a72975e9f35aadecc75b031f693f2d1f49308f git.kernel.org
Source: the record CVE-2026-97561 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse