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 570CF29BD95 for ; Tue, 16 Sep 2025 16:13:23 +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=1758039203; cv=none; b=mZxV+7lUPQ3ymV3NrDdmGZOs8Q1XQXKQHE5HDfvzmbVewewUkZVr6xUYuJHcE2KjELsbthNDY0eDtJ96VkerGUlDKtfARS5Hh2jTATAS4JM8SPIgq5Och38Q6+0D9OvOaGYWOVWRnh/DDg0w/8QytsJQq84mm8Ja1h6qF6SUHw8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758039203; c=relaxed/simple; bh=oBpeIXLFrjE4FHlui+8KmV3Y41SWiuBJhIVvityUHLE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iT5RLnrTsZSVcyEd0GmOtAVFWY5HHEWoJBPOJnamZlYfYy7Aq9UZh65567ij5NjGoyPD8+XAMi7Gsm1s8Rj+bnpppokgHkWpkLPkDlrnVDQW2CCHnP4E1a0P9F2f4HoF6TzqIrxdvy63sLPcKjTC+z/oFph/wG+XixB58EgyUOs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lHouLgkb; 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="lHouLgkb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA52AC4CEEB; Tue, 16 Sep 2025 16:13:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758039203; bh=oBpeIXLFrjE4FHlui+8KmV3Y41SWiuBJhIVvityUHLE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=lHouLgkbepRy7Z+KV/3wD0nfCPAP983lX2h7nzG4SJq6+TQIFEQ8f8tnNO80NikMe P373NWhlhn9SckuWTdWzI7LqO6t7hPjuEX6Ep+OwC+sorMeoWFaqli+ekN1e9YK7Q6 xm1ahXjVzZWXtj0PzSOgQuEPq32LiIz/RAQreYpU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50351: cifs: Fix xid leak in cifs_create() Date: Tue, 16 Sep 2025 18:11:47 +0200 Message-ID: <2025091640-CVE-2022-50351-ac59@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=2062; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SQhz/LQl8jJrdg0nChukUXQs/h2yrPWko7Mq5s/sKGU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkne2xW7fj6POXqxhW9JwxYJ51/LnhM+2iSjaNbhqH1R em67rNSHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRcHaG+a63/WfubAy5+ffz F5P6pU0eigzZbxgWLIo8obHQNSzdeumF68HPd1ssW/JnDQA= 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_create() If the cifs already shutdown, we should free the xid before return, otherwise, the xid will be leaked. The Linux kernel CVE team has assigned CVE-2022-50351 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 087f757b0129850c99cc9116df4909dac1bce871 and fixed in 5.15.76 with commit 593d877c39aa9f3fe1a4b5b022492886d7d700ec Issue introduced in 5.13 with commit 087f757b0129850c99cc9116df4909dac1bce871 and fixed in 6.0.6 with commit 92aa09c86ef297976a3c27c6574c0839418dc2c4 Issue introduced in 5.13 with commit 087f757b0129850c99cc9116df4909dac1bce871 and fixed in 6.1 with commit fee0fb1f15054bb6a0ede452acb42da5bef4d587 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-50351 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/dir.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/593d877c39aa9f3fe1a4b5b022492886d7d700ec https://git.kernel.org/stable/c/92aa09c86ef297976a3c27c6574c0839418dc2c4 https://git.kernel.org/stable/c/fee0fb1f15054bb6a0ede452acb42da5bef4d587