HIGH Introduced in 2.6.12
smb Rlist Race
CVE-2026-98174
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
KernelScan AI7.9HIGH
01Description
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.
02KernelScan AI Analysis
Risk summary
A race condition and missing list initialization in the CIFS/SMB client's reconnect path can corrupt linked-list structures or dereference NULL pointers, leading to kernel crashes or potential memory corruption. Any system with active SMB/CIFS mounts is at risk; a local user performing I/O on such mounts can trigger reconnects, and a malicious SMB server could also induce them by dropping connections.
Vulnerability analysis
The SMB client's reconnect handling contains two flaws. First, a list node inside each server structure is zeroed out during allocation instead of being set up to point to itself, so any list operation on it reads or writes through a null pointer and crashes the kernel. Second, several kernel threads that service CIFS traffic can simultaneously start a reconnect for the same server, causing the same node to be linked into a temporary list twice and corrupting the list and nearby memory. The fix properly initializes the node when the server structure is created, ignores servers that are already queued for reconnect, and protects the list cleanup with locking so parallel callers cannot interfere. Any system with an active SMB mount is affected: a local user accessing the mount can trigger a reconnect, and a malicious or compromised remote SMB server can force one by dropping the connection.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.1 | 2.6.12 | 6.1.193 | 0d176a4a7f64 |
| 6.12 | 2.6.12 | 6.12.112 | 5a8f82f9c583 |
| 6.18 | 2.6.12 | 6.18.54 | 04082b183385 |
| 6.6 | 2.6.12 | 6.6.158 | b5f924ffbfa9 |
| 7.2 | 2.6.12 | 7.2.8 | c037d6bde3dd |
| mainline | 2.6.12 | 7.3 | 5f270f091256 |
| cip/6.12 | 2.6.12 | 6.12.112-cip33 | 5a8f82f9c583 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip137) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip137-rt51) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip116) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |