Commit e38ec88
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 595f78d commit e38ec88
1 file changed
Lines changed: 9 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8144 | 8144 | | |
8145 | 8145 | | |
8146 | 8146 | | |
8147 | | - | |
8148 | | - | |
8149 | | - | |
8150 | | - | |
8151 | | - | |
8152 | 8147 | | |
8153 | 8148 | | |
8154 | 8149 | | |
8155 | 8150 | | |
8156 | 8151 | | |
8157 | 8152 | | |
8158 | 8153 | | |
8159 | | - | |
8160 | | - | |
8161 | | - | |
| 8154 | + | |
8162 | 8155 | | |
| 8156 | + | |
| 8157 | + | |
| 8158 | + | |
8163 | 8159 | | |
8164 | 8160 | | |
8165 | | - | |
8166 | 8161 | | |
8167 | 8162 | | |
8168 | | - | |
8169 | 8163 | | |
8170 | 8164 | | |
8171 | 8165 | | |
| |||
8295 | 8289 | | |
8296 | 8290 | | |
8297 | 8291 | | |
8298 | | - | |
8299 | | - | |
8300 | | - | |
8301 | | - | |
8302 | | - | |
8303 | 8292 | | |
8304 | 8293 | | |
8305 | 8294 | | |
| |||
8308 | 8297 | | |
8309 | 8298 | | |
8310 | 8299 | | |
8311 | | - | |
8312 | | - | |
8313 | | - | |
| 8300 | + | |
8314 | 8301 | | |
| 8302 | + | |
| 8303 | + | |
| 8304 | + | |
| 8305 | + | |
8315 | 8306 | | |
8316 | 8307 | | |
8317 | 8308 | | |
8318 | | - | |
8319 | 8309 | | |
8320 | | - | |
8321 | 8310 | | |
8322 | 8311 | | |
8323 | 8312 | | |
| |||
0 commit comments