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 317D33D961 for ; Fri, 17 May 2024 11:40:44 +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=1715946045; cv=none; b=WoOQUhADHBTG5B+xaFF5QSxeLLCS0I/AOz6KDfBXPjsY0cgPSFvWy1bJV84nTZYqh9AwAVene9Z3SMPHF1p9tw3gd3SJqoOXhksMdyCH1Te2JBbF0hZJgPQJ5tFhoEh2oBHxMwqiy3dkCMYDX9G/Izh4AaZ3jTipR0RPFoXyxB8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715946045; c=relaxed/simple; bh=cRvd5t0auhwfZAuZoUG+GLx2aAz88XUFvYRBg4mfNkI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TVW5IDJCEm7B+IxzuxVvYzSRXf70c1bI9K9zr0OPmkyIlluZhrHSs3ammjqaS80ALCsvqd71O+2PZdOM/A1IOFV0Oqn8DAK8QuVI/hX6kdQZBc/1zAJwUAIONPhwSfNN5DuDceSMQAk0MTavYp7Gaud20R94WwG6bsFphzRqq7Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2lQP3shS; 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="2lQP3shS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52F8BC2BD10; Fri, 17 May 2024 11:40:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715946044; bh=cRvd5t0auhwfZAuZoUG+GLx2aAz88XUFvYRBg4mfNkI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2lQP3shS/MYI0zVbClWwAY475mECRb4QyDKRmAefqpG322cvRxvA2SAPpUpoagy9h w0xC6IGvQvowz3/9CMe7hMAWrPjNFrcc0ACSbNxIey4hpHNvZSlRLpCpdQFt2MwPod dGog/uMvARJ7r6WtM5shyQxjzvooaNn2C4JAGc3g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27403: netfilter: nft_flow_offload: reset dst in route object after setting up flow Date: Fri, 17 May 2024 13:40:38 +0200 Message-ID: <2024051738-CVE-2024-27403-c4ba@gregkh> X-Mailer: git-send-email 2.45.1 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=2447; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cRvd5t0auhwfZAuZoUG+GLx2aAz88XUFvYRBg4mfNkI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuTmYh8pzTpeue2a7Ur/1rbNkVnryl4MNjjct2y9UrN kk/KrrXEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPRf88wz1Ih9+zDJIMlcXc4 co9WfGE9/vOqE8M826ca03ceslFJq5wtau0568NtXvndAA== 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_flow_offload: reset dst in route object after setting up flow dst is transferred to the flow object, route object does not own it anymore. Reset dst in route object, otherwise if flow_offload_add() fails, error path releases dst twice, leading to a refcount underflow. The Linux kernel CVE team has assigned CVE-2024-27403 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit a3c90f7a2323 and fixed in 5.15.150 with commit 4c167af9f6b5 Issue introduced in 4.16 with commit a3c90f7a2323 and fixed in 6.1.80 with commit 012df10717da Issue introduced in 4.16 with commit a3c90f7a2323 and fixed in 6.6.19 with commit 558b00a30e05 Issue introduced in 4.16 with commit a3c90f7a2323 and fixed in 6.7.7 with commit 670548c8db44 Issue introduced in 4.16 with commit a3c90f7a2323 and fixed in 6.8 with commit 9e0f0430389b 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-27403 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_flow_table.h net/netfilter/nf_flow_table_core.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/4c167af9f6b5ae4a5dbc243d5983c295ccc2e43c https://git.kernel.org/stable/c/012df10717da02367aaf92c65f9c89db206c15f4 https://git.kernel.org/stable/c/558b00a30e05753a62ecc7e05e939ca8f0241148 https://git.kernel.org/stable/c/670548c8db44d76e40e1dfc06812bca36a61e9ae https://git.kernel.org/stable/c/9e0f0430389be7696396c62f037be4bf72cf93e3