SMB3 encryption wraps each request in a transform header that names the session whose key encrypted it; inside is an ordinary SMB2 header that also names a session. The kernel CNA record says ksmbd never compared them: “the decryption key is picked by the SessionId in the transform header, but the request is then authorized under whatever session the decrypted inner header names. Nothing ever compares the two, so on a connection with more than one session a client can get a request decrypted with one session’s key and run it as another session. Encrypted requests are exempt from signing too, so a valid AEAD tag is the only proof of session identity, and it is checked against the wrong session.” Red Hat rates it Important at 7.5, Ubuntu High at 7.7 under CVSS 4.0, SUSE Moderate. If a host runs ksmbd with SMB3 encryption and more than one user can bind a session on the same connection, upgrade it to a kernel at or above 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61 or 7.3.2 and restart the server.
CVE-2026-99531 at a glance.
| Component | Linux kernel, the in-kernel SMB server (ksmbd.ko): __handle_ksmbd_work() in fs/smb/server/server.c and a new ksmbd_check_transform_session() in fs/smb/server/smb2pdu.c; the encrypted-request path only |
| Affected versions | mainline 5.15 up to 7.4-rc1 (from commit e2f34481, “cifsd: add server-side procedures for SMB3”, the server’s first merge); 5.15.x below 5.15.226, 6.1.x below 6.1.193, 6.6.x below 6.6.163, 6.12.x below 6.12.117, 6.18.x below 6.18.61, 7.3.x below 7.3.2. Kernels before 5.15 have no ksmbd |
| Fixed in | mainline 7.4-rc1 (commit 798214e6, the one Debian and Ubuntu cite) and stable 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2; seven fix commits in the record. The fix reads the transform header’s SessionId before decryption and, after it, checks the decrypted header and every operation in a compound chain against it, aborting the connection on a mismatch; 71 lines added in three files |
| Severity | Red Hat Important, CVSS 3.1 7.5 (AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H), CWE-358 (improperly implemented security check), score marked draft; Ubuntu High, CVSS 4.0 7.7 (AC:L/AT:P); SUSE Moderate, 6.8 (A:N); the kernel CNA gives no score and NVD is Received with no score, CWE or CPE. The vendors differ on attack complexity and on whether availability is in play |
| Exploited in the wild | Not on the CISA KEV catalogue (2026.11.30). EPSS 0.00213 (12th percentile) on 1 December 2026 |
| Who is exposed | Hosts running ksmbd with encryption in use (smb3 encryption = yes in ksmbd.conf, or clients that request it) on which more than one session can exist on one TCP connection, which is what a multi-user client does when several users on it map the same server. The attacker is an authenticated user of the server (PR:L) who shares a connection with the victim’s session. Red Hat’s statement: it “requires valid credentials and an existing multi-session SMB connection”, and “the in-kernel ksmbd server is not enabled by default in Red Hat Enterprise Linux”, which ships userspace Samba; Red Hat marks every RHEL release not affected on that basis. Samba’s smbd is a different implementation and not in this record |
| Published | CVE record 19 November 2026 (kernel CNA, updated 23 November with the stable backports); this page built 1 December 2026, last updated 1 December 2026 |
What it is
SMB 3 encryption replaces signing: an encrypted message carries an AEAD tag computed with the session’s key, and a server that verifies the tag knows the sender holds that key. ksmbd did the first half. It read the SessionId from the transform header, looked up that session’s key, decrypted and verified the tag, and then handed the inner SMB2 message to the ordinary dispatch path, which read the SessionId from the inner header, as it does for every request, and ran the operation under that session. On a connection with one session the two are the same number. On a connection with two, as the record says, a client holding session A’s key can encrypt a request whose inner header names session B; the tag verifies against A, the request runs as B, and because encrypted requests are exempt from signing there is nothing else that would have caught it.
MS-SMB2 is explicit that a server must compare the two and treat a mismatch as a protocol error. The fix on GitHub, by Dairui Zhang and committed by Namjae Jeon, adds that check in __handle_ksmbd_work() after decryption and before dispatch, as a new ksmbd_check_transform_session(): the decrypted message must hold at least one fixed SMB2 header; the first operation must not set SMB2_FLAGS_RELATED_OPERATIONS and its SessionId must equal the transform header’s; every following non-related operation in a compound chain must carry the same SessionId; and each NextCommand offset must be 8-byte aligned and inside the message, with the bounds check “done by subtraction so it cannot wrap”. A failure aborts the connection. When the decrypted payload is a compression transform, decompression runs first and the decompressed message is checked, since a compression transform header has no SessionId of its own.
The precondition is the thing to weigh. Two sessions on one connection is normal when a Windows client with two logged-on users maps the same share, or when a service and an interactive user on one client both connect; it is not the shape of a single-user workstation or a NAS client. Where it holds, the attacker needs only an ordinary account on the server and the victim’s session has to be alive on the same connection at the time, which is Ubuntu’s AT:P and Red Hat’s AC:H. git.kernel.org and lore.kernel.org refused our reader, so the backports are described from the record and the mainline commit from its GitHub mirror.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. ksmbd arrived in 5.15, so a 5.10 or 5.4 kernel is out of range, and a distribution that does not build it (Red Hat) is not affected whatever its version.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Not consulted for this page | — |
| Debian | Fixed in trixie (6.12.117-1), trixie-security (6.12.118-1), forky and sid (7.3.6-1) and in bookworm’s linux-6.12 backport (6.12.118-1~deb12u1); bookworm’s own 6.1 kernel (6.1.192-3) vulnerable; no DSA | trixie 6.12.117-1; unstable 7.3.3-1; bookworm linux-6.12 backport; nothing for bookworm’s 6.1 on 1 December 2026 |
| Ubuntu | High, CVSS 4.0 7.7; linux needed in 24.04 LTS and 22.04 LTS, pending in 26.10 (7.3.0-12.13) and 26.04 LTS (7.0.0-45.45); 20.04 and older not affected (no ksmbd); cloud, raspi and FIPS kernels on 22.04 and later vulnerable; no USN | nothing released on 1 December 2026 |
| RHEL, Rocky, Alma, CentOS Stream | Important, 7.5, CWE-358 (bug 2576916, “ksmbd: privilege escalation via session ID mismatch in encrypted SMB requests”); every RHEL release and OpenShift image not affected: ksmbd is not enabled in RHEL kernels | not applicable |
| openSUSE/SLE | Moderate, 6.8, state Pending, bug 1291787; released for openSUSE Tumbleweed; affected on SLE 15 SP7, 16.0, 16.1, SL Micro 6.x, Leap 16.x and 15 SP6 LTSS; 15 SP5 and older, 12 SP5 and SLE Micro 5.x not affected | Tumbleweed 7.3.6-2.1; nothing for SLE on 1 December 2026 |
| Fedora, Arch; self-built kernels | Not consulted; upstream stable versions apply | 5.15.226 / 6.1.193 / 6.6.163 / 6.12.117 / 6.18.61 / 7.3.2 or later |
How to check
Three questions, in order: which kernel is running, is ksmbd serving at all, and is encryption in use with clients that bind several sessions per connection. The second is the one most hosts answer no to; Samba’s smbd on port 445 is not ksmbd.
# 1. the running kernel (compare with the fixed stable version for its series)
uname -r
# 2. is the in-kernel SMB server running at all
systemctl is-active ksmbd 2>/dev/null
lsmod | grep -E '^ksmbd'
ss -ltnp | grep -E ':445\b'
# 3. the precondition: encryption on, and more than one session on a connection
grep -nEi 'smb3 encryption|smb2 max credits' /etc/ksmbd/ksmbd.conf 2>/dev/null
ksmbd.control -d all 2>/dev/null; dmesg | grep -iE 'ksmbd.*(sess|encrypt)' | tail
# sessions per client address right now (two or more lines from one address is the shape that matters)
ss -tnp state established '( sport = :445 )' | awk 'NR>1 {print $5}' | sed 's/:[0-9]*$//' | sort | uniq -cA kernel at or above the fixed stable version for its series is done. A host with no ksmbd module and nothing but smbd on 445 is not in the path; so is a Red Hat host, whose kernels do not build the module. A ksmbd server without encryption never sees a transform header, so the comparison never arises, though an unencrypted session has the opposite problem of its own. A ksmbd server with encryption on and clients from which several users connect is the record’s case; the session count per address above is a rough proxy for that, since the server does not expose sessions per connection directly. There is no log line for a misattributed request: the whole point is that it looks like a valid one from the other session.
How to fix it
Install the fixed kernel and reboot; ksmbd is a kernel module and a systemctl restart ksmbd alone reloads the userspace daemon, not the server code. Debian trixie, bookworm’s 6.12 backport and Tumbleweed had the fix out on 1 December; Ubuntu and SUSE’s enterprise kernels were pending, and Red Hat is not affected.
# Debian trixie / forky / sid, and bookworm on the linux-6.12 backport
apt update && apt install linux-image-amd64 && systemctl reboot # or linux-image-arm64
# Ubuntu, SUSE: when the pending builds land
apt update && apt full-upgrade && systemctl reboot
zypper patch && systemctl reboot
uname -r# Until then, on a server whose clients are multi-user: stop ksmbd and serve the shares with Samba's smbd,
# which has its own implementation of the transform-header check and is not in this record
systemctl disable --now ksmbd
# or keep ksmbd but refuse the connection shape the bug needs: one user per client, enforced at the client
# (there is no ksmbd.conf option that limits sessions per connection; turning encryption OFF is not a mitigation)What not to do: do not turn off smb3 encryption to avoid the bug. An unencrypted session is signed instead, and signing is checked per session, so the mismatch cannot occur there, but the trade is confidentiality on the wire for every user of the share, and clients that require encryption will refuse to connect. Do not read Red Hat’s “not affected” as a statement about the bug: it is a statement that RHEL does not ship the module. And do not treat Ubuntu’s High and SUSE’s Moderate as a disagreement about what happens; they differ on how often two sessions share a connection on the hosts they ship to.
Sources
- CVE-2026-99531 at CVE.org — the kernel CNA record (19 November 2026, updated 23 November): the commit message with the “checked against the wrong session” sentence and the MS-SMB2 requirement, the git and version ranges,
fs/smb/server/server.c, fs/smb/server/smb2pdu.c, fs/smb/server/smb2pdu.h - Fix commits on git.kernel.org: 798214e6 (mainline, 7.4-rc1) and the backports aff28f0f, 1ab45284, 62af7b11, b150049d, 7f30b886, 8c5f62dd; git.kernel.org refuses automated readers, so the mainline commit was read on GitHub: Dairui Zhang, committed by Namjae Jeon, the
Fixes: e2f34481tag, the transform SessionId read before decryption andksmbd_check_transform_session()with its compound-chain walk - NVD entry — Received on 19 November 2026; no NVD score, CWE or CPE on 1 December
- Distribution trackers: Debian (trixie 6.12.117-1 fixed, bookworm’s 6.12 backport fixed, bookworm 6.1 vulnerable) · Ubuntu (High, 7.7; needed in 24.04 and 22.04, 26.x pending) · Red Hat (Important 7.5, CWE-358, every RHEL release not affected (no ksmbd); bug 2576916) · SUSE (Moderate 6.8, Tumbleweed 7.3.6-2.1; bug 1291787)
- CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00213 (percentile 0.124) on 1 December 2026
Related reading
- CVE-2026-99536: Linux kernel ksmbd lets a failed multichannel binding leave another session on a compound request — the same server, the same class of session confusion, rated the week before
- CVE-2026-99565: Linux kernel ksmbd handles an SMB1 request with SMB2 code — the same week’s ksmbd set, unauthenticated
- CVE-2026-99748: Linux kernel ksmbd keeps a user’s credentials on a worker after a failed reconnect — the same set, another way one user’s request runs as another
- CVE-2026-99324: Linux kernel ksmbd reads past its response buffer when padding a compound — the compound-chain walk this fix also bounds
- CVE-2026-99357: Linux kernel NFS server replays a deferred RPCSEC_GSS call from the wrong offset — the other kernel file server, a forged call under another user’s context
- The Kernel — module autoload, why an unused subsystem is still an attack surface, and how
install … /bin/falsediffers fromblacklist
This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.
