Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F261D296BBF for ; Wed, 1 Oct 2025 11:55:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319728; cv=none; b=QZGbcMsjBLYRUMHNoyXGlw3NJAOpq34viS+o5EwuKZoslYHobQDBYnWxPuHaWOlXQDn2L+VO7CwYOsYbP5TWaS2I/i3yuw+ZAQ8EJoEtCRRpv1iCoqH48kdeSoDByTeoK7IRnen6GAjRCDzkRBIqPbhgcysK0HkvlsMpdXMhedY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319728; c=relaxed/simple; bh=WhQvdof0vMpEN7YTJZUeUnbzV1wDjZIWp4+Rs68T6Mk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oK/F7z+Io8Pb0s+NOP6fcHGnpbi6sVFvCW87H0hc02NuimeVxxGAPfWnc/UOliv3Q4UiNI2k56nMpawF6dZ2QqAu4ZI9pk0R4a5MlAvBcfiL0qUhAfTAQX6VIaUF2kavQIMP8gVdN8NRcQeRBWnbb1t0i2hpdmSjquBjYddR54o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JWrs+lAI; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="JWrs+lAI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60ED9C4CEF4; Wed, 1 Oct 2025 11:55:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319727; bh=WhQvdof0vMpEN7YTJZUeUnbzV1wDjZIWp4+Rs68T6Mk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JWrs+lAI/A5tByybYRwhiuyb/MO7Fa9vj6Fir9pxQDXaJhn9dzAs6xzjn4PMYtSRX zbgtDmkmZupp06kwkFWdHfTHO6M/FBCpURgJFcElyP7qfENSTa6D81Tqri5BUqItgd eqKu7uh3E8Vr3kFLzWZNDjKA7nByQW+ziNHVAS+A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50460: cifs: Fix xid leak in cifs_flock() Date: Wed, 1 Oct 2025 13:45:30 +0200 Message-ID: <2025100119-CVE-2022-50460-2149@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2278; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iF12NW86EE36+LNTZI/Xge/OLvkrYMHwz28a0alVYZ8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3RQIyT+y9NEOKbfeLhbOzOGfGc8UJLrt7bZW9vPRG2 YRII+87HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRovsM8/MYvE4XVf1mNk+f 673+cNhK1SORFQxzxRnLQkuWxku6J72cIi5Ud9j5rYwFAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2022-50460 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit d0677992d2af3d65f1c1c21de3323d09d4891537 and fixed in 5.10.152 with commit 2d08311aa3056a84bfdc09bc47777de6a9b16c30 Issue introduced in 5.5 with commit d0677992d2af3d65f1c1c21de3323d09d4891537 and fixed in 5.15.76 with commit 8905d13b9ede4caa88c577faed832d6c7383f4fb Issue introduced in 5.5 with commit d0677992d2af3d65f1c1c21de3323d09d4891537 and fixed in 6.0.6 with commit f8c9b4a963fec5d0e37e3e8522bb19b0c28e1a73 Issue introduced in 5.5 with commit d0677992d2af3d65f1c1c21de3323d09d4891537 and fixed in 6.1 with commit 575e079c782b9862ec2626403922d041a42e6ed6 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-50460 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/file.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/2d08311aa3056a84bfdc09bc47777de6a9b16c30 https://git.kernel.org/stable/c/8905d13b9ede4caa88c577faed832d6c7383f4fb https://git.kernel.org/stable/c/f8c9b4a963fec5d0e37e3e8522bb19b0c28e1a73 https://git.kernel.org/stable/c/575e079c782b9862ec2626403922d041a42e6ed6