# CVE-2023-54162: ksmbd: fix possible memory leak in smb2_lock()

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2025-12-30T12:03:23.583Z
- Modified: 2026-08-05T09:17:44.673Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix possible memory leak in smb2_lock()

argv needs to be free when setup_async_work fails or when the current
process is woken up.

(As written by CVE List.)

## Affected

- Linux Linux: from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before bfe8372ef2dbdce97f13b21d76e2080ddeef5a79; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 6bf555ed8938444466c3d7f3252eb874a518f293; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 11d38f8a0c19763e34d2093b5ecb640e012cb2d2; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before d3ca9f7aeba793d74361d88a8800b2f205c9236b; 5.15 (not affected: before 5.15; from 5.15.145 up to 5.15.*; from 6.1.16 up to 6.1.*; from 6.2.3 up to 6.2.*; from 6.3 up to *)

## References

- <https://git.kernel.org/stable/c/bfe8372ef2dbdce97f13b21d76e2080ddeef5a79>
- <https://git.kernel.org/stable/c/6bf555ed8938444466c3d7f3252eb874a518f293>
- <https://git.kernel.org/stable/c/11d38f8a0c19763e34d2093b5ecb640e012cb2d2>
- <https://git.kernel.org/stable/c/d3ca9f7aeba793d74361d88a8800b2f205c9236b>

## Sources

- CVE List: [CVE-2023-54162](https://www.cve.org/CVERecord?id=CVE-2023-54162), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-54162](https://nvd.nist.gov/vuln/detail/CVE-2023-54162), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2023-54162 · Whole record: https://cve.day/CVE-2023-54162.json · Rebuilt by cve.day 2026-11-25T22:58:35.202Z
