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 09FCC15B11D for ; Mon, 29 Jul 2024 15:54:06 +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=1722268447; cv=none; b=oeUJPCiS1R6JVb0/X8+i+8X66VtkY3XKEWTv5M8hGY7tIdUlrpZQH7Lpd7vRswHbD4eywsbPv3+yQv2nBfglzjhRJGF0+fwgGMtxAdITADfTsY2GYKyNv908f4/KjqK0Nk9IKbQlEXGg47CKOkMN5fncx2ocZmJVooBCqbvxZdA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722268447; c=relaxed/simple; bh=ckz7GveAIgwDsTnyC41ssBiTa9yjArLjm7uu2nnV5xI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S/dBuxnltX/LSSUJa4edOl/Nuu2qKt34YvUuKFGc3dBNFMvkj4EK59GQBi74heBA8Ii/TsuoWHJVHBxibTDy8M4DLL8FwixxqzBTsDF++uAnpdy2tj3cS6I62sxP+BTLlzB5bdK89JwCFI50TytfR02bGW3rINQ8mqASPdLy9PA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gI+DQbCm; 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="gI+DQbCm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F11FC4AF09; Mon, 29 Jul 2024 15:54:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722268446; bh=ckz7GveAIgwDsTnyC41ssBiTa9yjArLjm7uu2nnV5xI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gI+DQbCmQ/OQAtjfCloY2x/oeU0xyrAXQNDSOqHSCXXYfOE6OKxS2ikQyX/3zZEUO 42pTON8LDY0ubhTHN9Z+gV/TVCO24X39mQdw0Luym6py/r90pbTMUxvxR+ST/V1buK GyTnAS6b0bB+KuteNOsOFttl04blYb4mFJwSDkEE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42070: netfilter: nf_tables: fully validate NFT_DATA_VALUE on store to data registers Date: Mon, 29 Jul 2024 17:52:59 +0200 Message-ID: <2024072952-CVE-2024-42070-b271@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=3125; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ckz7GveAIgwDsTnyC41ssBiTa9yjArLjm7uu2nnV5xI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnLd115sjdx5arY9Tf1L6iyTNLNVTzTcEf00I5ry9+bx N2vDlz0oyOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAm8vYPw4KpHhsvX7+zL0m7 /eA8Cc0L7nyrj91lWNDXnPZX55zy6SltqYZGOrKTgitTWAE= 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: fully validate NFT_DATA_VALUE on store to data registers register store validation for NFT_DATA_VALUE is conditional, however, the datatype is always either NFT_DATA_VALUE or NFT_DATA_VERDICT. This only requires a new helper function to infer the register type from the set datatype so this conditional check can be removed. Otherwise, pointer to chain object can be leaked through the registers. The Linux kernel CVE team has assigned CVE-2024-42070 to this issue. Affected and fixed versions =========================== Issue introduced in 3.13 with commit 96518518cc41 and fixed in 4.19.317 with commit 40188a25a984 Issue introduced in 3.13 with commit 96518518cc41 and fixed in 5.4.279 with commit 23752737c6a6 Issue introduced in 3.13 with commit 96518518cc41 and fixed in 5.10.221 with commit 5d43d789b579 Issue introduced in 3.13 with commit 96518518cc41 and fixed in 5.15.162 with commit 461302e07f49 Issue introduced in 3.13 with commit 96518518cc41 and fixed in 6.1.97 with commit efb27ad05949 Issue introduced in 3.13 with commit 96518518cc41 and fixed in 6.6.37 with commit 952bf8df2225 Issue introduced in 3.13 with commit 96518518cc41 and fixed in 6.9.8 with commit 41a6375d48de Issue introduced in 3.13 with commit 96518518cc41 and fixed in 6.10 with commit 7931d32955e0 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-42070 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: include/net/netfilter/nf_tables.h net/netfilter/nf_tables_api.c net/netfilter/nft_lookup.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/40188a25a9847dbeb7ec67517174a835a677752f https://git.kernel.org/stable/c/23752737c6a618e994f9a310ec2568881a6b49c4 https://git.kernel.org/stable/c/5d43d789b57943720dca4181a05f6477362b94cf https://git.kernel.org/stable/c/461302e07f49687ffe7d105fa0a330c07c7646d8 https://git.kernel.org/stable/c/efb27ad05949403848f487823b597ed67060e007 https://git.kernel.org/stable/c/952bf8df222599baadbd4f838a49c4fef81d2564 https://git.kernel.org/stable/c/41a6375d48deaf7f730304b5153848bfa1c2980f https://git.kernel.org/stable/c/7931d32955e09d0a11b1fe0b6aac1bfa061c005c