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 194B131355E for ; Wed, 24 Dec 2025 10:57:34 +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=1766573855; cv=none; b=j4FNoG3hiQyxdrgDmRCXgxi7S4sJG/BrKzfIuGa8B/4uXlbwnrVfuM1ZHGmZlN+g0z4fJ3FNzlnI+XX5eDj++LIwJ55HxtgLS5kyvJWRngfa/2ETYbHYyYig82dceWz8Nc052LGcBWQLOSSCysuqDEXN0mh7UymHisiciUN8Fck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573855; c=relaxed/simple; bh=87psuVFtIo56Tuk/E/P4L1rAZico0LpzV5NMnqd7Lf8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j3eb643GyUO8XNsq5VExwilOlGN8JxZaMN5rm5e3+hr7pjtQ/Lgg4YcPvVmNMEFqm6ozFebfsKgM6LlSHMmYCooXGuXJgw2EESB5FxnzW/DpDe6TIcNM8+UhIs4df6DbZ99Worvt+7A9aUBayFVkFGTAQf/pyEcSx0LwRgERZ+I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=C4ol/HWD; 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="C4ol/HWD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36CD2C16AAE; Wed, 24 Dec 2025 10:57:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573854; bh=87psuVFtIo56Tuk/E/P4L1rAZico0LpzV5NMnqd7Lf8=; h=From:To:Cc:Subject:Date:Reply-To:From; b=C4ol/HWDmqj1YtPon1yZdmzpjR2Rax4kDB8oHfBSba4VVzaXe11/aSnl4XCan22bF LPGYcb9C6i6T8EQr3qLARG+4lkeZfDEbBQ5pbHSL0boNGhjUfy5wsH5lYYqb9hL657 ek6iCtaWMu8o7MkY4G1IsUDhtoyGN/0Qv/A17KyI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53987: ping: Fix potentail NULL deref for /proc/net/icmp. Date: Wed, 24 Dec 2025 11:56:31 +0100 Message-ID: <2025122422-CVE-2023-53987-9f08@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2452; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iaYX/hZCA2NHGpt2cDJ+bbdVk4t2dvEN2KUkkdyJ37I=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnex67JvZx576ORyuoCC/c9b+YduJLw8/HjGQ474927P 3f/5t7D3BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT6TFkWLBk7pPYFfGssxqP 7nx+jZW3Ut704RaGBZfS4lqmbkvZwWyv4LNZS6R3jc+icgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ping: Fix potentail NULL deref for /proc/net/icmp. After commit dbca1596bbb0 ("ping: convert to RCU lookups, get rid of rwlock"), we use RCU for ping sockets, but we should use spinlock for /proc/net/icmp to avoid a potential NULL deref mentioned in the previous patch. Let's go back to using spinlock there. Note we can convert ping sockets to use hlist instead of hlist_nulls because we do not use SLAB_TYPESAFE_BY_RCU for ping sockets. The Linux kernel CVE team has assigned CVE-2023-53987 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit dbca1596bbb08318f5e3b3b99f8ca0a0d3830a65 and fixed in 6.1.24 with commit 5a08a32e624908890aa0a2eb442bb6a7669891a8 Issue introduced in 6.0 with commit dbca1596bbb08318f5e3b3b99f8ca0a0d3830a65 and fixed in 6.2.11 with commit 176cbb6da28f36506cc60a4bec4ab8df0c16713a Issue introduced in 6.0 with commit dbca1596bbb08318f5e3b3b99f8ca0a0d3830a65 and fixed in 6.3 with commit ab5fb73ffa01072b4d8031cc05801fa1cb653bee Issue introduced in 5.19.2 with commit de3d723a3985f282a8c9e468d1e198616eb291c8 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-2023-53987 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/ping.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/5a08a32e624908890aa0a2eb442bb6a7669891a8 https://git.kernel.org/stable/c/176cbb6da28f36506cc60a4bec4ab8df0c16713a https://git.kernel.org/stable/c/ab5fb73ffa01072b4d8031cc05801fa1cb653bee