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 C3AB328DC9 for ; Wed, 28 Feb 2024 08:15: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=1709108152; cv=none; b=UnE1bfX7de0PSeuywMcc17VckMEkedZ+ih5NcgoM5DWsEBypEZS1DOzxFwkkQcM8yikYZ2CDcIfTzuuf/8TPI9yepOH1OkTO/FWcpjV8yQJTOkphA2bdpy3FUpwUl8d1XtBclLyvC1OufFSmceIU9J4/s79VTuS0G+42JHBVawU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108152; c=relaxed/simple; bh=doGBId9+Bz4wPx1+Ya46xYI5iTWwt0c3qZIi/50KyWI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EGpBWari5OgA9AzrcpcSjstpJRTOIUybpkplJqncCFA46fi8CmmYoammBpTEhtgzGHTxv6G+YJPpHuDaKNWBBWZzS2w59jm0LY7CJOEK0iYzgYYpYIdbBV3Kf8Yn01k6a85MoWTT4Ly8yZE3WYi6BNhOvnta5XWGHijVp+8Hpmc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AwSNyeRd; 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="AwSNyeRd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51922C43390; Wed, 28 Feb 2024 08:15:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709108152; bh=doGBId9+Bz4wPx1+Ya46xYI5iTWwt0c3qZIi/50KyWI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AwSNyeRdV6AnwLLY9gQ9XR8WSsAp0p8lNgatcHoXJk77AGUI+MAS0uZKKzNkoNPU0 oapY+dn/rGyGRN0Kn4FGPMjHFW20nwaAFrTj1t4PPU8L4TzKS2G+SqGRKQYzhE05y3 ONt5YqTwXfXPeILZiWy5ZgIetpsJ9qzYJ9URvXwo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: gregkh@kernel.org Subject: CVE-2021-46996: netfilter: nftables: Fix a memleak from userdata error path in new objects Date: Wed, 28 Feb 2024 09:14:46 +0100 Message-ID: <2024022827-CVE-2021-46996-0af4@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=2069; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3bBPvddPc/R58ehnLIC1vDU6hzHd74l8gILAbo+SNsk=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn3Xid75ereurE/4Pokrm1uxy3kjC9kXZCbP4utb/73k k36H63dO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAisn8YFpx4fMPhA+/PXS80 8qQW2iZcmsy4/RHDgtNece4MAoUPHPQe7njMe0ftp7OIIAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: gregkh@kernel.org Description =========== In the Linux kernel, the following vulnerability has been resolved: netfilter: nftables: Fix a memleak from userdata error path in new objects Release object name if userdata allocation fails. The Linux kernel CVE team has assigned CVE-2021-46996 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit b131c96496b3 and fixed in 5.10.38 with commit 2c784a500f5e Issue introduced in 5.10 with commit b131c96496b3 and fixed in 5.11.22 with commit 59fa98bfa1f4 Issue introduced in 5.10 with commit b131c96496b3 and fixed in 5.12.5 with commit dd3bebf515f3 Issue introduced in 5.10 with commit b131c96496b3 and fixed in 5.13 with commit 85dfd816fabf Please see https://www.kernel.org or 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-46996 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/2c784a500f5edd337258b0fdb2f31bc9abde1a23 https://git.kernel.org/stable/c/59fa98bfa1f4013d658d990cac88c87b46ff410c https://git.kernel.org/stable/c/dd3bebf515f336214a91994348a2b86b9a1d3d7f https://git.kernel.org/stable/c/85dfd816fabfc16e71786eda0a33a7046688b5b0