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 E08BD135A68 for ; Tue, 27 Feb 2024 09:49:51 +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=1709027392; cv=none; b=o85gfSjnV4zZc410BOkC+S3DAeWGJOjfRmq+dc0PFlGAaW+xBzn+rBvfYca2hXaCmM5aSp00pqrbN0dxQMLCg7TO9hEAJeLVBwUBVRkXqZacT1EpO0dqKrJ8R3AXkLKcDILk1X0L/pDw9LDv+0/els0pCW7wLvvrSDRj9rDz8lM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709027392; c=relaxed/simple; bh=BPoQxvvQp3EsOmNB8bxogX2H53E50p0aWXOWZCtNFMs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rgXRh3dbr5n9oVnm/YFlX+9ePtvLFgExVXZdc4PG2tyZfklTBhs6rHXScL8VBJTIXL7tXFvwrE/isrPB/S4kTbJ1vShes2j54Od9sE1mT7L/2yPb18PrceJDJHw7i+MpzFHMBWmX7aN6gR3O07kTXjDo4F3AvOx0PE5yIrtJSb4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oFEqoEZe; 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="oFEqoEZe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 596E9C433C7; Tue, 27 Feb 2024 09:49:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709027391; bh=BPoQxvvQp3EsOmNB8bxogX2H53E50p0aWXOWZCtNFMs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=oFEqoEZew+LTGOkGb4hR3fQGjwjfSPOBOhAesewjkGsisVPhs1MZpiYi77+m88HZr 0Bb5G+t7oYrcuBgeEwlCnHb5Bb4gAoMcT7sJ+yY/O/5y+GN3vdv54zQRRBHNII9QZS rYyVP50cATmafcaajmPYJQuNnIspk1SXuA0z2qO0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46923: fs/mount_setattr: always cleanup mount_kattr Date: Tue, 27 Feb 2024 10:48:44 +0100 Message-ID: <2024022745-CVE-2021-46923-a1ec@gregkh> X-Mailer: git-send-email 2.44.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=1977; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BPoQxvvQp3EsOmNB8bxogX2H53E50p0aWXOWZCtNFMs=; b=owGbwMvMwCRo6H6F97bub03G02pJDKl31/9lt41m2HhbhGnly38xeftsPAUfrc9s3yu7Orrbo uvkhoMvO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiHdkM8zQcjjuEm80//Ktt +qm2r//i8339ghnmyvwyffBw3kurxaJsHE/5L5wR7DC/AwA= 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: fs/mount_setattr: always cleanup mount_kattr Make sure that finish_mount_kattr() is called after mount_kattr was succesfully built in both the success and failure case to prevent leaking any references we took when we built it. We returned early if path lookup failed thereby risking to leak an additional reference we took when building mount_kattr when an idmapped mount was requested. The Linux kernel CVE team has assigned CVE-2021-46923 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 9caccd41541a and fixed in 5.15.13 with commit 47b5d0a7532d Issue introduced in 5.12 with commit 9caccd41541a and fixed in 5.16 with commit 012e332286e2 Please see https://www.kernel.org or 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-2021-46923 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/namespace.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/47b5d0a7532d39e42a938f81e3904268145c341d https://git.kernel.org/stable/c/012e332286e2bb9f6ac77d195f17e74b2963d663