smb: client: fix wrong index reference in smb2_compound_op()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
smb: client: fix wrong index reference in smb2_compound_op()
In smb2_compound_op(), the loop that processes each command's response uses wrong indices when accessing response bufferes.
This incorrect indexing leads to improper handling of command results. Also, if incorrectly computed index is greather than or equal to MAX_COMPOUND, it can cause out-of-bounds accesses.
From the CVE record · Linux
The Linux kernel SMB client uses incorrect indices when processing command responses in smb2_compound_op(). This can mishandle command results and may cause out-of-bounds access when a computed index reaches or exceeds MAX_COMPOUND. The input does not specify how an attacker could trigger this or whether authentication or user interaction is required.
Engineers running Linux kernels with the SMB client should check their versions; affected versions were not provided.