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 1C6DD78C7D for ; Wed, 22 May 2024 06:23:52 +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=1716359032; cv=none; b=Nt0FTnyAo2H4dvWNekYvJjzl5Y4fNi56UtdcYL7QfpD8mXtxXSmqo0zdTnpgvqTQoPafox7pbgNnmkKBlbhCHc2wa8QUjSGCwTwLNFr3w8RSM4y6xj6NJalwQqpXAov8Ilf9jq7leMcmGUX0xckwyP+I4rGXH1dTf1Y4HENVWZc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716359032; c=relaxed/simple; bh=idY2VmagR1csWIQUC7wuNkJGkQduyeJAdu8newDf398=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cFc13EQe5Alii7OL/Gg3GLA9W2Fqnd3UxOK1xM7ABm7A7No7GqN2xHhDDiTbXjku6tcG5H+8Cv+pA1rq3rVpKU4jtf298SyneNfc+1C26+rnwUEGj299RKGoRuZyQeefCHbwyj5YwNzrS2+NFitNHHL44fFsISN4RSOGWcYZoq8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0bxyrRnD; 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="0bxyrRnD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F90EC2BD11; Wed, 22 May 2024 06:23:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716359032; bh=idY2VmagR1csWIQUC7wuNkJGkQduyeJAdu8newDf398=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0bxyrRnDm9dNQql1FOrZ1sxI9dIGEkpfa9lnmLehzMlqBK5ByIah9kh0d/CGRkXWS AR5im8hZwJKWScAybuF7wzVdC2dQmc3icz4GKUnFJzkM3bvdV4ku0Zh8X8rWPJlLCE 20JK6lvno5AEUf9aEKU3UTwtofeBAeR/Xl+y6Y0I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47466: mm, slub: fix potential memoryleak in kmem_cache_open() Date: Wed, 22 May 2024 08:23:32 +0200 Message-ID: <2024052227-CVE-2021-47466-ff03@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=2121; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=idY2VmagR1csWIQUC7wuNkJGkQduyeJAdu8newDf398=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm+/fHXS63PTlxjcX8685MsLQmT+KVSa2sea6zesPL3i 3u+swr6OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiu5kY5tdxx4ttK56/2M7x 7u/Ab4F9ZxcpuTLMT3NMncB8YQvrpD9VD265H/i2xmkKAwA= 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 memoryleak in kmem_cache_open() In error path, the random_seq of slub cache might be leaked. Fix this by using __kmem_cache_release() to release all the relevant resources. The Linux kernel CVE team has assigned CVE-2021-47466 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit 210e7a43fa90 and fixed in 5.4.156 with commit 4f5d1c29cfab Issue introduced in 4.8 with commit 210e7a43fa90 and fixed in 5.10.76 with commit 568f906340b4 Issue introduced in 4.8 with commit 210e7a43fa90 and fixed in 5.14.15 with commit 42b81946e3ac Issue introduced in 4.8 with commit 210e7a43fa90 and fixed in 5.15 with commit 9037c57681d2 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-47466 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/4f5d1c29cfab5cb0ab885059818751bdef32e2bb https://git.kernel.org/stable/c/568f906340b43120abd6fcc67c37396482f85930 https://git.kernel.org/stable/c/42b81946e3ac9ea0372ba16e05160dc11e02694f https://git.kernel.org/stable/c/9037c57681d25e4dcc442d940d6dbe24dd31f461