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 8BB4E21ADCE for ; Wed, 26 Feb 2025 02:27:41 +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=1740536861; cv=none; b=GoutvKdrtqFrrpHZO+sl60AH+duAwso6FRx6Gup4cY0FKA6K2+0sW2JPHaSj/rZ0e6RNVNSsEjYfLnMSGwhnbyeZiyKXd032DRfSbhH/sO+h1+nj4maiHUBVHqmTrfPtHoKD7H6yC7jK2yCcbCDHs4lkE0uy+ywzxVDDpSgsTlI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536861; c=relaxed/simple; bh=xrMhVUrs3ZrMMw0caOnSehq0beKy/Fq4wrUqsiI5gwE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ncSqZfwNxpFtpnGU0cju5YYuT0S/sz+cmKD+fTUiJBguQzvmy/22wxFz6H4z175qGeva2DSTrjtgZEVeA2uaDZiVU0WdiYlkCEN61MpYTrqoOs9LaifdmutjothS/NbIiYGGe5GOmkRmCYM3bB03hlYyhVJSzGqvHhhEejkHzRw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ByVBvtpi; 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="ByVBvtpi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FEBAC4CEDD; Wed, 26 Feb 2025 02:27:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536861; bh=xrMhVUrs3ZrMMw0caOnSehq0beKy/Fq4wrUqsiI5gwE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ByVBvtpiwQMjVZTHdpXDW5RcSyjg5O3OxUfB58hzfrohwKaNwN3AL1/TpVQDNq8Hb xRf15JAAhCvO/rFnxLCvMcUJ0amrrNA6i1VZa4AI4/59n7bhZ6Bj4MYA2c/IIl43qZ PisN8uLYc/4gbIHQm2gW/JHqJzs9gI18rwj3SuW4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49705: 9p: fix fid refcount leak in v9fs_vfs_atomic_open_dotl Date: Wed, 26 Feb 2025 03:24:28 +0100 Message-ID: <2025022630-CVE-2022-49705-9fee@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=2105; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xrMhVUrs3ZrMMw0caOnSehq0beKy/Fq4wrUqsiI5gwE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qp7d+Xh+dbJ++I8lFc8r2k5NPWAy96/pqwNH2Eyjd ytufvq7tyOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAm8msaw/zi9Y+Xvi9nX3yp 5QKz4MZop2dNlgwM80N7+udNZOraGb+t4Vu6udCr15LXvgMA 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_atomic_open_dotl We need to release directory fid if we fail halfway through open This fixes fid leaking with xfstests generic 531 The Linux kernel CVE team has assigned CVE-2022-49705 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 6636b6dcc3db2258cd0585b8078c1c225c4b6dde and fixed in 5.15.51 with commit 22832ac3eb5be3f7168816a76b64c1284e12eb3c Issue introduced in 5.11 with commit 6636b6dcc3db2258cd0585b8078c1c225c4b6dde and fixed in 5.18.8 with commit 8bc5412ba1a45edfd1e451874c483c26a097af2b Issue introduced in 5.11 with commit 6636b6dcc3db2258cd0585b8078c1c225c4b6dde and fixed in 5.19 with commit beca774fc51a9ba8abbc869cf0c3d965ff17cd24 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-49705 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_dotl.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/22832ac3eb5be3f7168816a76b64c1284e12eb3c https://git.kernel.org/stable/c/8bc5412ba1a45edfd1e451874c483c26a097af2b https://git.kernel.org/stable/c/beca774fc51a9ba8abbc869cf0c3d965ff17cd24