# CVE-2022-50460: cifs: Fix xid leak in cifs_flock()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-10-01T11:45:32.484Z
- Modified: 2026-11-05T21:16:59.747Z
- 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_flock()

If not flock, before return -ENOLCK, should free the xid,
otherwise, the xid will be leaked.

(As written by CVE List.)

## Affected

- Linux Linux: from d0677992d2af3d65f1c1c21de3323d09d4891537 before 2d08311aa3056a84bfdc09bc47777de6a9b16c30; from d0677992d2af3d65f1c1c21de3323d09d4891537 before 8905d13b9ede4caa88c577faed832d6c7383f4fb; from d0677992d2af3d65f1c1c21de3323d09d4891537 before f8c9b4a963fec5d0e37e3e8522bb19b0c28e1a73; from d0677992d2af3d65f1c1c21de3323d09d4891537 before 575e079c782b9862ec2626403922d041a42e6ed6; 5.5 (not affected: before 5.5; from 5.10.152 up to 5.10.*; 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.5 before 5.10.152; from 5.11 before 5.15.76; from 5.16 before 6.0.6; 6.1

## References

- <https://git.kernel.org/stable/c/2d08311aa3056a84bfdc09bc47777de6a9b16c30> (patch)
- <https://git.kernel.org/stable/c/8905d13b9ede4caa88c577faed832d6c7383f4fb> (patch)
- <https://git.kernel.org/stable/c/f8c9b4a963fec5d0e37e3e8522bb19b0c28e1a73> (patch)
- <https://git.kernel.org/stable/c/575e079c782b9862ec2626403922d041a42e6ed6> (patch)

## Sources

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

---

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