← VULNERABILITIES

CVE-2026-99531

ksmbd: verify transform SessionId matches the decrypted header

UnscoredFix available
CVSS
—
EPSS
0.21% (p12)
Published
2026-11-19
Age
15d old
Modified
2026-11-23
Product
Linux Linux

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.

Fixed in

1ab4528483a8307787ad66457045ebfb7c652d16 · 6.12.117 · 6.18.61 · 62af7b1179fb0155ecda158b6e02e145d1abdc99 · 7.3.2 · 798214e6fafcdcc29f5ba2661a473232b5e70cfb · 7f30b886c5a1a2b3d9342ea82d0699eff812a472 · 8c5f62dd9a0b61e0082d419796e0743e820bd002 · aff28f0f92ab3f9809ccab5075724ab54809378f · b150049dffd0865fb6e60ce843299216687f02ad

Affected packages

EcosystemPackageRangeFixed
LinuxKernel>=5.15.0, <6.12.1176.12.117
LinuxKernel>=6.13.0, <6.18.616.18.61
LinuxKernel>=6.19.0, <7.3.27.3.2
vendorLinux>=e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, <1ab4528483a8307787ad66457045ebfb7c652d161ab4528483a8307787ad66457045ebfb7c652d16
vendorLinux>=e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, <62af7b1179fb0155ecda158b6e02e145d1abdc9962af7b1179fb0155ecda158b6e02e145d1abdc99
vendorLinux>=e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, <798214e6fafcdcc29f5ba2661a473232b5e70cfb798214e6fafcdcc29f5ba2661a473232b5e70cfb
vendorLinux>=e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, <7f30b886c5a1a2b3d9342ea82d0699eff812a4727f30b886c5a1a2b3d9342ea82d0699eff812a472
vendorLinux>=e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, <8c5f62dd9a0b61e0082d419796e0743e820bd0028c5f62dd9a0b61e0082d419796e0743e820bd002
vendorLinux>=e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, <aff28f0f92ab3f9809ccab5075724ab54809378faff28f0f92ab3f9809ccab5075724ab54809378f
vendorLinux>=e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, <b150049dffd0865fb6e60ce843299216687f02adb150049dffd0865fb6e60ce843299216687f02ad

Sources

  • NVD · first seen 15d ago · NVD terms of use
  • OSV · first seen 15d ago · CC-BY 4.0
  • CVE List · first seen 15d ago · CVE Terms of Use

References

JSON