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 99AE8130A51 for ; Wed, 8 May 2024 19:37:53 +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=1715197073; cv=none; b=WlRzU3PBQ1k0xVc6a2JKMdxSb5qzltAwJ2oju+73rOr53Lmcqc8fjZlyRFREe/cED8aQDS2Jeh8RqgEdlo6YV8zKA2BGvY2Fg8xZU/Ozab5wVUN380ukD2Acb33aYmf4QBoE7a6/rKrkGdhGJG7Xk8bWwwY5nVUIjoMo4hgVuP8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715197073; c=relaxed/simple; bh=gylDtg6Ep0LNvFukdh+gKB2acXevPeg7yGrAif0nOfc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Qecwzl/6df7gJTpn/lVuLjU1bgg7AMPPsGdLevGyzPw6HKk6H6NxLafWo9+F5BdWTAHDXX6KVRsegoYnTdk9IBSLzX2ISWuOvQFgQUsVsBOxl3GtNrs71+6omqLcbcyDl9ifYIds2Ov26gnXbVG1N1Ij/G51OzyIc4eYv7qrt44= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JzC139zb; 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="JzC139zb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B335AC113CC; Wed, 8 May 2024 19:37:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715197073; bh=gylDtg6Ep0LNvFukdh+gKB2acXevPeg7yGrAif0nOfc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JzC139zbvf36epgYcFlgpRz/wYFuph4wojmjrPl3f1NInIdd5CGmEm4kIEc+PO/QR bNU2I3KVSdx7KtYm+hCoHs8mekte3W2w4ol2as6JFgp5ShTd30iVJE7f0JGxB9/fSe C4jo/qbcmcUEJTNI66LFERJ23d59A80LeZ0E9IT8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27395: net: openvswitch: Fix Use-After-Free in ovs_ct_exit Date: Wed, 8 May 2024 20:37:37 +0100 Message-ID: <2024050836-CVE-2024-27395-573e@gregkh> X-Mailer: git-send-email 2.45.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=3005; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gylDtg6Ep0LNvFukdh+gKB2acXevPeg7yGrAif0nOfc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnWVxpmRevw9gv9z+t5b3k/0U32X/8s+Z/TW8pmmwZF3 ptmJWLbEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABN5accwP/TJ5g15etk9v298 Vt6/Juut6Uex5wxzuLXF2hq+zd7v/DOp4a7KbI867a9/AA== 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: net: openvswitch: Fix Use-After-Free in ovs_ct_exit Since kfree_rcu, which is called in the hlist_for_each_entry_rcu traversal of ovs_ct_limit_exit, is not part of the RCU read critical section, it is possible that the RCU grace period will pass during the traversal and the key will be free. To prevent this, it should be changed to hlist_for_each_entry_safe. The Linux kernel CVE team has assigned CVE-2024-27395 to this issue. Affected and fixed versions =========================== Issue introduced in 4.18 with commit 11efd5cb04a1 and fixed in 4.19.313 with commit 2db9a8c0a01f Issue introduced in 4.18 with commit 11efd5cb04a1 and fixed in 5.4.275 with commit 589523cf0b38 Issue introduced in 4.18 with commit 11efd5cb04a1 and fixed in 5.10.216 with commit 35880c3fa6f8 Issue introduced in 4.18 with commit 11efd5cb04a1 and fixed in 5.15.158 with commit 9048616553c6 Issue introduced in 4.18 with commit 11efd5cb04a1 and fixed in 6.1.90 with commit bca6fa2d9a9f Issue introduced in 4.18 with commit 11efd5cb04a1 and fixed in 6.6.30 with commit eaa5e164a211 Issue introduced in 4.18 with commit 11efd5cb04a1 and fixed in 6.8.9 with commit edee0758747d Issue introduced in 4.18 with commit 11efd5cb04a1 and fixed in 6.9-rc6 with commit 5ea7b72d4fac 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-27395 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/openvswitch/conntrack.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/2db9a8c0a01fa1c762c1e61a13c212c492752994 https://git.kernel.org/stable/c/589523cf0b384164e445dd5db8d5b1bf97982424 https://git.kernel.org/stable/c/35880c3fa6f8fe281a19975d2992644588ca33d3 https://git.kernel.org/stable/c/9048616553c65e750d43846f225843ed745ec0d4 https://git.kernel.org/stable/c/bca6fa2d9a9f560e6b89fd5190b05cc2f5d422c1 https://git.kernel.org/stable/c/eaa5e164a2110d2fb9e16c8a29e4501882235137 https://git.kernel.org/stable/c/edee0758747d7c219e29db9ed1d4eb33e8d32865 https://git.kernel.org/stable/c/5ea7b72d4fac2fdbc0425cd8f2ea33abe95235b2