smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open()
null-ptr-deref will occur when (req_op_level == SMB2_OPLOCK_LEVEL_LEASE) and parse_lease_state() return NULL.
Fix this by check if 'lease_ctx_info' is NULL.
Additionally, remove the redundant parentheses in parse_durable_handle_context().
From the CVE record · Linux
The Linux kernel SMB server can dereference a null pointer in smb2_open(). This can happen when an SMB2 open request uses a lease oplock and parse_lease_state() returns NULL, potentially causing a crash. The input does not specify authentication or user-interaction requirements.
Operators running the Linux kernel SMB server should check their installations; affected versions are not specified.