# CVE-2023-54162: ksmbd: fix possible memory leak in smb2\_lock()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.74% (percentile 51, 2026-11-26)
- **Published:** 2025-12-30T12:03:23.583Z
- **Modified:** 2026-08-05T09:17:44.673Z

## Who should check

- Anyone running Linux \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< bfe8372ef2dbdce97f13b21d76e2080ddeef5a79; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 6bf555ed8938444466c3d7f3252eb874a518f293; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 11d38f8a0c19763e34d2093b5ecb640e012cb2d2; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< d3ca9f7aeba793d74361d88a8800b2f205c9236b
- Anyone running Linux 5.15

## 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.

## Affected and fixed versions

- Linux: \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< bfe8372ef2dbdce97f13b21d76e2080ddeef5a79; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 6bf555ed8938444466c3d7f3252eb874a518f293; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 11d38f8a0c19763e34d2093b5ecb640e012cb2d2; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< d3ca9f7aeba793d74361d88a8800b2f205c9236b (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-54162. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54162.md
Affected: Linux >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < bfe8372ef2dbdce97f13b21d76e2080ddeef5a79; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 6bf555ed8938444466c3d7f3252eb874a518f293; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 11d38f8a0c19763e34d2093b5ecb640e012cb2d2; >= e2f34481b24db2fd634b5ed…
Fixed in: Linux 6bf555ed8938444466c3d7f3252eb874a518f293, Linux 11d38f8a0c19763e34d2093b5ecb640e012cb2d2

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-54162 being exploited?

There is no confirmed exploitation: CVE-2023-54162 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.74% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-54162?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2023-54162?

Linux \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< bfe8372ef2dbdce97f13b21d76e2080ddeef5a79; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 6bf555ed8938444466c3d7f3252eb874a518f293; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 11d38f8a0c19763e34d2093b5ecb640e012cb2d2; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< d3ca9f7aeba793d74361d88a8800b2f205c9236b; Linux 5.15.

### Is there a fix for CVE-2023-54162?

Yes. Fixed in Linux 6bf555ed8938444466c3d7f3252eb874a518f293, Linux 11d38f8a0c19763e34d2093b5ecb640e012cb2d2. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-54162?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-54162>

HTML: <https://flawdb.com/CVE-2023-54162> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-54162>
