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 0FD804316A for ; Wed, 8 May 2024 19:37:50 +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=1715197070; cv=none; b=hiNjnLn1AjJB/F78YHfDI2i/770JVnqx1RhhVn3cEsX038+ZZJn9BPRzx9Nczj2E6U2Nj2D/7PaI2wkVibofbl4bEVuxvxQ+/LDBwBZag59LRGCFvEZ8N5EQPelYS1Cq92W5pPEweNXbLX5JmdRt5ULDhpCFlXi36lUfpmeB+Mo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715197070; c=relaxed/simple; bh=a1n19RCNG+QCyKC/OYeXI5KDc2IT5iFdQNXx9GkZTPg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ONTjvasXKtv0Vxk9r32TuKYmaKJFfqwPtmu3XQgMpn3A70mGB+oI/Nsgt5DoLK9BMPmxxCw+UdGpkePoBT1YtT/OA3NFxNkIFkI59YnpNXcQYkDBPn14spnzjIYtRp+RIfIkNiEgCZDf/7nDuAjpj2Twrz8+XeMc0y1UJSlVDpk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lnnYNX/2; 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="lnnYNX/2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89940C113CC; Wed, 8 May 2024 19:37:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715197069; bh=a1n19RCNG+QCyKC/OYeXI5KDc2IT5iFdQNXx9GkZTPg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=lnnYNX/28TBRjj3aeZBMOH/U7PyzQrZLCmZLwwJmMNudTmTANRqFIJEnaPjYQ83mu AYd/ii/FHmVf587MrWgfFzMGRk19k9vDDtXuw6MTR3nkqo+d4alViEiMbNkLJGxOwb cjP3fYrhhu3Kz81qRtQFdiw2TvUWKI1hPBKW7ofg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27394: tcp: Fix Use-After-Free in tcp_ao_connect_init Date: Wed, 8 May 2024 20:37:36 +0100 Message-ID: <2024050836-CVE-2024-27394-4277@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=1950; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=a1n19RCNG+QCyKC/OYeXI5KDc2IT5iFdQNXx9GkZTPg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnWVxqmZMQw9W9LfpnKp7Zy+60tS4w8/LK1HRi83Js0b /LOd7rdEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPR6mVYsOHbAdPGBSI73+9h KHoTzuwY/237WYYFjUrHSkXPs3xVmcbQWtucMNdhBscpAA== 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: tcp: Fix Use-After-Free in tcp_ao_connect_init Since call_rcu, which is called in the hlist_for_each_entry_rcu traversal of tcp_ao_connect_init, 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-27394 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 7c2ffaf21bd6 and fixed in 6.8.9 with commit ca4fb6c6764b Issue introduced in 6.7 with commit 7c2ffaf21bd6 and fixed in 6.9-rc6 with commit 80e679b352c3 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-27394 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/tcp_ao.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/ca4fb6c6764b3f75b4f5aa81db1536291897ff7f https://git.kernel.org/stable/c/80e679b352c3ce5158f3f778cfb77eb767e586fb