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 8A0601E7C32 for ; Thu, 1 May 2025 14:13:39 +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=1746108819; cv=none; b=L3+tqGwXyQ8YSRAqu0po9tgLeGjHRZMUnXUXPF23o8TbXwW+ANLSQ1RQIlHa/FFRGGGKaxfWK+3AJ89jhUUSgE7z+NIVbbHCe5drWhcKSfzXjAjyhlwqyaxELCNznyr2YOrAFKDzSfz3JIIzUP3weLOkxCzi+GGUksjqJU7V0w8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108819; c=relaxed/simple; bh=263Wh/+EVLetJ0fxHO4q82tDYdaS8b29dRajz7qxDkE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gYREEVZo5UjT/m/W16hh1RwiGZSlawVuU4GjKBZvqdN7QGjh0LYfLsGXAB0sTgZypRAPMh8SaqnLyEWqhcH0FXwwswTWi1QshGJT6uw0iX9HgB3hgCybZKsfcUP24OrWr3x8BCB7cwJwtZNnPTsMLZIgxZjkdUnPCIhg3gU3exY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qyvivsmv; 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="qyvivsmv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01307C4CEE3; Thu, 1 May 2025 14:13:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108819; bh=263Wh/+EVLetJ0fxHO4q82tDYdaS8b29dRajz7qxDkE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qyvivsmvhu47365iaj1gzOSS+8h502YoE/M7DYAnj1pHI/JohYzEo5P/o0VOzDTcs ppRZ3lABzWMXMBsRtcy8IV3RpKE0WhVGTZV26egQmG3fhbSa3qT+zu9SQW8PILSCrp 1e/8bVZvaKH73psMppknRM6uipSj6fCDmcyL3RX4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49822: cifs: Fix connections leak when tlink setup failed Date: Thu, 1 May 2025 16:10:12 +0200 Message-ID: <2025050133-CVE-2022-49822-1913@gregkh> X-Mailer: git-send-email 2.49.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=2318; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9tcHn1spHfTuKTT3vW9O6N8oe+jWEYshEq/LpcjcY84=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDfNKjhk4HRWx81be7jw/eZ7tvImnK3OYrT442Z+TX P9MRdmgI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayeCfDXKEisZWWM6VkuV8E Kx881R6+ffKy5QwLlk0VFbOees3KRkHy/a9vae+bVnh6AAA= 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 connections leak when tlink setup failed If the tlink setup failed, lost to put the connections, then the module refcnt leak since the cifsd kthread not exit. Also leak the fscache info, and for next mount with fsc, it will print the follow errors: CIFS: Cache volume key already in use (cifs,127.0.0.1:445,TEST) Let's check the result of tlink setup, and do some cleanup. The Linux kernel CVE team has assigned CVE-2022-49822 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit 56c762eb9bee330bb4e6d11c589434f2904d3ab6 and fixed in 5.15.81 with commit a9059e338fc000c0b87d8cf29e93c74fd703212e Issue introduced in 5.0 with commit 56c762eb9bee330bb4e6d11c589434f2904d3ab6 and fixed in 6.0.10 with commit 0a087842d10b5daa123ee5291e386cdd78413705 Issue introduced in 5.0 with commit 56c762eb9bee330bb4e6d11c589434f2904d3ab6 and fixed in 6.1 with commit 1dcdf5f5b2137185cbdd5385f29949ab3da4f00c 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-49822 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/connect.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/a9059e338fc000c0b87d8cf29e93c74fd703212e https://git.kernel.org/stable/c/0a087842d10b5daa123ee5291e386cdd78413705 https://git.kernel.org/stable/c/1dcdf5f5b2137185cbdd5385f29949ab3da4f00c