ksmbd: fix memory leak in parse_lease_state()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
a41cd52f00907a040ca22c73d4805bb79b0d0972| No fix yet |
| Linux Linux |
| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix memory leak in parse_lease_state()
The previous patch that added bounds check for create lease context introduced a memory leak. When the bounds check fails, the function returns NULL without freeing the previously allocated lease_ctx_info structure.
This patch fixes the issue by adding kfree(lreq) before returning NULL in both boundary check cases.
From the CVE record · Linux
A bounds-check failure in the Linux kernel’s ksmbd create-lease-context parsing can return without freeing allocated memory. An attacker who can trigger this failure may cause a memory leak; the input does not specify network or local access, authentication, or user-interaction requirements.
Engineers running the Linux kernel with ksmbd should check their deployments; affected versions are not specified.