Commit 50f930d
ksmbd: fix potential use-after-free in oplock/lease break ack
If ksmbd_iov_pin_rsp return error, use-after-free can happen by
accessing opinfo->state and opinfo_put and ksmbd_fd_put could
called twice.
Reported-by: Ziyan Xu <research@securitygossip.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent 277627b commit 50f930d
1 file changed
+9
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8573 | 8573 | | |
8574 | 8574 | | |
8575 | 8575 | | |
8576 | | - | |
8577 | | - | |
8578 | | - | |
8579 | | - | |
8580 | | - | |
8581 | 8576 | | |
8582 | 8577 | | |
8583 | 8578 | | |
8584 | 8579 | | |
8585 | 8580 | | |
8586 | 8581 | | |
8587 | 8582 | | |
8588 | | - | |
8589 | | - | |
8590 | | - | |
| 8583 | + | |
8591 | 8584 | | |
| 8585 | + | |
| 8586 | + | |
| 8587 | + | |
8592 | 8588 | | |
8593 | 8589 | | |
8594 | | - | |
8595 | 8590 | | |
8596 | 8591 | | |
8597 | | - | |
8598 | 8592 | | |
8599 | 8593 | | |
8600 | 8594 | | |
| |||
8724 | 8718 | | |
8725 | 8719 | | |
8726 | 8720 | | |
8727 | | - | |
8728 | | - | |
8729 | | - | |
8730 | | - | |
8731 | | - | |
8732 | 8721 | | |
8733 | 8722 | | |
8734 | 8723 | | |
| |||
8737 | 8726 | | |
8738 | 8727 | | |
8739 | 8728 | | |
8740 | | - | |
8741 | | - | |
8742 | | - | |
| 8729 | + | |
8743 | 8730 | | |
| 8731 | + | |
| 8732 | + | |
| 8733 | + | |
| 8734 | + | |
8744 | 8735 | | |
8745 | 8736 | | |
8746 | 8737 | | |
8747 | | - | |
8748 | 8738 | | |
8749 | | - | |
8750 | 8739 | | |
8751 | 8740 | | |
8752 | 8741 | | |
| |||
0 commit comments