ksmbd: add refcnt to ksmbd_conn struct
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: add refcnt to ksmbd_conn struct
When sending an oplock break request, opinfo->conn is used, But freed ->conn can be used on multichannel. This patch add a reference count to the ksmbd_conn struct so that it can be freed when it is no longer used.
From the CVE record · Linux
The Linux kernel's ksmbd component can use a freed connection while sending an oplock break request over multichannel. This is a use-after-free vulnerability; the input does not specify what an attacker can achieve or whether authentication or user interaction is required.
Anyone running the Linux kernel with ksmbd should check whether their kernel includes the fix; affected versions were not provided.