CVE-2026-89638
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-debug-modules-extra | errata.rockylinux.org | 0: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-core | errata.rockylinux.org | 0:6.12.0-211.69.1.el10_2.aarch64 |
| kernel-rt-64k-modules-extra | errata.rockylinux.org | 0: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-matched | errata.rockylinux.org | 0: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-modules | errata.rockylinux.org | 0:6.12.0-211.69.1.el10_2.aarch64 |
| kernel | errata.rockylinux.org | 0:6.12.0-211.69.1.el10_2.src, 0:6.12.0-211.69.1.el10_2.s390x |
| kernel-devel | errata.rockylinux.org | 0: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-core | errata.rockylinux.org | 0:6.12.0-211.69.1.el10_2.aarch64 |
| kernel-rt-64k-devel | errata.rockylinux.org | 0:5.14.0-741.24.1.el9_9.aarch64, 0:5.14.0-687.61.1.el9_8.aarch64 |
| kernel6.18-modules-extra | Amazon Linux | 1:6.18.51-120.162.amzn2023 |
| bpftool6.12 | Amazon Linux | 1:6.12.113-138.209.amzn2023 |
| kernel-debug-devel-matched | errata.rockylinux.org | 0: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
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | d32c4f2626acc385d5187bd5c0c24f442328dc60, d32c4f2626acc385d5187bd5c0c24f442328dc60, d32c4f2626acc385d5187bd5c0c24f442328dc60 |
| Linux | Linux | 2.6.24, 0, 5.10.273 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-livepatch-6.1.189-236.399 | 0 |
| Linux | Linux | *, *, * |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-livepatch-6.18.51-120.162 | 0 |
| linux | linux_kernel | 2.6.24, 2.6.24, 2.6.24 |
| amazon:2023 | perf | 0 |
| amazon:2023 | python3-perf | 0 |
…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