Commit 8106adc
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 <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent d0195c4 commit 8106adc
1 file changed
Lines changed: 9 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8535 | 8535 | | |
8536 | 8536 | | |
8537 | 8537 | | |
8538 | | - | |
8539 | | - | |
8540 | | - | |
8541 | | - | |
8542 | | - | |
8543 | 8538 | | |
8544 | 8539 | | |
8545 | 8540 | | |
8546 | 8541 | | |
8547 | 8542 | | |
8548 | 8543 | | |
8549 | 8544 | | |
8550 | | - | |
8551 | | - | |
8552 | | - | |
| 8545 | + | |
8553 | 8546 | | |
| 8547 | + | |
| 8548 | + | |
| 8549 | + | |
8554 | 8550 | | |
8555 | 8551 | | |
8556 | | - | |
8557 | 8552 | | |
8558 | 8553 | | |
8559 | | - | |
8560 | 8554 | | |
8561 | 8555 | | |
8562 | 8556 | | |
| |||
8686 | 8680 | | |
8687 | 8681 | | |
8688 | 8682 | | |
8689 | | - | |
8690 | | - | |
8691 | | - | |
8692 | | - | |
8693 | | - | |
8694 | 8683 | | |
8695 | 8684 | | |
8696 | 8685 | | |
| |||
8699 | 8688 | | |
8700 | 8689 | | |
8701 | 8690 | | |
8702 | | - | |
8703 | | - | |
8704 | | - | |
| 8691 | + | |
8705 | 8692 | | |
| 8693 | + | |
| 8694 | + | |
| 8695 | + | |
| 8696 | + | |
8706 | 8697 | | |
8707 | 8698 | | |
8708 | 8699 | | |
8709 | | - | |
8710 | 8700 | | |
8711 | | - | |
8712 | 8701 | | |
8713 | 8702 | | |
8714 | 8703 | | |
| |||
0 commit comments