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 B42BD145FE4 for ; Sat, 17 Aug 2024 09:23:51 +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=1723886631; cv=none; b=tkPmpoLRJZY7Evir6TK+tkWa0UAtoy9LT8OPZlRSXM+0SkdO+CEXcmVIqr0lKsgkDHJMTSAYxYbo3DpLHHiktY26uKVvWZD8YKY4KpjQELN9+K9YnwNU4VA68Nb56FI5GsAKykRqFmrs0KghbqI3AksuE6KKwxnvTOxv0H2XnXs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723886631; c=relaxed/simple; bh=iqqQicAxM+hhIveSqKMRn4k1N2dOsd7mtlKqu0aeFao=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cXzN+NXYVXPnuIeo5StjSFKFtegfzJlwDlc/jNWMsK26yO95iXYVBLYPyFanBQgbEs+HR4/XIbwpPtR62t26dYuSX+hO3BAsTBUQL7Vtwpm7mgep4WmD6vg1Y3YOiMPqdi6wS3vB5WPuIZxoMFpX7Zz7nFOGyvKlEoYkEq1PPnA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XUeIiSKe; 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="XUeIiSKe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED32AC116B1; Sat, 17 Aug 2024 09:23:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723886631; bh=iqqQicAxM+hhIveSqKMRn4k1N2dOsd7mtlKqu0aeFao=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XUeIiSKeiE/AoEWblHO4qlbTBLhWI1gXkzquly3Fvel0Avc4nGjy/m/N1e9cxec6j hAWnMYv/CcjIhPSndHkBPZO+7s1fXdOGN+wkG+q1VecLTI8cP8n4FKtNzSK6Ydzcwg gtdUykVN9XvHxJtg2Hst6FiTdwczjkYlbfs16DRA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43846: lib: objagg: Fix general protection fault Date: Sat, 17 Aug 2024 11:22:50 +0200 Message-ID: <2024081732-CVE-2024-43846-2bd0@gregkh> X-Mailer: git-send-email 2.46.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=3442; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iqqQicAxM+hhIveSqKMRn4k1N2dOsd7mtlKqu0aeFao=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHsm9oLYp4v3Hhs5BiA/X9xwtf1P+bdugDr1FBcJdUl 5fIm1uPOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi0bcZ5qdm2pndurvtn/xc O8MtloLG5dI7MxgWTF93q36z2emExPbajIVLJKfmXdZ9DwA= 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: lib: objagg: Fix general protection fault The library supports aggregation of objects into other objects only if the parent object does not have a parent itself. That is, nesting is not supported. Aggregation happens in two cases: Without and with hints, where hints are a pre-computed recommendation on how to aggregate the provided objects. Nesting is not possible in the first case due to a check that prevents it, but in the second case there is no check because the assumption is that nesting cannot happen when creating objects based on hints. The violation of this assumption leads to various warnings and eventually to a general protection fault [1]. Before fixing the root cause, error out when nesting happens and warn. [1] general protection fault, probably for non-canonical address 0xdead000000000d90: 0000 [#1] PREEMPT SMP PTI CPU: 1 PID: 1083 Comm: kworker/1:9 Tainted: G W 6.9.0-rc6-custom-gd9b4f1cca7fb #7 Hardware name: Mellanox Technologies Ltd. MSN3700/VMOD0005, BIOS 5.11 01/06/2019 Workqueue: mlxsw_core mlxsw_sp_acl_tcam_vregion_rehash_work RIP: 0010:mlxsw_sp_acl_erp_bf_insert+0x25/0x80 [...] Call Trace: mlxsw_sp_acl_atcam_entry_add+0x256/0x3c0 mlxsw_sp_acl_tcam_entry_create+0x5e/0xa0 mlxsw_sp_acl_tcam_vchunk_migrate_one+0x16b/0x270 mlxsw_sp_acl_tcam_vregion_rehash_work+0xbe/0x510 process_one_work+0x151/0x370 worker_thread+0x2cb/0x3e0 kthread+0xd0/0x100 ret_from_fork+0x34/0x50 ret_from_fork_asm+0x1a/0x30 The Linux kernel CVE team has assigned CVE-2024-43846 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit 9069a3817d82 and fixed in 6.1.103 with commit 5adc61d29bbb Issue introduced in 5.1 with commit 9069a3817d82 and fixed in 6.6.44 with commit 1936fa05a180 Issue introduced in 5.1 with commit 9069a3817d82 and fixed in 6.10.3 with commit 499f742fed42 Issue introduced in 5.1 with commit 9069a3817d82 and fixed in 6.11-rc1 with commit b4a3a89fffcd 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-43846 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: lib/objagg.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/5adc61d29bbb461d7f7c2b48dceaa90ecd182eb7 https://git.kernel.org/stable/c/1936fa05a180834c3b52e0439a6bddc07814d3eb https://git.kernel.org/stable/c/499f742fed42e74f1321f4b12ca196a66a2b49fc https://git.kernel.org/stable/c/b4a3a89fffcdf09702b1f161b914e52abca1894d