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 69F1713D8B2 for ; Fri, 12 Jul 2024 12:21:23 +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=1720786883; cv=none; b=JJNx0Hw/6IGn90D4r/obKfZg16NQQ0hsoeNMZFjT45p6bfiUhkbQ/SFOoboEJ2xbBJ0rGEy4nvSwhEPbuU+s1xKmIohwZTc8vzWSjZ7bMNBx1y5qUITvpI+gQNTiet46e31E02Dru4Xtbx16h2MMoLBq7CQWI3QtK+ER2Q/kcyM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720786883; c=relaxed/simple; bh=bT4jbDZ0cAWd/QfusGRy+BKmM91sOss3K4NuuDS+adI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KL4Lxe+uIS5IcMkXbQ+SfGEQn4KFJBmk796Aq4p7QYsBjzorJ8heISh1Z1vheFKFfdflmelNc3UtrSzA8Sh5gv65CKRsKeF2NP55vdMfSFrTvcD1LbKnY9XWc3jec+blu8/wHadH+MErzRm15ApGLw7IBSee42i/aomjqXszLis= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=k0ZSsLpi; 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="k0ZSsLpi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FD4DC32782; Fri, 12 Jul 2024 12:21:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720786883; bh=bT4jbDZ0cAWd/QfusGRy+BKmM91sOss3K4NuuDS+adI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=k0ZSsLpinJwzAp7Ecyy8JJw8vDuW4DRmgo8C5JuzKCHvTFavWVbkrePx4FX8NJ1bz 2KzfWL0236njZ2gB7TpJTrfjRXWi5EdbJv6rU4QpeAdPI+8s6NA/DX0ClH1xldTT0T IfRG/4WhpbJA8Pi8cyGZZJkUWIHg++yj5M/zu43s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-39504: netfilter: nft_inner: validate mandatory meta and payload Date: Fri, 12 Jul 2024 14:21:10 +0200 Message-ID: <2024071204-CVE-2024-39504-1223@gregkh> X-Mailer: git-send-email 2.45.2 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=2035; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bT4jbDZ0cAWd/QfusGRy+BKmM91sOss3K4NuuDS+adI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkT5Tc+9Fsr4PPVISWJTX/6FEWTlYxl/EXyZ/Xt3WPlP Z9Mu3WqI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYS+pxhfrB9MUuLz+z8uK2K X9ecDpvVYvxsN8M8M6GneSamD8UW/szZcp/hk41jzMtUAA== 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: nft_inner: validate mandatory meta and payload Check for mandatory netlink attributes in payload and meta expression when used embedded from the inner expression, otherwise NULL pointer dereference is possible from userspace. The Linux kernel CVE team has assigned CVE-2024-39504 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 3a07327d10a0 and fixed in 6.6.35 with commit b30669fdea0c Issue introduced in 6.2 with commit 3a07327d10a0 and fixed in 6.9.6 with commit 39323f54cad2 Issue introduced in 6.2 with commit 3a07327d10a0 and fixed in 6.10-rc4 with commit c4ab9da85b9d 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-39504 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/nft_meta.c net/netfilter/nft_payload.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/b30669fdea0ca03aa22995e6c99f7e7d9dee89ff https://git.kernel.org/stable/c/39323f54cad29602917848346c71b087da92a19d https://git.kernel.org/stable/c/c4ab9da85b9df3692f861512fe6c9812f38b7471