Skip to contentSkip to conversation

CVE-2021-46996: netfilter: nftables: Fix a memleak from userdata error path in new objects

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Feb 28, 2024

lore
Share & tools
lore
#0 lore raw

From: [email protected]

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