VDB

CVE-2026-89638

CVE-2026-89638 PUBLISHED CVSS 7.8 HIGH

smb: client: clear setuid/setgid bit on write with cifsacl/modefromsid/posix extensions

Reported by linux · Published September 11, 2026

In the Linux kernel, the following vulnerability has been resolved: smb: client: clear setuid/setgid bit on write with cifsacl/modefromsid/posix extensions When a file has the setuid or setgid bit set and is written to, the VFS strips those bits and issues a setattr with ATTR_KILL_SUID/ATTR_KILL_SGID together with an ATTR_MODE carrying the already-cleared mode. Both cifs_setattr_unix() and cifs_setattr_nounix() unconditionally dropped ATTR_MODE in that case: /* skip mode change if it's just for clearing setuid/setgid */ if (attrs->ia_valid & (ATTR_KILL_SUID|ATTR_KILL_SGID)) attrs->ia_valid &= ~ATTR_MODE; This is fine for the default mount, where the mode is only emulated via the DOS read-only attribute and cannot represent the setuid/setgid bits anyway. However, with the "cifsacl" or "modefromsid" mount options the mode is stored on the server through an ACL (id_mode_to_cifs_acl()), with the SMB3.1.1 POSIX extensions the mode is sent to the server directly, and with the SMB1 Unix extensions (cifs_setattr_unix) the mode is sent via CIFSSMBUnixSetPathInfo(). In all those cases dropping ATTR_MODE means the cleared mode is never pushed to the server, so the setuid/setgid bit survives the write. This is a security issue: on local filesystems the setuid bit is stripped when a file is written, but over these cifs.ko mounts the bit persists on the server, potentially allowing an unexpected privilege escalation on subsequent execution. Fix this in two places: 1. cifs_setattr_nounix(): only take the "skip mode change" shortcut when the mode is emulated via the DOS read-only attribute (i.e. neither cifsacl/modefromsid nor the SMB3.1.1 POSIX extensions are in effect), so that the cleared mode is propagated to the server in the ACL / POSIX cases. 2. cifs_setattr_unix(): this function is only called when Unix extensions are in effect, so the mode is always stored on the server. Remove the shortcut entirely so that the cleared mode is always pushed.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-debug-modules-extraerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.x86_64, 0:6.12.0-211.69.1.el10_2.ppc64le, 0:5.14.0-687.61.1.el9_8.cloud.1.0.x86_64
kernel-debug-modules-coreerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.aarch64
kernel-rt-64k-modules-extraerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.aarch64, 0:5.14.0-741.24.1.el9_9.aarch64, 0:5.14.0-687.61.1.el9_8.aarch64
kernel-zfcpdump-devel-matchederrata.rockylinux.org0:6.12.0-211.69.1.el10_2.s390x, 0:5.14.0-741.24.1.el9_9.s390x, 0:5.14.0-687.61.1.el9_8.s390x
kernel-64k-debug-moduleserrata.rockylinux.org0:6.12.0-211.69.1.el10_2.aarch64
kernelerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.src, 0:6.12.0-211.69.1.el10_2.s390x
kernel-develerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.aarch64, 0:5.14.0-741.24.1.el9_9.x86_64, 0:5.14.0-687.61.1.el9_8.x86_64
kernel-64k-coreerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.aarch64
kernel-rt-64k-develerrata.rockylinux.org0:5.14.0-741.24.1.el9_9.aarch64, 0:5.14.0-687.61.1.el9_8.aarch64
kernel6.18-modules-extraAmazon Linux1:6.18.51-120.162.amzn2023
bpftool6.12Amazon Linux1:6.12.113-138.209.amzn2023
kernel-debug-devel-matchederrata.rockylinux.org0:6.12.0-211.69.1.el10_2.x86_64, 0:6.12.0-211.69.1.el10_2.s390x, 0:6.12.0-211.69.1.el10_2.aarch64, 0:5.14.0-741.24.1.el9_9.ppc64le, 0:5.14.0-741.24.1.el9_9.aarch64, 0:5.14.0-687.61.1.el9_8.ppc64le, 0:5.14.0-687.61.1.el9_8.aarch64

44 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxd32c4f2626acc385d5187bd5c0c24f442328dc60, d32c4f2626acc385d5187bd5c0c24f442328dc60, d32c4f2626acc385d5187bd5c0c24f442328dc60
LinuxLinux2.6.24, 0, 5.10.273
amazon:2023kernel6.18-modules-extra0
amazon:2023bpftool6.120
amazon:2023kernel0
amazon:2023perf6.180
amazon:2023kernel-modules-extra0
amazon:2023microvm-kernel6.180
amazon:2023kernel-tools-devel0
amazon:2023python3-perf6.120
amazon:2023bpftool6.180
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-livepatch-6.1.189-236.3990
LinuxLinux*, *, *
amazon:2023kernel6.12-headers0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-livepatch-6.18.51-120.1620
linuxlinux_kernel2.6.24, 2.6.24, 2.6.24
amazon:2023perf0
amazon:2023python3-perf0

…and 19 more

Timeline

  • Sep 11, 2026 CVE Published
  • Sep 12, 2026 EPSS Score (13 in total, the first dated here)
  • Oct 27, 2026 Distribution Patch (7 in total, the first dated here)
  • Oct 27, 2026 Security Advisory (3 in total, the first dated here)
  • Oct 30, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-89638
vulnetix vdb fixes CVE-2026-89638

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-89638/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›