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 6E8D51A3162 for ; Wed, 26 Feb 2025 01:58:21 +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=1740535101; cv=none; b=PNiqs2ApKQCekUnknG92pMXhTXgYbnQ9cKTD7Cwz7JohqwL325XznKwAMl+LwRwZPUEhCF5dqJJV4tEW5ABD9oTFn6eZ34XsqhUtXj432QMaCl1errlcGCWPXiJ72FK6YSEOnfwo096K2irUM+enm29ezluMlWl3j5ou8hPVtwY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535101; c=relaxed/simple; bh=ao0VP32TATKWy0hwbF+Cea1SGRmev9YUzp3PNT9PvPc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S/2a5eNpTUdaDdPlnH6SI1QdtXcYGNY941l2vzm3NkHtTiAi1zas0NMNNm5GmcgsivfZ4ueVBShZeyBs8e4U+V/n8UtX7JaDaGAcsDRLcuB+PGDaW0oU8Foaiznzl/JbODdFJS2Q4SjDRzLqZGCVCaC786rEISbfNztrFbTZmTY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2D1ggKKb; 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="2D1ggKKb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44A76C4CEDD; Wed, 26 Feb 2025 01:58:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535101; bh=ao0VP32TATKWy0hwbF+Cea1SGRmev9YUzp3PNT9PvPc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2D1ggKKbIAS7vzTNcptqUyJtwXO6noRlFG20Ei2P4/GCRkw0TDIa7CO/v6C6FfF+5 a9SKMWVSBHtyFxfdRb84QlDEMaN8bXcTL44xrmUZOQPd3TaEDAwO5KdBOwrpoov0t0 YKZvNt4GdCWV4p0glAYwBlBPpo0ptB4r8KXKe8/w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49109: ceph: fix inode reference leakage in ceph_get_snapdir() Date: Wed, 26 Feb 2025 02:55:14 +0100 Message-ID: <2025022601-CVE-2022-49109-1b4f@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=2119; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ao0VP32TATKWy0hwbF+Cea1SGRmev9YUzp3PNT9PvPc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Sqwu5P4oeqD0fKJox5aGZzOZ4o9/Yl3G/fU249X2V JGV7AVpHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARwQCGBSfO8R11SO96sDAz Mf0Au8SRyy5vJzPMZnnP33l+mlbb+0CRnIe3Gat2SD44BwA= 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: ceph: fix inode reference leakage in ceph_get_snapdir() The ceph_get_inode() will search for or insert a new inode into the hash for the given vino, and return a reference to it. If new is non-NULL, its reference is consumed. We should release the reference when in error handing cases. The Linux kernel CVE team has assigned CVE-2022-49109 to this issue. Affected and fixed versions =========================== Fixed in 5.15.34 with commit 3ae7163598c611a8892698e0c056fe794e52b44b Fixed in 5.16.20 with commit 9cd21981dedfb4fe9f344529e4be35727cb10940 Fixed in 5.17.3 with commit b2d9bb3f06abddefdfa740b0a604575b6797e1bf Fixed in 5.18 with commit 322794d3355c33adcc4feace0045d85a8e4ed813 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-49109 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/ceph/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/3ae7163598c611a8892698e0c056fe794e52b44b https://git.kernel.org/stable/c/9cd21981dedfb4fe9f344529e4be35727cb10940 https://git.kernel.org/stable/c/b2d9bb3f06abddefdfa740b0a604575b6797e1bf https://git.kernel.org/stable/c/322794d3355c33adcc4feace0045d85a8e4ed813