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 AC260168DC for ; Sun, 19 May 2024 08:36:45 +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=1716107806; cv=none; b=mUkYAxs4a6l/jd8kRfbssQQZBZzh/JyjDj4csaqZBFWFg+X86Dh5sCzo5m6c7rc4gfnqQWCc8/8Hwfd/UT9TX09EyhLdkvVqO/BzoDeapHdKmIQoHvS/0QDksO4j85eYptlqiFNOv8SIMfyPoUwHsvLzpBPxzrr/Z17RrVb6JRc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716107806; c=relaxed/simple; bh=73a/mD8ZUPFnBLiu9UQJYTaenKXxBElbXx1pfDB2gV0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tu7t80eBIMQf0RnGxdmN7jG3HRS/jtBmWATm2gP7neqcSesSXpefdQnTA1CjdFR2BdRcmbKbxIsvvw+3Fwnl62Iyz3I0KCeM+acyeFU8E5cGwArNtGAfQRyE0iC2bfrsntAd5RjGoZtlOzWrhITds4RIRvq193fRE7bf8Z6+ih8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AGtx6K9h; 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="AGtx6K9h" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 217D4C32781; Sun, 19 May 2024 08:36:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716107805; bh=73a/mD8ZUPFnBLiu9UQJYTaenKXxBElbXx1pfDB2gV0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AGtx6K9hc+Mr/Rs+YDSlmqeqXYcN8dZ/HyTQXUB9jS7fcvsfNcLHjdxsRbiW5J/ey omRGJLXomYfypvylQoX8cGVkNGLhhNlDY1AZ1Y7M+HQAenNCEDXugB1QIjhc6W5+xa CKclbSdzBPtcjkI/SkhbFeFhGqsieNCLDz/eEQZ0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35897: netfilter: nf_tables: discard table flag update with pending basechain deletion Date: Sun, 19 May 2024 10:35:11 +0200 Message-ID: <2024051951-CVE-2024-35897-1585@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=2795; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=73a/mD8ZUPFnBLiu9UQJYTaenKXxBElbXx1pfDB2gV0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmeO1cHd7y7+y1CSMPqJcv102nr/ktJXFxRX7x5srTMW 9HcRW6/OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiq18zzGbf9/y6dpvNTPZX XRvXB11Y9EPSahHDgoOLt4v2hAdaJNw59ONYlnL23wMTVwEA 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: discard table flag update with pending basechain deletion Hook unregistration is deferred to the commit phase, same occurs with hook updates triggered by the table dormant flag. When both commands are combined, this results in deleting a basechain while leaving its hook still registered in the core. The Linux kernel CVE team has assigned CVE-2024-35897 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4.262 with commit e10f661adc55 and fixed in 5.4.274 with commit 9a3b90904d8a Issue introduced in 5.10.202 with commit d9c4da8cb74e and fixed in 5.10.215 with commit b58d0ac35f6d Issue introduced in 5.13 with commit 179d9ba5559a and fixed in 5.15.155 with commit 6cbbe1ba76ee Issue introduced in 5.13 with commit 179d9ba5559a and fixed in 6.1.86 with commit 2aeb805a1bcd Issue introduced in 5.13 with commit 179d9ba5559a and fixed in 6.6.26 with commit 9627fd0c6ea1 Issue introduced in 5.13 with commit 179d9ba5559a and fixed in 6.8.5 with commit 7f609f630951 Issue introduced in 5.13 with commit 179d9ba5559a and fixed in 6.9 with commit 1bc83a019bbe 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-35897 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/nf_tables_api.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/9a3b90904d8a072287480eed4c3ece4b99d64f78 https://git.kernel.org/stable/c/b58d0ac35f6d75ec1db8650a29dfd6f292c11362 https://git.kernel.org/stable/c/6cbbe1ba76ee7e674a86abd43009b083a45838cb https://git.kernel.org/stable/c/2aeb805a1bcd5f27c8c0d1a9d4d653f16d1506f4 https://git.kernel.org/stable/c/9627fd0c6ea1c446741a33e67bc5709c59923827 https://git.kernel.org/stable/c/7f609f630951b624348373cef99991ce08831927 https://git.kernel.org/stable/c/1bc83a019bbe268be3526406245ec28c2458a518