Commit 7d7c0c5
ksmbd: fix Preauh_HashValue race condition
commit 44a3059 upstream.
If client send multiple session setup requests to ksmbd,
Preauh_HashValue race condition could happen.
There is no need to free sess->Preauh_HashValue at session setup phase.
It can be freed together with session at connection termination phase.
Cc: stable@vger.kernel.org
Reported-by: zdi-disclosures@trendmicro.com # ZDI-CAN-27661
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 015ef16 commit 7d7c0c5
1 file changed
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1847 | 1847 | | |
1848 | 1848 | | |
1849 | 1849 | | |
1850 | | - | |
1851 | | - | |
1852 | 1850 | | |
1853 | 1851 | | |
1854 | 1852 | | |
| |||
1875 | 1873 | | |
1876 | 1874 | | |
1877 | 1875 | | |
1878 | | - | |
1879 | | - | |
1880 | 1876 | | |
1881 | 1877 | | |
1882 | 1878 | | |
| |||
0 commit comments