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 EC20612CDBF for ; Wed, 1 May 2024 13:07: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=1714568873; cv=none; b=eKHy55+C+6csYMUZd9yVOGBOuYe+4w8s5od7i7U0JKzuSeAgo7rXy/Z3LUSxZYYJMuoP4mjcrZEnyFuU31GtQvs/ipy//Bg70IW7zm2k6yZKVoROORUFNZLICVO2+2ZciSy7iNnXRiQzvKtnFfov1rn4rUIpO97VkXEYFHvObsA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568873; c=relaxed/simple; bh=uNSgkqod/Yo1cSONrDJxdtIPfWR8/a6D05w5aHXNmWM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hLAZNBdzxSdPRj/RSOchPsYx21+Vwhc2+R3D4hba9EdKa1gSniC4c3pADcu2dwSDeX00Dt+Og1Auu2z3teJsTJrWxwqQOi1aa4uQku4SXyDDw1/Fw3iJ26s5KQiW4/tkkvbLz9jUDkWWfpNVyWX/RItiSwg+hpWpufeaF2/O2WE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WDMir9qe; 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="WDMir9qe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35C01C113CC; Wed, 1 May 2024 13:07:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714568872; bh=uNSgkqod/Yo1cSONrDJxdtIPfWR8/a6D05w5aHXNmWM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=WDMir9qeibUiaWLFMF+BUWS0WxHB2Gu1gpUSyEMsf/YHk0dkNmzJ4p74H+1utYq1G YnHD9ldZXNUYp7Z5BvytpltNLsbti5dt5chMaT0MN4GMKaX5QWJ0Gk3OJT85HP8aSv xYp9dMgAwSe8OUiKLAmBhj/yhldIOFQ1qQu0vfTk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27064: netfilter: nf_tables: Fix a memory leak in nf_tables_updchain Date: Wed, 1 May 2024 15:06:35 +0200 Message-ID: <2024050132-CVE-2024-27064-8046@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=2270; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uNSgkqod/Yo1cSONrDJxdtIPfWR8/a6D05w5aHXNmWM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlGdhEhl5YvbhUIkyvU6Y6YkXwj22DqtuXfSjivZmnMf /zxw2S+jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIRDHDgqvKmk9j1P8tSpFO e+1u6cbmfOgtP8P88pthzY52P82z7lY2V13cNPPw4VvxAA== 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 a memory leak in nf_tables_updchain If nft_netdev_register_hooks() fails, the memory associated with nft_stats is not freed, causing a memory leak. This patch fixes it by moving nft_stats_alloc() down after nft_netdev_register_hooks() succeeds. The Linux kernel CVE team has assigned CVE-2024-27064 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit b9703ed44ffb and fixed in 6.6.23 with commit 79846fdcc548 Issue introduced in 6.4 with commit b9703ed44ffb and fixed in 6.7.11 with commit 4e4623a4f6e1 Issue introduced in 6.4 with commit b9703ed44ffb and fixed in 6.8.2 with commit e77a6b53a3a5 Issue introduced in 6.4 with commit b9703ed44ffb and fixed in 6.9-rc1 with commit 7eaf837a4eb5 Issue introduced in 6.3.3 with commit d131ce7a319d 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-2024-27064 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/79846fdcc548d617b0b321addc6a3821d3b75b20 https://git.kernel.org/stable/c/4e4623a4f6e133e671f65f9ac493bddaaf63e250 https://git.kernel.org/stable/c/e77a6b53a3a547b6dedfc40c37cee4f310701090 https://git.kernel.org/stable/c/7eaf837a4eb5f74561e2486972e7f5184b613f6e