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 D465B1F8EEC for ; Mon, 21 Oct 2024 19:41:21 +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=1729539681; cv=none; b=VAA5F6sYUv+uovRmjUAl/6RyUzr5q6IrlABHrJg42egkgoMK/7WGV1CBNkP/Lp6hTDXVipbBFXYQQNOfnLhPtBSrQ9Ue+I2Xo5eeudRBcjCgLfEtuO9cfC5Hvs9t/eAb9P6zgyebHhahoH0YgulGdaCa11NkeA9HvIkmmLnKf7s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729539681; c=relaxed/simple; bh=amHM4MXaOh3KxrjFj7eqd21+phsIc32MyzgTxvYCryE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=On0cxR1rG2JkCjLTqDTCTSlsuxJiFrv1ymhWn2uLqKqhu8Kn0dtFB/ZjSFa5ipqF2g03QsvcfRsRmBxCB5uKC2zCoJayV0aY3ZyLS7I1nLNeqZ5oYLX+WLfOG3aM/PH27lgSy8PbyHbtVUSMN9KmPqR4j9XKO7p/LCt803CayTw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x3wcD6Dp; 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="x3wcD6Dp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50C9DC4CEC3; Mon, 21 Oct 2024 19:41:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729539681; bh=amHM4MXaOh3KxrjFj7eqd21+phsIc32MyzgTxvYCryE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=x3wcD6Dpy4u3qrgzG8OCVoe566EBLsDSUWVid3NEANSQ1BP1sfjQZuL+yVsc4A/xy Tiipp9iJ3z5EvH6FpCmJkQdBEOgO+oQY+Wt9rLij1By0m9rYiuKuFUvq+jQFXIsAN3 ua5dovQPfJX9Qcyoz03gBKa/lAimZX/QuBPM3zA0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50024: net: Fix an unsafe loop on the list Date: Mon, 21 Oct 2024 21:39:30 +0200 Message-ID: <2024102129-CVE-2024-50024-a052@gregkh> X-Mailer: git-send-email 2.47.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=2860; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=amHM4MXaOh3KxrjFj7eqd21+phsIc32MyzgTxvYCryE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliaz9xFCTM5/srmcQivdLopGp2xaJTBV8irGp3+zav5 LD3v76lI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaym5VhnvIa+/2ahr28n5ZO tvKZ8ELoTGBuA8P8TLtQaSad0/38r48sqm+qZso4sGMPAA== 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 an unsafe loop on the list The kernel may crash when deleting a genetlink family if there are still listeners for that family: Oops: Kernel access of bad area, sig: 11 [#1] ... NIP [c000000000c080bc] netlink_update_socket_mc+0x3c/0xc0 LR [c000000000c0f764] __netlink_clear_multicast_users+0x74/0xc0 Call Trace: __netlink_clear_multicast_users+0x74/0xc0 genl_unregister_family+0xd4/0x2d0 Change the unsafe loop on the list to a safe one, because inside the loop there is an element removal from this list. The Linux kernel CVE team has assigned CVE-2024-50024 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.32 with commit b8273570f802 and fixed in 5.10.227 with commit 68ad5da6ca63 Issue introduced in 2.6.32 with commit b8273570f802 and fixed in 5.15.168 with commit 1cdec792b245 Issue introduced in 2.6.32 with commit b8273570f802 and fixed in 6.1.113 with commit 5f03a7f601f3 Issue introduced in 2.6.32 with commit b8273570f802 and fixed in 6.6.57 with commit 3be342e0332a Issue introduced in 2.6.32 with commit b8273570f802 and fixed in 6.11.4 with commit 49f9b726bf2b Issue introduced in 2.6.32 with commit b8273570f802 and fixed in 6.12-rc3 with commit 1dae9f118718 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-50024 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: include/net/sock.h net/netlink/af_netlink.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/68ad5da6ca630a276f0a5c924179e57724d00013 https://git.kernel.org/stable/c/1cdec792b2450105b1314c5123a9a0452cb2c2f0 https://git.kernel.org/stable/c/5f03a7f601f33cda1f710611625235dc86fd8a9e https://git.kernel.org/stable/c/3be342e0332a7c83eb26fbb22bf156fdca467a5d https://git.kernel.org/stable/c/49f9b726bf2bf3dd2caf0d27cadf4bc1ccf7a7dd https://git.kernel.org/stable/c/1dae9f1187189bc09ff6d25ca97ead711f7e26f9