Commit 97c3559
ksmbd: fix potential use-after-free in oplock/lease break ack
commit 50f930d upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 8377d77 commit 97c3559
1 file changed
Lines changed: 9 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8503 | 8503 | | |
8504 | 8504 | | |
8505 | 8505 | | |
8506 | | - | |
8507 | | - | |
8508 | | - | |
8509 | | - | |
8510 | | - | |
8511 | 8506 | | |
8512 | 8507 | | |
8513 | 8508 | | |
8514 | 8509 | | |
8515 | 8510 | | |
8516 | 8511 | | |
8517 | 8512 | | |
8518 | | - | |
8519 | | - | |
8520 | | - | |
| 8513 | + | |
8521 | 8514 | | |
| 8515 | + | |
| 8516 | + | |
| 8517 | + | |
8522 | 8518 | | |
8523 | 8519 | | |
8524 | | - | |
8525 | 8520 | | |
8526 | 8521 | | |
8527 | | - | |
8528 | 8522 | | |
8529 | 8523 | | |
8530 | 8524 | | |
| |||
8654 | 8648 | | |
8655 | 8649 | | |
8656 | 8650 | | |
8657 | | - | |
8658 | | - | |
8659 | | - | |
8660 | | - | |
8661 | | - | |
8662 | 8651 | | |
8663 | 8652 | | |
8664 | 8653 | | |
| |||
8667 | 8656 | | |
8668 | 8657 | | |
8669 | 8658 | | |
8670 | | - | |
8671 | | - | |
8672 | | - | |
| 8659 | + | |
8673 | 8660 | | |
| 8661 | + | |
| 8662 | + | |
| 8663 | + | |
| 8664 | + | |
8674 | 8665 | | |
8675 | 8666 | | |
8676 | 8667 | | |
8677 | | - | |
8678 | 8668 | | |
8679 | | - | |
8680 | 8669 | | |
8681 | 8670 | | |
8682 | 8671 | | |
| |||
0 commit comments