Linux kernel data exposure in SMB client POSIX lock responses
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| 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: bound POSIX lock data area by response length
CIFSSMBPosixLock() receives a TRANS2 response whose server-provided DataOffset and DataCount are not required by validate_t2() to describe an interval inside the response. A server can therefore make the client read a cifs_posix_lock beyond the response buffer and return those kernel bytes through F_GETLK.
Use smbCalcSize() to obtain the full response length after any multipart TRANS2 reassembly, then reject data areas that extend past it before dereferencing them.
From the CVE record · Linux
The Linux kernel SMB client does not ensure that a server-provided POSIX lock data area lies within a TRANS2 response. A server can cause the client to read kernel bytes beyond the response buffer and return them through F_GETLK when that operation is used.
Engineers running Linux kernels with the affected SMB client should check their kernel's status; affected versions were not specified.