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 C050754BDA for ; Sun, 28 Apr 2024 13:05:18 +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=1714309518; cv=none; b=WCpAQcHhQH+EDLfr+KGbvOX2twMvI8NkCUGTMIYu9YPxMJmZxoz+D3TE101qq36TdWoxxfXCDHyqzUY5gevEZPozMFmsS4YnU6Bh6XPGE+MavNUmuG3IE4q6NpRciZAkDeyzzx7r9+Lll2snL8I5PNZP98IHYbI9ne+EJE/V2oM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714309518; c=relaxed/simple; bh=2e5N4p3DAg1x3DqGT4zKVT4CGkFP/JfK1+XgBE0qYSs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a8XjqPcQsx0ejinY2QtUWHEUMdJYjnCHDyZ8uAevgkOviN4i30hhxgJ0UxumGXDmpCkWhH1rZ/272clV5zM1zPk3mBqHbHxLa9JIT9l7WaRIAUWRFX7ZQPqcEako6uRs5VpHM93uPgn0tGWiSG4poHgUE2bDjQ+8p8QdotjkcI4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ATvSSs6o; 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="ATvSSs6o" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFB45C113CC; Sun, 28 Apr 2024 13:05:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714309518; bh=2e5N4p3DAg1x3DqGT4zKVT4CGkFP/JfK1+XgBE0qYSs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ATvSSs6opMohtnZlkl6LCO2XVD7Jgy9JRPo+0vkbdxrAG7bANbIwE4/ShJTJ7kLBx eCxsyzl1TheEbKfQkbfHJOCu6Xqvun5fawm6UUTHGp4k3vUr/us8dr2ziKy3BLJ+DO ov9MoCxmhYPx7MP1J3Vfyj8jCim3YU3Nr/lCX+40= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48642: netfilter: nf_tables: fix percpu memory leak at nf_tables_addchain() Date: Sun, 28 Apr 2024 15:05:03 +0200 Message-ID: <2024042856-CVE-2022-48642-b65b@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=2232; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2e5N4p3DAg1x3DqGT4zKVT4CGkFP/JfK1+XgBE0qYSs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGl6nhWTGGx/8x4xzz5o8F3kg0fsgxdrQxi+bjF7yHvnm 1BYZnFbRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkgT3Dgs7Ji3Q/LJj6MKPv SO5bbjbeztePqxnmZzce2btqj5iif5Agu+ERPbFWtt40AA== 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: netfilter: nf_tables: fix percpu memory leak at nf_tables_addchain() It seems to me that percpu memory for chain stats started leaking since commit 3bc158f8d0330f0a ("netfilter: nf_tables: map basechain priority to hardware priority") when nft_chain_offload_priority() returned an error. The Linux kernel CVE team has assigned CVE-2022-48642 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit 3bc158f8d033 and fixed in 5.10.146 with commit b043a525a3f5 Issue introduced in 5.3 with commit 3bc158f8d033 and fixed in 5.15.71 with commit 08d7524f366a Issue introduced in 5.3 with commit 3bc158f8d033 and fixed in 5.19.12 with commit 985b031667c3 Issue introduced in 5.3 with commit 3bc158f8d033 and fixed in 6.0 with commit 9a4d6dd554b8 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-2022-48642 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/netfilter/nf_tables_api.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/b043a525a3f5520abb676a7cd8f6328fdf959e88 https://git.kernel.org/stable/c/08d7524f366a886b99b1630a24a27dd6e0d7f852 https://git.kernel.org/stable/c/985b031667c3177b9e7fb9787b989628e4271714 https://git.kernel.org/stable/c/9a4d6dd554b86e65581ef6b6638a39ae079b17ac