# CVE-2022-50351: cifs: Fix xid leak in cifs_create()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-09-16T16:11:42.725Z
- Modified: 2026-06-17T05:23:17.980Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

cifs: Fix xid leak in cifs_create()

If the cifs already shutdown, we should free the xid before return,
otherwise, the xid will be leaked.

(As written by CVE List.)

## Affected

- Linux Linux: from 087f757b0129850c99cc9116df4909dac1bce871 before 593d877c39aa9f3fe1a4b5b022492886d7d700ec; from 087f757b0129850c99cc9116df4909dac1bce871 before 92aa09c86ef297976a3c27c6574c0839418dc2c4; from 087f757b0129850c99cc9116df4909dac1bce871 before fee0fb1f15054bb6a0ede452acb42da5bef4d587; 5.13 (not affected: before 5.13; from 5.15.76 up to 5.15.*; from 6.0.6 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.13 before 5.15.76; from 5.16 before 6.0.6; 6.1

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/593d877c39aa9f3fe1a4b5b022492886d7d700ec> (patch)
- <https://git.kernel.org/stable/c/92aa09c86ef297976a3c27c6574c0839418dc2c4> (patch)
- <https://git.kernel.org/stable/c/fee0fb1f15054bb6a0ede452acb42da5bef4d587> (patch)

## Sources

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

---

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