Commit 1e689a5
smb: server: fix use-after-free in smb2_open()
The opinfo pointer obtained via rcu_dereference(fp->f_opinfo) is
dereferenced after rcu_read_unlock(), creating a use-after-free
window.
Cc: [email protected]
Signed-off-by: Marios Makassikis <[email protected]>
Acked-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>1 parent eac3361 commit 1e689a5
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3617 | 3617 | | |
3618 | 3618 | | |
3619 | 3619 | | |
3620 | | - | |
3621 | | - | |
| 3620 | + | |
3622 | 3621 | | |
3623 | | - | |
3624 | 3622 | | |
3625 | 3623 | | |
3626 | 3624 | | |
| |||
3661 | 3659 | | |
3662 | 3660 | | |
3663 | 3661 | | |
| 3662 | + | |
3664 | 3663 | | |
3665 | 3664 | | |
3666 | 3665 | | |
| |||
0 commit comments