Commit 601cd8f
committed
cifs: fix race in assemble_neg_contexts()
jira VULN-169227
cve CVE-2023-53751
commit-author Paulo Alcantara <pc@cjr.nz>
commit 775e44d
upstream-diff Ignored the introduction of `pserver' variable, as well as
the usage of `hostname' local, as they were only needed in the upstream
because of the dual source of the server hostname, introduced in the
non-backported commit 9de7499 ("smb3:
use netname when available on secondary channels")
Serialise access of TCP_Server_Info::hostname in
assemble_neg_contexts() by holding the server's mutex otherwise it
might end up accessing an already-freed hostname pointer from
cifs_reconnect() or cifs_resolve_server().
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
(cherry picked from commit 775e44d)
Signed-off-by: Marcin Wcisło <marcin.wcislo@conclusive.pl>1 parent c746f8a commit 601cd8f
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
| 552 | + | |
552 | 553 | | |
553 | 554 | | |
| 555 | + | |
554 | 556 | | |
555 | 557 | | |
556 | 558 | | |
| |||
0 commit comments