CVE-2026-23364: ksmbd: Compare MACs in constant time
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: Compare MACs in constant time
To prevent timing attacks, MAC comparisons need to be constant-time. Replace the memcmp() with the correct function, crypto_memneq().
The Linux kernel CVE team has assigned CVE-2026-23364 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.1.167 with commit cd52a0e309659537048a864211abc3ea4c5caa63 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.6.130 with commit 307afccb751f542246bd5dc68a2c1ffe1a78418c Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.12.78 with commit 2cdc56ed67615ba0921383a688f24415ebe065f3 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.18.19 with commit 93c0a22fec914ec4b697e464895a0f594e29fb28 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.19.7 with commit f4588b85efd6007d46b80aa1b9fb746628ffb3dc Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.0-rc2 with commit c5794709bc9105935dbedef8b9cf9c06f2b559fa
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-23364
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/smb/server/Kconfig
fs/smb/server/auth.c
fs/smb/server/smb2pdu.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/cd52a0e309659537048a864211abc3ea4c5caa63 https://git.kernel.org/stable/c/307afccb751f542246bd5dc68a2c1ffe1a78418c https://git.kernel.org/stable/c/2cdc56ed67615ba0921383a688f24415ebe065f3 https://git.kernel.org/stable/c/93c0a22fec914ec4b697e464895a0f594e29fb28 https://git.kernel.org/stable/c/f4588b85efd6007d46b80aa1b9fb746628ffb3dc https://git.kernel.org/stable/c/c5794709bc9105935dbedef8b9cf9c06f2b559fa