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 B28DA1FDD for ; Tue, 21 May 2024 15:34:12 +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=1716305652; cv=none; b=GyXiMafFaJWB54C8QvUAuXI6yjd8t2WavbVT+UKEFIbIgNoU0EHX1vYcf5YFl1Btlm1/jlnMrWHEgpfQc2m+76xb6SnCUpyxGoXYxCCo7TnXzBXA35e267x+nrtpMlQzjRVIpuhKBh9sJtbit+pJahUZtLdgbDUxIJ+wzjE/K5Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305652; c=relaxed/simple; bh=LGmfUhFZatGUdpAjoXxro2kS346p51kEUO75gdYy5OY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QAtz+R76Y069EbD6ZEOeH5qSj1kAq1Qc+YcqbCAK3dhO1h6QuGc8BKV4Md3IqAhkxoj0aiZU7WCr5Wo4LYCiIDZjQipBGURIfNnqlDG4V4wD9xow3CCX57ctfwy4bUNMJEPzYM0lTlibmAqpaRL1Zp00OjLL//aYggqy+JBSpeM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=M11ccCVP; 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="M11ccCVP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39E9FC2BD11; Tue, 21 May 2024 15:34:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305652; bh=LGmfUhFZatGUdpAjoXxro2kS346p51kEUO75gdYy5OY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=M11ccCVPaZ2puefVz/mmZ5AUFxRb74BsXsgE+a1+AiNznWVE185RCYEnpo/1/QZyD xebtHZJW15kvRBYU8iuDya22eec5w0QdXg9XFwd5nFEHVIlQx2kdZhKE36ZbbEZ2gO CeVp8YJUTtdMU1j2jSky+TTTkp14RlXR+B0b6890= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52760: gfs2: Fix slab-use-after-free in gfs2_qd_dealloc Date: Tue, 21 May 2024 17:30:56 +0200 Message-ID: <2024052147-CVE-2023-52760-5ac4@gregkh> X-Mailer: git-send-email 2.45.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=1975; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LGmfUhFZatGUdpAjoXxro2kS346p51kEUO75gdYy5OY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++9T9pvO2OB9PbDq5LmLve77ZnivZVHmjztakvi5fv an+pPrGjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI9QeGBWcm1Pbt4VPZzXQ7 TEzO9t7KJBZVYYYFm65NnHwpj+FA8aVb7Mvq5+7r37VXFQA= 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: gfs2: Fix slab-use-after-free in gfs2_qd_dealloc In gfs2_put_super(), whether withdrawn or not, the quota should be cleaned up by gfs2_quota_cleanup(). Otherwise, struct gfs2_sbd will be freed before gfs2_qd_dealloc (rcu callback) has run for all gfs2_quota_data objects, resulting in use-after-free. Also, gfs2_destroy_threads() and gfs2_quota_cleanup() is already called by gfs2_make_fs_ro(), so in gfs2_put_super(), after calling gfs2_make_fs_ro(), there is no need to call them again. The Linux kernel CVE team has assigned CVE-2023-52760 to this issue. Affected and fixed versions =========================== Fixed in 6.6.3 with commit 08a28272faa7 Fixed in 6.7 with commit bdcb8aa434c6 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-2023-52760 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/gfs2/super.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/08a28272faa750d4357ea2cb48d2baefd778ea81 https://git.kernel.org/stable/c/bdcb8aa434c6d36b5c215d02a9ef07551be25a37