CVE-2026-99531
ksmbd: verify transform SessionId matches the decrypted header
Check your servers for CVE-2026-99531
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-99531 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:
ksmbd: verify transform SessionId matches the decrypted header
When an encrypted request comes in, 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.
MS-SMB2 says the server must check that the transform SessionId matches the one in the decrypted SMB2 header and treat a mismatch as a protocol error. Add that check in __handle_ksmbd_work() after decryption, before dispatching: the message has to be at least one fixed SMB2 header, the first operation must not set SMB2_FLAGS_RELATED_OPERATIONS and its SessionId must match the transform SessionId, and every following non-related operation in a compound chain must carry the same SessionId. NextCommand offsets must be 8-byte aligned and stay inside the message; the bounds check is done by subtraction so it cannot wrap.
When the decrypted payload is a compression transform, the existing decompression step runs first and the decompressed SMB2 message is checked instead, since a compression transform header carries no SessionId.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before aff28f0f92ab3f9809ccab5075724ab54809378f affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 1ab4528483a8307787ad66457045ebfb7c652d16 affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 62af7b1179fb0155ecda158b6e02e145d1abdc99 affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before b150049dffd0865fb6e60ce843299216687f02ad affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 7f30b886c5a1a2b3d9342ea82d0699eff812a472 affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 8c5f62dd9a0b61e0082d419796e0743e820bd002 affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 798214e6fafcdcc29f5ba2661a473232b5e70cfb
Other versions: unaffected
|
| Linux |
affected 5.15 unaffected before 5.15 unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.117 up to and including 6.12.* unaffected from 6.18.61 up to and including 6.18.* unaffected from 7.3.2 up to and including 7.3.* unaffected 7.4-rc1 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-99531 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99531
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-99531
trivy image --scanners vuln IMAGE | grep CVE-2026-99531
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/aff28f0f92ab3f9809ccab5075724ab54809378f git.kernel.org
- https://git.kernel.org/stable/c/1ab4528483a8307787ad66457045ebfb7c652d16 git.kernel.org
- https://git.kernel.org/stable/c/62af7b1179fb0155ecda158b6e02e145d1abdc99 git.kernel.org
- https://git.kernel.org/stable/c/b150049dffd0865fb6e60ce843299216687f02ad git.kernel.org
- https://git.kernel.org/stable/c/7f30b886c5a1a2b3d9342ea82d0699eff812a472 git.kernel.org
- https://git.kernel.org/stable/c/8c5f62dd9a0b61e0082d419796e0743e820bd002 git.kernel.org
- https://git.kernel.org/stable/c/798214e6fafcdcc29f5ba2661a473232b5e70cfb git.kernel.org
Source: the record CVE-2026-99531 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