[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025120936-CVE-2022-50643-74ca@gregkh>
Date: Tue, 9 Dec 2025 09:01:44 +0900
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50643: cifs: Fix xid leak in cifs_copy_file_range()
From: Greg Kroah-Hartman <gregkh@...nel.org>
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.
The Linux kernel CVE team has assigned CVE-2022-50643 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.7 with commit 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3 and fixed in 5.10.152 with commit bf49d4fe4ab7b8d812927a2c7b514864d5fc1bb2
Issue introduced in 5.7 with commit 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3 and fixed in 5.15.76 with commit 27cfd3afaab000a455194338db3b7f2031fde9d0
Issue introduced in 5.7 with commit 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3 and fixed in 6.0.6 with commit dc283313d1ca378d787cb55c1e580dc3de852680
Issue introduced in 5.7 with commit 4e8aea30f7751ce7c4b158aa0c04e7744d281cc3 and fixed in 6.1 with commit 9a97df404a402fe1174d2d1119f87ff2a0ca2fe9
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2022-50643
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/cifs/cifsfs.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/bf49d4fe4ab7b8d812927a2c7b514864d5fc1bb2
https://git.kernel.org/stable/c/27cfd3afaab000a455194338db3b7f2031fde9d0
https://git.kernel.org/stable/c/dc283313d1ca378d787cb55c1e580dc3de852680
https://git.kernel.org/stable/c/9a97df404a402fe1174d2d1119f87ff2a0ca2fe9
Powered by blists - more mailing lists