From mboxrd@z Thu Jan 1 00:00:00 1970 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 CF1C821ADCE for ; Wed, 26 Feb 2025 02:27:40 +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=1740536860; cv=none; b=LdBm09qGAsOoC4KqxBbBmLtoYbRg681UTvdeYXCLKEWTijLKI02bJUDbouD0mIY/chgkVEIrn71leJK0tVnqGWbtu7VOtATqdRhr2A3ywmLvaAy+sJorngtcaBcXDnYns1ksLjZj1W6nq0/YfiV89OWNJKO9UwdKD6VcAatB9u0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536860; c=relaxed/simple; bh=raJDzOx2+v8Q4iOKANqn0QB4rxN174pTrWjU43oBXeU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jtgwJzZki32Wyuq7LbAX0xexEJZsScD9NXf/e+3xG69kyPUqEKftcOEdz4fVihFhxgqCepcbfuA9QBBFkez1QWrUYASOI0MhV/H5zHFo/ROm9eFNtcBa22pOW3P0dPjvyZyCep/HpXXiAIY0sIPsizrB54gWL0Cw0ojAqIn+gGw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HrMTEnfX; 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="HrMTEnfX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FA54C4CEDD; Wed, 26 Feb 2025 02:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536860; bh=raJDzOx2+v8Q4iOKANqn0QB4rxN174pTrWjU43oBXeU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HrMTEnfX+zsnCo5Yvoc6E7Ic/VbUWnZrFX+Buj9j3nrMuT/v9Z2GMaBteLxRtoMW5 X8Tr+7CnFnL53son1OWxVLZwOVMjVVhm32ILJDRW11I39opS6HwTp8Uur1TlBMJW0q AX9MLuO84ET3UVWBcXx6jkBkJYjabsruU+FSjG2w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49704: 9p: fix fid refcount leak in v9fs_vfs_get_link Date: Wed, 26 Feb 2025 03:24:27 +0100 Message-ID: <2025022629-CVE-2022-49704-b01e@gregkh> X-Mailer: git-send-email 2.48.1 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=2095; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=raJDzOx2+v8Q4iOKANqn0QB4rxN174pTrWjU43oBXeU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qp5GmHixRYUoRrKdX7VsWaV5ksGqrOavC5ZebzeYf 0fYtFu6I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbid5dhQRs70/kPr2c17Sxe 7rGvZovfg+yEWwwLZolNPmbPdHajZZT5oZLzRyavfbTWAQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: 9p: fix fid refcount leak in v9fs_vfs_get_link we check for protocol version later than required, after a fid has been obtained. Just move the version check earlier. The Linux kernel CVE team has assigned CVE-2022-49704 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 6636b6dcc3db2258cd0585b8078c1c225c4b6dde and fixed in 5.15.51 with commit f0126bcaee81dabc1926012126aa74caa03a4c6e Issue introduced in 5.11 with commit 6636b6dcc3db2258cd0585b8078c1c225c4b6dde and fixed in 5.18.8 with commit e7b6d622bd812013eb39c8f4cd65b7ee8ede1e02 Issue introduced in 5.11 with commit 6636b6dcc3db2258cd0585b8078c1c225c4b6dde and fixed in 5.19 with commit e5690f263208c5abce7451370b7786eb25b405eb 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-49704 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/9p/vfs_inode.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/f0126bcaee81dabc1926012126aa74caa03a4c6e https://git.kernel.org/stable/c/e7b6d622bd812013eb39c8f4cd65b7ee8ede1e02 https://git.kernel.org/stable/c/e5690f263208c5abce7451370b7786eb25b405eb