Commit 815f116
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 2d89dab commit 815f116
1 file changed
+9
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8517 | 8517 | | |
8518 | 8518 | | |
8519 | 8519 | | |
8520 | | - | |
8521 | | - | |
8522 | | - | |
8523 | | - | |
8524 | | - | |
8525 | 8520 | | |
8526 | 8521 | | |
8527 | 8522 | | |
8528 | 8523 | | |
8529 | 8524 | | |
8530 | 8525 | | |
8531 | 8526 | | |
8532 | | - | |
8533 | | - | |
8534 | | - | |
| 8527 | + | |
8535 | 8528 | | |
| 8529 | + | |
| 8530 | + | |
| 8531 | + | |
8536 | 8532 | | |
8537 | 8533 | | |
8538 | | - | |
8539 | 8534 | | |
8540 | 8535 | | |
8541 | | - | |
8542 | 8536 | | |
8543 | 8537 | | |
8544 | 8538 | | |
| |||
8668 | 8662 | | |
8669 | 8663 | | |
8670 | 8664 | | |
8671 | | - | |
8672 | | - | |
8673 | | - | |
8674 | | - | |
8675 | | - | |
8676 | 8665 | | |
8677 | 8666 | | |
8678 | 8667 | | |
| |||
8681 | 8670 | | |
8682 | 8671 | | |
8683 | 8672 | | |
8684 | | - | |
8685 | | - | |
8686 | | - | |
| 8673 | + | |
8687 | 8674 | | |
| 8675 | + | |
| 8676 | + | |
| 8677 | + | |
| 8678 | + | |
8688 | 8679 | | |
8689 | 8680 | | |
8690 | 8681 | | |
8691 | | - | |
8692 | 8682 | | |
8693 | | - | |
8694 | 8683 | | |
8695 | 8684 | | |
8696 | 8685 | | |
| |||
0 commit comments