{"id":"CVE-2026-99531","summary":"ksmbd: verify transform SessionId matches the decrypted header","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: verify transform SessionId matches the decrypted header\n\nWhen an encrypted request comes in, the decryption key is picked by\nthe SessionId in the transform header, but the request is then\nauthorized under whatever session the decrypted inner header names.\nNothing ever compares the two, so on a connection with more than\none session a client can get a request decrypted with one session's\nkey and run it as another session. Encrypted requests are exempt\nfrom signing too, so a valid AEAD tag is the only proof of session\nidentity, and it is checked against the wrong session.\n\nMS-SMB2 says the server must check that the transform SessionId\nmatches the one in the decrypted SMB2 header and treat a mismatch\nas a protocol error. Add that check in __handle_ksmbd_work() after\ndecryption, before dispatching: the message has to be at least one\nfixed SMB2 header, the first operation must not set\nSMB2_FLAGS_RELATED_OPERATIONS and its SessionId must match the\ntransform SessionId, and every following non-related operation in\na compound chain must carry the same SessionId. NextCommand\noffsets must be 8-byte aligned and stay inside the message; the\nbounds check is done by subtraction so it cannot wrap.\n\nWhen the decrypted payload is a compression transform, the\nexisting decompression step runs first and the decompressed SMB2\nmessage is checked instead, since a compression transform header\ncarries no SessionId.","modified":"2026-11-19T17:01:26.942582959Z","published":"2026-11-19T14:44:42.467Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99531.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/798214e6fafcdcc29f5ba2661a473232b5e70cfb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7f30b886c5a1a2b3d9342ea82d0699eff812a472"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8c5f62dd9a0b61e0082d419796e0743e820bd002"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b150049dffd0865fb6e60ce843299216687f02ad"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99531.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99531"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9"},{"fixed":"b150049dffd0865fb6e60ce843299216687f02ad"},{"fixed":"7f30b886c5a1a2b3d9342ea82d0699eff812a472"},{"fixed":"8c5f62dd9a0b61e0082d419796e0743e820bd002"},{"fixed":"798214e6fafcdcc29f5ba2661a473232b5e70cfb"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99531.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.61"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99531.json"}}],"schema_version":"1.9.2"}