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 8765D78C6E for ; Wed, 22 May 2024 06:24:03 +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=1716359043; cv=none; b=QWJ8z832nRTOga+8XohtBtaVs2+Ojxqs9omk6F+L3+hXrKkcCtA+YqGowLoMR3ABiXElhloiSlCSkSJwzy2wd/1hr0mwlx8FLSAMkqxg+K46+hz/Z4T6GYRItGAQXqFQPlb27b86R83iwM9P+E14UidhVHQtmo2tJ192Fr1NhNI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716359043; c=relaxed/simple; bh=NS7Q/C7TWz5mXwgc8i4sNj++SqlcKA3P2MHvS/JLQ4I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t9btRomxQititLjuowtyZrbaDLdONK+g7NZ6XzOndz6u/xsYEX4KWY4nU5AccCXzbrGhvgP/iA/RR8hSOJ0vjeqM8WQmsQ5xRBS5sDr/xRNlcL3JWg8pFS6VvCSghTciLzzZAycpbVp+C+abQtc2YqAceShI/UaWZPk+aCoLBjs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hOO61fY4; 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="hOO61fY4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EE36C2BD11; Wed, 22 May 2024 06:24:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716359043; bh=NS7Q/C7TWz5mXwgc8i4sNj++SqlcKA3P2MHvS/JLQ4I=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hOO61fY400XFuyattVQXcPPQADYSjd7t8qU2EFZDk/SG5vfRQ8pzmK20PCN98K7mJ H1Ylj8RjgtJzx5zZAeXQnh8RHwaNEz66LTXxX9m+DEq8pEFbcBGKe4wbWgL5U5H46W LF9imr2NPrHDRqAA3xYEHxvx8/31dPADtRDp5eeY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47470: mm, slub: fix potential use-after-free in slab_debugfs_fops Date: Wed, 22 May 2024 08:23:36 +0200 Message-ID: <2024052228-CVE-2021-47470-094f@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=1812; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NS7Q/C7TWz5mXwgc8i4sNj++SqlcKA3P2MHvS/JLQ4I=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm+/QmZz1/O3K6/vc0+5H1JiXqPzAKztT9NJir8cy25K mmoula1I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaSe4FhwcanZU0SKvWBS1+Z BBf+2b5jQexXJ4b5GcWZ6le3v/9wJTBw+6PCuWKbKh69AwA= 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: mm, slub: fix potential use-after-free in slab_debugfs_fops When sysfs_slab_add failed, we shouldn't call debugfs_slab_add() for s because s will be freed soon. And slab_debugfs_fops will use s later leading to a use-after-free. The Linux kernel CVE team has assigned CVE-2021-47470 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 64dd68497be7 and fixed in 5.14.15 with commit 159d8cfbd042 Issue introduced in 5.14 with commit 64dd68497be7 and fixed in 5.15 with commit 67823a544414 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-2021-47470 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: mm/slub.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/159d8cfbd0428d487c53be4722f33cdab0d25d83 https://git.kernel.org/stable/c/67823a544414def2a36c212abadb55b23bcda00c