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 D8FFD41C85 for ; Sat, 2 Mar 2024 21:54:27 +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=1709416467; cv=none; b=XKfyJ79AYv1grz/2sLuv1u+urh5UMNrGdN707bPKFVrQNC8FuoVE0gvVxZcYWvPESA4GEWzFUJePojLYtZu8uA/Q3zfuwe8RWu1ObBs2oZqs1Uzb14ocJuIY0CFJgpWG3jkUUiTyKs1+uHJTdlVSGYkMGhefl3S1HNpcYzNA4pA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709416467; c=relaxed/simple; bh=q7xHGZh1kS4VlzcDjaavyfwwLJmzEhKNaZ5UV9EJ3Aw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aLlGKPxM6ln4jaDdqKSnj1scHdXQ2BeCJpK7X27/e+49Xi7Rx3PG2uLEYx+fzVd19lYfzkKyBXijKCXeB7rOntcygPqXgp1dXFiAIhrGjFuBipTtAKGRZkmOWUShN63CdsQqfoJWJVY5OqGhjxzZsnsyK7x7n60AROqgBVy8thU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cG9jRVEs; 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="cG9jRVEs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EC06C433C7; Sat, 2 Mar 2024 21:54:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709416467; bh=q7xHGZh1kS4VlzcDjaavyfwwLJmzEhKNaZ5UV9EJ3Aw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cG9jRVEs4aGyICQUOT5SOsuDmE/x2GNeH5oWoa8nscfkxJahWi92P5GTMhlgHE6dS EDqYbdTi/f31mFSbEmFjD29v4QqY7HWgS9d+ucf0Mk2eMFVoZuGiGfXMAwf2oIubgI guylf5y+6VcBLJDqR4htYSl0auQ69KwX55czc9vg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52522: net: fix possible store tearing in neigh_periodic_work() Date: Sat, 2 Mar 2024 22:53:06 +0100 Message-ID: <2024030253-CVE-2023-52522-6abd@gregkh> X-Mailer: git-send-email 2.44.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=2757; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=q7xHGZh1kS4VlzcDjaavyfwwLJmzEhKNaZ5UV9EJ3Aw=; b=owGbwMvMwCRo6H6F97bub03G02pJDKmP5289z/J/7kqR12erCn5ZOkYKPPq/YvULvvUfs5UPf my2j4zk6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJbD/PsOBC/inNEJ8EZbVv /oHf4h6yZSy+U8QwT13qD6efeLvZF4kp3tPXqjJcLgiQBgA= 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: fix possible store tearing in neigh_periodic_work() While looking at a related syzbot report involving neigh_periodic_work(), I found that I forgot to add an annotation when deleting an RCU protected item from a list. Readers use rcu_deference(*np), we need to use either rcu_assign_pointer() or WRITE_ONCE() on writer side to prevent store tearing. I use rcu_assign_pointer() to have lockdep support, this was the choice made in neigh_flush_dev(). The Linux kernel CVE team has assigned CVE-2023-52522 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.37 with commit 767e97e1e0db and fixed in 5.4.258 with commit 95eabb075a59 Issue introduced in 2.6.37 with commit 767e97e1e0db and fixed in 5.10.198 with commit 2ea52a2fb8e8 Issue introduced in 2.6.37 with commit 767e97e1e0db and fixed in 5.15.135 with commit 147d89ee4143 Issue introduced in 2.6.37 with commit 767e97e1e0db and fixed in 6.1.57 with commit f82aac816287 Issue introduced in 2.6.37 with commit 767e97e1e0db and fixed in 6.5.7 with commit a75152d23337 Issue introduced in 2.6.37 with commit 767e97e1e0db and fixed in 6.6 with commit 25563b581ba3 Please see https://www.kernel.org or 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-2023-52522 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/core/neighbour.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/95eabb075a5902f4c0834ab1fb12dc35730c05af https://git.kernel.org/stable/c/2ea52a2fb8e87067e26bbab4efb8872639240eb0 https://git.kernel.org/stable/c/147d89ee41434b97043c2dcb17a97dc151859baa https://git.kernel.org/stable/c/f82aac8162871e87027692b36af335a2375d4580 https://git.kernel.org/stable/c/a75152d233370362eebedb2643592e7c883cc9fc https://git.kernel.org/stable/c/25563b581ba3a1f263a00e8c9a97f5e7363be6fd