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 72714171643 for ; Fri, 21 Jun 2024 10:25: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=1718965515; cv=none; b=mMAmKyC1iPSMc0+wpgWeeNL+ehJK9pfOSrqbAGjSqR22MOH7m9MElqF8p58JaV+xccbiKZjqnaQoVjyXoR26wa6Yb7vctxAh5j6eZSQRGO5GkzwtQfJMkBiV8MIUMBpB+nyCCBLgKq4l4wCurC8qDHQtqErSDheH4DTyJ1ouCzE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718965515; c=relaxed/simple; bh=1llq94Gp+ejYc7qPSkHJgu9TcFS82OI9BAF6WzKoqRE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uK9/lB6MmRqvye/dxI7gcbLsA2Uw6kHTrL82W62A6lKWju9undximr1y14xnfaW9HN2pYVcqRxViDZZHBHVKtQ5FuYgSC5W2mlA7ihw8ezZcN+ZY/XVWVH0UE3e5a5HhPWJpG1wccT30u1LoJAp/8+Xl/0F/fmSwx8wgoR5Yo30= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YFR0ZW5T; 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="YFR0ZW5T" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EACEFC2BBFC; Fri, 21 Jun 2024 10:25:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718965515; bh=1llq94Gp+ejYc7qPSkHJgu9TcFS82OI9BAF6WzKoqRE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YFR0ZW5TdX976bdaSHYNmdwbqUVQZ3iVW3vp2SM9MBAqstnirZ+7x7BudGwc9a45c zYsigNOtzYKwh5xf3oT25kPLQSDnI2W48pilrW4hQiav2aOcUNPpssrMz6y5DUGFLp glMijsYKrSHt9Xav0Pu0ttW6ppxHHtWXuqEpnuW0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36270: netfilter: tproxy: bail out if IP has been disabled on the device Date: Fri, 21 Jun 2024 12:19:35 +0200 Message-ID: <2024062135-CVE-2024-36270-f7f7@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=3032; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1llq94Gp+ejYc7qPSkHJgu9TcFS82OI9BAF6WzKoqRE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmlwduFlvuWnrufJuJqzqMcsrz7tzPf4ifrry1i6v2vc +G7blRFRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEbxXDgu1/hLtblVn7H5m7 qM1XeTV/9Y7JZQxzBTne/21lab1+5ciF3w2OL0U3vvxuCAA= 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: tproxy: bail out if IP has been disabled on the device syzbot reports: general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] [..] RIP: 0010:nf_tproxy_laddr4+0xb7/0x340 net/ipv4/netfilter/nf_tproxy_ipv4.c:62 Call Trace: nft_tproxy_eval_v4 net/netfilter/nft_tproxy.c:56 [inline] nft_tproxy_eval+0xa9a/0x1a00 net/netfilter/nft_tproxy.c:168 __in_dev_get_rcu() can return NULL, so check for this. The Linux kernel CVE team has assigned CVE-2024-36270 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.37 with commit cc6eb4338569 and fixed in 5.4.278 with commit 10f0af5234da Issue introduced in 2.6.37 with commit cc6eb4338569 and fixed in 5.10.219 with commit 07eeedafc59c Issue introduced in 2.6.37 with commit cc6eb4338569 and fixed in 5.15.161 with commit 6fe5af4ff06d Issue introduced in 2.6.37 with commit cc6eb4338569 and fixed in 6.1.93 with commit caf3a8afb5ea Issue introduced in 2.6.37 with commit cc6eb4338569 and fixed in 6.6.33 with commit 570b4c52096e Issue introduced in 2.6.37 with commit cc6eb4338569 and fixed in 6.9.4 with commit 819bfeca16eb Issue introduced in 2.6.37 with commit cc6eb4338569 and fixed in 6.10-rc2 with commit 21a673bddc8f 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-36270 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/ipv4/netfilter/nf_tproxy_ipv4.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/10f0af5234dafd03d2b75233428ec3f11cf7e43d https://git.kernel.org/stable/c/07eeedafc59c45fe5de43958128542be3784764c https://git.kernel.org/stable/c/6fe5af4ff06db3d4d80e07a19356640428159f03 https://git.kernel.org/stable/c/caf3a8afb5ea00db6d5398adf148d5534615fd80 https://git.kernel.org/stable/c/570b4c52096e62fda562448f5760fd0ff06110f0 https://git.kernel.org/stable/c/819bfeca16eb9ad647ddcae25e7e12c30612147c https://git.kernel.org/stable/c/21a673bddc8fd4873c370caf9ae70ffc6d47e8d3