# CVE-2022-50729: ksmbd: Fix resource leak in ksmbd_session_rpc_open()

- Severity: not scored yet
- 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.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-12-24T12:22:49.717Z
- Modified: 2026-11-10T12:10:00.177Z
- Assigned by: Linux

## Description

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

ksmbd: Fix resource leak in ksmbd_session_rpc_open()

When ksmbd_rpc_open() fails then it must call ksmbd_rpc_id_free() to
undo the result of ksmbd_ipc_id_alloc().

(As written by CVE List.)

## Affected

- Linux Linux: from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 31c1b5d3000cdff70b98d5af045271e09079bec1; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 9cb49b95c05df09b369d1ec1f378b5c92109433c; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before f9ed133381eba883c5e0059063d5b3ca7cac6d41; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before bc044414fa0326a4e5c3c509c00b1fcaf621b5f4; 5.15 (not affected: before 5.15; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)

## References

- <https://git.kernel.org/stable/c/31c1b5d3000cdff70b98d5af045271e09079bec1>
- <https://git.kernel.org/stable/c/9cb49b95c05df09b369d1ec1f378b5c92109433c>
- <https://git.kernel.org/stable/c/f9ed133381eba883c5e0059063d5b3ca7cac6d41>
- <https://git.kernel.org/stable/c/bc044414fa0326a4e5c3c509c00b1fcaf621b5f4>

## Sources

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

---

Page: https://cve.day/CVE-2022-50729 · Whole record: https://cve.day/CVE-2022-50729.json · Rebuilt by cve.day 2026-11-25T22:58:21.337Z
