# CVE-2022-50643: cifs: Fix xid leak in cifs\_copy\_file\_range()

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-12-09T00:00:17.684Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3, \< bf49d4fe4ab7b8d812927a2c7b514864d5fc1bb2; \>= 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3, \< 27cfd3afaab000a455194338db3b7f2031fde9d0; \>= 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3, \< dc283313d1ca378d787cb55c1e580dc3de852680; \>= 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3, \< 9a97df404a402fe1174d2d1119f87ff2a0ca2fe9
- Anyone running Linux 5.7

## Description

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

cifs: Fix xid leak in cifs\_copy\_file\_range()

If the file is used by swap, before return -EOPNOTSUPP, should
free the xid, otherwise, the xid will be leaked.

## Affected and fixed versions

- Linux: \>= 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3, \< bf49d4fe4ab7b8d812927a2c7b514864d5fc1bb2; \>= 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3, \< 27cfd3afaab000a455194338db3b7f2031fde9d0; \>= 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3, \< dc283313d1ca378d787cb55c1e580dc3de852680; \>= 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3, \< 9a97df404a402fe1174d2d1119f87ff2a0ca2fe9 (cvelist)
- Linux: 5.7 (cvelist)

## Mitigation

- Upgrade Linux to 9a97df404a402fe1174d2d1119f87ff2a0ca2fe9 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50643.md
Affected: Linux >= 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3, < bf49d4fe4ab7b8d812927a2c7b514864d5fc1bb2; >= 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3, < 27cfd3afaab000a455194338db3b7f2031fde9d0; >= 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3, < dc283313d1ca378d787cb55c1e580dc3de852680; >= 4e8aea30f7751ce7c4b158a…
Fixed in: Linux 27cfd3afaab000a455194338db3b7f2031fde9d0, Linux 9a97df404a402fe1174d2d1119f87ff2a0ca2fe9

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-2022-50643 being exploited?

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

### How serious is CVE-2022-50643?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50643?

Linux \>= 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3, \< bf49d4fe4ab7b8d812927a2c7b514864d5fc1bb2; \>= 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3, \< 27cfd3afaab000a455194338db3b7f2031fde9d0; \>= 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3, \< dc283313d1ca378d787cb55c1e580dc3de852680; \>= 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3, \< 9a97df404a402fe1174d2d1119f87ff2a0ca2fe9; Linux 5.7.

### Is there a fix for CVE-2022-50643?

Yes. Fixed in Linux 27cfd3afaab000a455194338db3b7f2031fde9d0, Linux 9a97df404a402fe1174d2d1119f87ff2a0ca2fe9. Upgrade Linux to 9a97df404a402fe1174d2d1119f87ff2a0ca2fe9 or later.

### How do I check if I'm affected by CVE-2022-50643?

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/bf49d4fe4ab7b8d812927a2c7b514864d5fc1bb2>
- other: <https://git.kernel.org/stable/c/27cfd3afaab000a455194338db3b7f2031fde9d0>
- other: <https://git.kernel.org/stable/c/dc283313d1ca378d787cb55c1e580dc3de852680>
- other: <https://git.kernel.org/stable/c/9a97df404a402fe1174d2d1119f87ff2a0ca2fe9>

## 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-2022-50643>

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