# CVE-2026-99531: ksmbd: verify transform SessionId matches the decrypted header

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 7, 2026-11-28)
- **Published:** 2026-11-19T14:44:42.467Z
- **Modified:** 2026-11-23T08:17:55.150Z

## Who should check

- Anyone running Linux \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< aff28f0f92ab3f9809ccab5075724ab54809378f; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 1ab4528483a8307787ad66457045ebfb7c652d16; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 62af7b1179fb0155ecda158b6e02e145d1abdc99; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< b150049dffd0865fb6e60ce843299216687f02ad; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 7f30b886c5a1a2b3d9342ea82d0699eff812a472; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 8c5f62dd9a0b61e0082d419796e0743e820bd002; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 798214e6fafcdcc29f5ba2661a473232b5e70cfb
- Anyone running Linux 5.15

## 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.

## Affected and fixed versions

- Linux: \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< aff28f0f92ab3f9809ccab5075724ab54809378f; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 1ab4528483a8307787ad66457045ebfb7c652d16; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 62af7b1179fb0155ecda158b6e02e145d1abdc99; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< b150049dffd0865fb6e60ce843299216687f02ad; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 7f30b886c5a1a2b3d9342ea82d0699eff812a472; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 8c5f62dd9a0b61e0082d419796e0743e820bd002; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 798214e6fafcdcc29f5ba2661a473232b5e70cfb (cvelist)
- Linux: 5.15 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 798214e6fafcdcc29f5ba2661a473232b5e70cfb or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99531. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99531.md
Affected: Linux >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < aff28f0f92ab3f9809ccab5075724ab54809378f; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 1ab4528483a8307787ad66457045ebfb7c652d16; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 62af7b1179fb0155ecda158b6e02e145d1abdc99; >= e2f34481b24db2fd634b5ed…
Fixed in: Linux 1ab4528483a8307787ad66457045ebfb7c652d16, Linux 62af7b1179fb0155ecda158b6e02e145d1abdc99, Linux 7f30b886c5a1a2b3d9342ea82d0699eff812a472, Linux 8c5f62dd9a0b61e0082d419796e0743e820bd002, Linux 798214e6fafcdcc29f5ba2661a473232b5e70cfb

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99531 being exploited?

There is no confirmed exploitation: CVE-2026-99531 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99531?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99531?

Linux \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< aff28f0f92ab3f9809ccab5075724ab54809378f; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 1ab4528483a8307787ad66457045ebfb7c652d16; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 62af7b1179fb0155ecda158b6e02e145d1abdc99; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< b150049dffd0865fb6e60ce843299216687f02ad; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 7f30b886c5a1a2b3d9342ea82d0699eff812a472; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 8c5f62dd9a0b61e0082d419796e0743e820bd002; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 798214e6fafcdcc29f5ba2661a473232b5e70cfb; Linux 5.15.

### Is there a fix for CVE-2026-99531?

Yes. Fixed in Linux 1ab4528483a8307787ad66457045ebfb7c652d16, Linux 62af7b1179fb0155ecda158b6e02e145d1abdc99, Linux 7f30b886c5a1a2b3d9342ea82d0699eff812a472, Linux 8c5f62dd9a0b61e0082d419796e0743e820bd002, Linux 798214e6fafcdcc29f5ba2661a473232b5e70cfb. Upgrade Linux to 798214e6fafcdcc29f5ba2661a473232b5e70cfb or later.

### How do I check if I'm affected by CVE-2026-99531?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/aff28f0f92ab3f9809ccab5075724ab54809378f>
- other: <https://git.kernel.org/stable/c/1ab4528483a8307787ad66457045ebfb7c652d16>
- other: <https://git.kernel.org/stable/c/62af7b1179fb0155ecda158b6e02e145d1abdc99>
- other: <https://git.kernel.org/stable/c/b150049dffd0865fb6e60ce843299216687f02ad>
- other: <https://git.kernel.org/stable/c/7f30b886c5a1a2b3d9342ea82d0699eff812a472>
- other: <https://git.kernel.org/stable/c/8c5f62dd9a0b61e0082d419796e0743e820bd002>
- other: <https://git.kernel.org/stable/c/798214e6fafcdcc29f5ba2661a473232b5e70cfb>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99531>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99531> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99531>
