Commit d614cfe
committed
SMB3: Do not send lease break acknowledgment if all file handles have been closed
jira VULN-131073
cve-pre CVE-2025-38527
commit-author Bharath SM <[email protected]>
commit da787d5
upstream-diff Applied to fs/cifs/file.c since it hasn't been
moved to fs/smb/client/file.c in this kernel
In case if all existing file handles are deferred handles and if all of
them gets closed due to handle lease break then we dont need to send
lease break acknowledgment to server, because last handle close will be
considered as lease break ack.
After closing deferred handels, we check for openfile list of inode,
if its empty then we skip sending lease break ack.
Fixes: 59a556a ("SMB3: drop reference to cfile before sending oplock break")
Reviewed-by: Tom Talpey <[email protected]>
Signed-off-by: Bharath SM <[email protected]>
Signed-off-by: Steve French <[email protected]>
(cherry picked from commit da787d5)
Signed-off-by: Brett Mastbergen <[email protected]>1 parent 4421d36 commit d614cfe
1 file changed
+12
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5106 | 5106 | | |
5107 | 5107 | | |
5108 | 5108 | | |
5109 | | - | |
5110 | | - | |
5111 | | - | |
5112 | | - | |
| 5109 | + | |
| 5110 | + | |
| 5111 | + | |
5113 | 5112 | | |
5114 | | - | |
5115 | | - | |
5116 | | - | |
5117 | | - | |
5118 | | - | |
5119 | | - | |
5120 | | - | |
5121 | | - | |
5122 | | - | |
| 5113 | + | |
| 5114 | + | |
| 5115 | + | |
| 5116 | + | |
| 5117 | + | |
| 5118 | + | |
| 5119 | + | |
| 5120 | + | |
| 5121 | + | |
5123 | 5122 | | |
5124 | 5123 | | |
5125 | 5124 | | |
| |||
0 commit comments