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 0340A6D1D2 for ; Tue, 21 May 2024 14:38:00 +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=1716302281; cv=none; b=Oz4g2E47SfPL4aBhSEmLQJMsVwLlkUFcDsTm8N/KZTBabxrSdEMxpmJlljDS++QtYsAr2k4swUme5tQwDITB213qLJtw0IHv1wQDvD9SbZSd03sRqd1VAcJiX2rSaU0Ofig6cWGcqH/tKqgQxWB8p9awANYB8kYhKwxFnrNze9E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302281; c=relaxed/simple; bh=sog4um/nsrzMd5a+gzPUPLGMcLVji/UuvC9WQ35wBYc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nji6FKtjXuzzOye4BVeWl7DkPpL5vxanfqCqFfxi75N5L9Csjm+h/Us63KJybUBvyBcOLy8ciIsNPSGh6pRMASFtElzykE40m9XKkT4mlQJQYXgKiGfi20+PYuIpWow0mywiDtHmsqRDrUC9VcP7nQDFtSesfhcAp/47acFdWqw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B+mc0OjC; 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="B+mc0OjC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C12BC2BD11; Tue, 21 May 2024 14:38:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302280; bh=sog4um/nsrzMd5a+gzPUPLGMcLVji/UuvC9WQ35wBYc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=B+mc0OjCAQasGopa2zaD3mmhud5vWOVuaUCBwffeXokwiHIILWHuzORo+/WEIzYFN 0AWL1KMNKLgVa7NyWpXbQeA2hF/fX4a9QcwIDo9MAI4dL5it6LZ5THmgmLUKUXyOM5 qlGYXwq5nOyUr/zr5zdir097pr0VBXmtn02cWVGY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47291: ipv6: fix another slab-out-of-bounds in fib6_nh_flush_exceptions Date: Tue, 21 May 2024 16:35:25 +0200 Message-ID: <2024052123-CVE-2021-47291-8eb9@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=2447; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sog4um/nsrzMd5a+gzPUPLGMcLVji/UuvC9WQ35wBYc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+G7VXyd8Xexa6XODy3+7yiNlbt6msnVs0a2+OcJD1K +YciZhPHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRzQwM8zQmJN7WfOBpEbUm f92qySE7E15Hb2eYH30n3+NNctPXb1P/6zpOb+X8MFffHQA= 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: ipv6: fix another slab-out-of-bounds in fib6_nh_flush_exceptions While running the self-tests on a KASAN enabled kernel, I observed a slab-out-of-bounds splat very similar to the one reported in commit 821bbf79fe46 ("ipv6: Fix KASAN: slab-out-of-bounds Read in fib6_nh_flush_exceptions"). We additionally need to take care of fib6_metrics initialization failure when the caller provides an nh. The fix is similar, explicitly free the route instead of calling fib6_info_release on a half-initialized object. The Linux kernel CVE team has assigned CVE-2021-47291 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit f88d8ea67fbd and fixed in 5.4.136 with commit 830251361425 Issue introduced in 5.3 with commit f88d8ea67fbd and fixed in 5.10.54 with commit ce8fafb68051 Issue introduced in 5.3 with commit f88d8ea67fbd and fixed in 5.13.6 with commit 115784bcccf1 Issue introduced in 5.3 with commit f88d8ea67fbd and fixed in 5.14 with commit 8fb4792f091e 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-47291 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: net/ipv6/route.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/830251361425c5be044db4d826aaf304ea3d14c6 https://git.kernel.org/stable/c/ce8fafb68051fba52546f8bbe8621f7641683680 https://git.kernel.org/stable/c/115784bcccf135c3a3548098153413d76f16aae0 https://git.kernel.org/stable/c/8fb4792f091e608a0a1d353dfdf07ef55a719db5