Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cifsd: prevent NULL pointer dereference in signing handling #419

Merged
merged 2 commits into from
Jun 24, 2020

Conversation

namjaejeon
Copy link
Member

Make sure work->sess is not NULL when calling check_sign_req() to
prevent NULL pointer dereference. This was causing kernel panic when
using signing and pysmb (SMB1) as client.

Fixes: c670a9a ("ksmbd: verify and set signature for compound request/response")
Signed-off-by: Fredrik Ternerot fredrikt@axis.com
Signed-off-by: Namjae Jeon namjae.jeon@samsung.com

Fredrik Ternerot and others added 2 commits June 25, 2020 08:10
Make sure work->sess is not NULL when calling check_sign_req() to
prevent NULL pointer dereference. This was causing kernel panic when
using signing and pysmb (SMB1) as client.

Fixes: c670a9a ("ksmbd: verify and set signature for compound request/response")
Signed-off-by: Fredrik Ternerot <fredrikt@axis.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
- Fix kernel oops when using signing and pysmb (SMB1) as client.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
@namjaejeon namjaejeon merged commit 5a402cc into cifsd-team:ksmbd-next Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant