smb/server: fix null-ptr-deref in ksmbd_ipc_tree_connect_request()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 · < d2ccf905f47d2344270749f4dfa905afcd3edeb0| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
smb/server: fix null-ptr-deref in ksmbd_ipc_tree_connect_request()
See the procedure below:
ksmbd_tree_conn_connect ksmbd_share_config_get share->name = kstrdup() // fail if (!test_share_config_flag(share, KSMBD_SHARE_FLAG_PIPE)) // false // do not check `share->name` ksmbd_ipc_tree_connect_request strlen(share->name) // null-ptr-deref
From the CVE record · Linux
The Linux kernel SMB server can dereference a null pointer during a tree connection if allocation of a share name fails. The provided information does not specify whether authentication or user interaction is required.
Operators running the Linux kernel SMB server (ksmbd) should check their systems; affected versions are not specified.