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 9892028313F for ; Wed, 18 Jun 2025 11:06:15 +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=1750244775; cv=none; b=gorRlie9p1hMHVzAM0yQpV9hQASUy5Uwi/Rdm20J651Z3adalrRiYSu26ydXSJiOKL2JHQY/4pSiHzfbpBljNhsMSOIRqU4u9k321CIgZPPj/1CJszC5c26PzJ2x5lpA64jrmhKGCDmqiHfAPsFM2YN/Eu/MdWLbzWKzD0aYtrg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244775; c=relaxed/simple; bh=xsxnKNTWo7nfHw9bPCgjD+ET+Uc4dTUT1Rn6kxkPSt8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cQnRg1VRYjfJgQYZM958UswGNyAdvQuIsJKFnd/4edpWLam1+WLGK0WO4+rK05ORPn6qdevyYrdM6BSrKtQCv+Y6DI0vg0QmRHoLYMyQ8k6C2CWQ1/phRoJAndIMj5cphbnj/a4A+knZOrFbqRfPrPOz7mduNcKwSvlHGlBwd3w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZNeZIUt5; 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="ZNeZIUt5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F8FFC4CEE7; Wed, 18 Jun 2025 11:06:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244775; bh=xsxnKNTWo7nfHw9bPCgjD+ET+Uc4dTUT1Rn6kxkPSt8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ZNeZIUt5LMjhgqaAeG72tPRyYXLhUozJEgbD+2RXlsmAo2aYaiOfwJYY+gLRYbI1p 7o8OgkYCuev/Tn7tq63FB9tQp0zxLXW3oOS1jLA6cBiG9rXVJ8b8nbPP7HGzu3Mpwm jEfNdJGnLoefm4nSVwItmBNn3KWZHzEGZeK8/wkM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50001: netfilter: nft_tproxy: restrict to prerouting hook Date: Wed, 18 Jun 2025 13:01:06 +0200 Message-ID: <2025061828-CVE-2022-50001-51f3@gregkh> X-Mailer: git-send-email 2.49.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=2826; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=x8b9gxG4Hn9cU/SG6eIBJWXlT94FBCi+8453kUHMOus=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc3yqd734/FZk3s4/W869uHCvlM0xVDal95Y5m5Cy8 m9Pt1dbO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi6XUM89MMS3k3HSlZbCh1 Kym74G3p6m9WhxnmqTG/e/Nc9ajsgnU6sdIynef3RrKdAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_tproxy: restrict to prerouting hook TPROXY is only allowed from prerouting, but nft_tproxy doesn't check this. This fixes a crash (null dereference) when using tproxy from e.g. output. The Linux kernel CVE team has assigned CVE-2022-50001 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit 4ed8eb6570a49931c705512060acd50058d61616 and fixed in 4.19.273 with commit 0b21edf4cc13516716848e0a4fdf726aa2a62cd9 Issue introduced in 4.19 with commit 4ed8eb6570a49931c705512060acd50058d61616 and fixed in 5.4.232 with commit 83ef55c4281f1b4c6bd4457c2e96ccd1c9e80200 Issue introduced in 4.19 with commit 4ed8eb6570a49931c705512060acd50058d61616 and fixed in 5.10.169 with commit eaba3f9b672c3a3f820da8ee9584b9520674eafa Issue introduced in 4.19 with commit 4ed8eb6570a49931c705512060acd50058d61616 and fixed in 5.15.95 with commit 9a1d92cbeac3335fee99fa865b8c5b0f2e71a8f7 Issue introduced in 4.19 with commit 4ed8eb6570a49931c705512060acd50058d61616 and fixed in 5.19.6 with commit 343fed6b0daeb528ae5c9d4d84d9ff763ac95619 Issue introduced in 4.19 with commit 4ed8eb6570a49931c705512060acd50058d61616 and fixed in 6.0 with commit 18bbc3213383a82b05383827f4b1b882e3f0a5a5 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-2022-50001 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_tproxy.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/0b21edf4cc13516716848e0a4fdf726aa2a62cd9 https://git.kernel.org/stable/c/83ef55c4281f1b4c6bd4457c2e96ccd1c9e80200 https://git.kernel.org/stable/c/eaba3f9b672c3a3f820da8ee9584b9520674eafa https://git.kernel.org/stable/c/9a1d92cbeac3335fee99fa865b8c5b0f2e71a8f7 https://git.kernel.org/stable/c/343fed6b0daeb528ae5c9d4d84d9ff763ac95619 https://git.kernel.org/stable/c/18bbc3213383a82b05383827f4b1b882e3f0a5a5