CVE-2026-31693: cifs: some missing initializations on replay
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
cifs: some missing initializations on replay
In several places in the code, we have a label to signify the start of the code where a request can be replayed if necessary. However, some of these places were missing the necessary reinitializations of certain local variables before replay.
This change makes sure that these variables get initialized after the label.
The Linux kernel CVE team has assigned CVE-2026-31693 to this issue.
Affected and fixed versions
===========================
Fixed in 6.6.128 with commit c854ab481ece4b3e5f4c2e8b22824f015ff874a5 Fixed in 6.12.75 with commit 1d731e512134495e0ef490ade0e4d91dc0d515ec Fixed in 6.18.16 with commit 7c9ce68192eef14c777cb6ce17155d2eb2431aea Fixed in 6.19.6 with commit c99e160938b627f6f28edee930e8abc157e84386 Fixed in 7.0 with commit 14f66f44646333d2bfd7ece36585874fd72f8286
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-31693
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/client/smb2ops.c
fs/smb/client/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/c854ab481ece4b3e5f4c2e8b22824f015ff874a5 https://git.kernel.org/stable/c/1d731e512134495e0ef490ade0e4d91dc0d515ec https://git.kernel.org/stable/c/7c9ce68192eef14c777cb6ce17155d2eb2431aea https://git.kernel.org/stable/c/c99e160938b627f6f28edee930e8abc157e84386 https://git.kernel.org/stable/c/14f66f44646333d2bfd7ece36585874fd72f8286