CVE-2026-98174: smb: client: fix rlist race and missing initialization
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
smb: client: fix rlist race and missing initialization
TCP_Server_Info.rlist is allocated via kzalloc which zeros both ->next and ->prev to NULL instead of pointing to itself, making list_empty() always return false and list_add() dereference a NULL ->prev pointer.
Also, cifs_signal_cifsd_for_reconnect() can be called concurrently from multiple cifsd threads, allowing the same server's rlist node to be added twice into the local list, corrupting it.
The Linux kernel CVE team has assigned CVE-2026-98174 to this issue.
Affected and fixed versions
===========================
Fixed in 6.6.158 with commit b5f924ffbfa976e4b97f17e8132c595b97482c2d Fixed in 6.12.112 with commit 5a8f82f9c5839389cf4036029dd75a9911049e83 Fixed in 6.18.54 with commit 04082b1833856cb9ed87e0d3d5f04cbf836cf7da Fixed in 7.2.8 with commit c037d6bde3dd5fa00b017b6b98a5389ec0ebc02f Fixed in 7.3-rc4 with commit 5f270f091256da1338c3631083e15d7f83cc05e1
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-98174
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/connect.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/b5f924ffbfa976e4b97f17e8132c595b97482c2d https://git.kernel.org/stable/c/5a8f82f9c5839389cf4036029dd75a9911049e83 https://git.kernel.org/stable/c/04082b1833856cb9ed87e0d3d5f04cbf836cf7da https://git.kernel.org/stable/c/c037d6bde3dd5fa00b017b6b98a5389ec0ebc02f https://git.kernel.org/stable/c/5f270f091256da1338c3631083e15d7f83cc05e1