Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 434FB3A2E0A for ; Sun, 19 Jul 2026 15:03:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473394; cv=none; b=s8H+Fos3y7VU7J/4sGI7JWj3ZxeoGjG6zL1pX0Z3K3mCZrb6Zm6ux4I8dxiUHNy59X+6xMzvZswAMQWiwyTl+O1pmkLwdQksIgLtTXYpA8qpZMFbL2XXQGGc2yvv95sQqCJkO5KvU1JbvcKP7NfJlU12mVLLETWvSWKcpwobeV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473394; c=relaxed/simple; bh=gZ81BZyZbTjP0/DZEvkghRHX3NNCkoZdnDr9Xy7+Y/c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fJY4wH1kX7L0YOxWXQehgrug2j0JfEdBg29nJUqTRHKJ1WnVW6pEca659yfeWlHuu6Ei9QpnbUuTexvTxV3yz97QUlVPWocC6Gtnca4lNFsiTWJA4smmBeFvA6vuBqg5fCxt8JusMYYmIIQEbAAUDUb0HrDSIc9XbWRHyfrf5gI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zW6/l/li; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="zW6/l/li" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A69301F000E9; Sun, 19 Jul 2026 15:03:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784473393; bh=BG/mfHM6D2+osMkWTBb3EbxsrL49Q4JYPdfUJcQSJ7U=; h=From:To:Cc:Subject:Date:Reply-To; b=zW6/l/lidKSfWt5lv6cohr0KSKmcn5xjLKme0bweSm0fQf6spSY0RfL4jf3+K3Bt4 LEC2ziPEako2IITU3Nn84aIGvrVc2o0P5XGbvUOW7lm4XPNbN1V3pB+MZWiNgY0vvj PH+obuIPX6/5NBOHItihSct3YsRzaofOJNic2sOA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64002: ipv4: free net->ipv4.sysctl_local_reserved_ports after unregister_net_sysctl_table() Date: Sun, 19 Jul 2026 16:57:42 +0200 Message-ID: <2026071907-CVE-2026-64002-b8fe@gregkh> X-Mailer: git-send-email 2.55.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=3416; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yyVPgUUWRMFQLKJb93S8DF7v1XsQFdpTSGfAaxN72mM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxT9sf2M5+dNu0N2P/xfDFp1TWNV5tuOMSt8tTz9/Ks DfW+ElnRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyEh51hwfaoZYm/hL6uYbcV YJn+8apYxurQXwzza8t7m889eWLMpqEz/Syv2YGCWCdmAA== 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: ipv4: free net->ipv4.sysctl_local_reserved_ports after unregister_net_sysctl_table() ipv4_sysctl_exit_net() is currently freeing net->ipv4.sysctl_local_reserved_ports too soon. Only after unregister_net_sysctl_table() we can be sure no threads can possibly use the sysctls, including /proc/sys/net/ipv4/ip_local_reserved_ports. The Linux kernel CVE team has assigned CVE-2026-64002 to this issue. Affected and fixed versions =========================== Issue introduced in 3.16 with commit 122ff243f5f104194750ecbc76d5946dd1eec934 and fixed in 5.10.259 with commit ecf45080a4d3f4526cacb8b14060fe3b49a6913b Issue introduced in 3.16 with commit 122ff243f5f104194750ecbc76d5946dd1eec934 and fixed in 5.15.210 with commit a0ffc6081a8b27082dd5eae5aa1e3f59bbecf06c Issue introduced in 3.16 with commit 122ff243f5f104194750ecbc76d5946dd1eec934 and fixed in 6.1.176 with commit 5b23a2ff379e70b6b9ff744a972b63e1f8f4d996 Issue introduced in 3.16 with commit 122ff243f5f104194750ecbc76d5946dd1eec934 and fixed in 6.6.143 with commit 8e59d4d0dcde2dfb07a7ef855c849a2a0560aa57 Issue introduced in 3.16 with commit 122ff243f5f104194750ecbc76d5946dd1eec934 and fixed in 6.12.93 with commit 6512c57c4638ddec113bf42439361ba85a12048d Issue introduced in 3.16 with commit 122ff243f5f104194750ecbc76d5946dd1eec934 and fixed in 6.18.35 with commit a7f4eefb6e1458431eef9fa20fb363320d185f76 Issue introduced in 3.16 with commit 122ff243f5f104194750ecbc76d5946dd1eec934 and fixed in 7.0.12 with commit 155f90be5ee8be5b110ebc0b7da33c54c83b0208 Issue introduced in 3.16 with commit 122ff243f5f104194750ecbc76d5946dd1eec934 and fixed in 7.1 with commit 87a1e0fe7776da7ab411be332b4be58ac8840d10 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-2026-64002 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/sysctl_net_ipv4.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/ecf45080a4d3f4526cacb8b14060fe3b49a6913b https://git.kernel.org/stable/c/a0ffc6081a8b27082dd5eae5aa1e3f59bbecf06c https://git.kernel.org/stable/c/5b23a2ff379e70b6b9ff744a972b63e1f8f4d996 https://git.kernel.org/stable/c/8e59d4d0dcde2dfb07a7ef855c849a2a0560aa57 https://git.kernel.org/stable/c/6512c57c4638ddec113bf42439361ba85a12048d https://git.kernel.org/stable/c/a7f4eefb6e1458431eef9fa20fb363320d185f76 https://git.kernel.org/stable/c/155f90be5ee8be5b110ebc0b7da33c54c83b0208 https://git.kernel.org/stable/c/87a1e0fe7776da7ab411be332b4be58ac8840d10