CVE-2026-89794: ksmbd: zero pipe read compound padding
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: zero pipe read compound padding
Compound response handling extends the last response iov to an eight-byte boundary.
smb2_read_pipe() allocates only the payload size, so the alignment padding can expose up to seven bytes of uninitialized kernel heap memory.
Allocate the aligned size and clear the unused tail before pinning the response buffer.
The Linux kernel CVE team has assigned CVE-2026-89794 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.6 with commit e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d and fixed in 6.12.110 with commit f188a400dd5285fec5a84548fe8dca49eee01155 Issue introduced in 6.6 with commit e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d and fixed in 6.18.51 with commit d83a9de7cecd401c3d3e00ed6371194dcd7313e4 Issue introduced in 6.6 with commit e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d and fixed in 7.2.5 with commit be15b8da4a82cf1e1f9880b2661b90770606eec1 Issue introduced in 6.6 with commit e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d and fixed in 7.3-rc2 with commit 73f860489e3be2245598d1819226304fc5b87291 Issue introduced in 5.15.145 with commit f2283680a80571ca82d710bc6ecd8f8beac67d63 Issue introduced in 6.1.71 with commit 9f297df20d93411c0b4ddad7f88ba04a7cd36e77
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-89794
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/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/f188a400dd5285fec5a84548fe8dca49eee01155 https://git.kernel.org/stable/c/d83a9de7cecd401c3d3e00ed6371194dcd7313e4 https://git.kernel.org/stable/c/be15b8da4a82cf1e1f9880b2661b90770606eec1 https://git.kernel.org/stable/c/73f860489e3be2245598d1819226304fc5b87291