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 E06DB18C32C for ; Fri, 27 Sep 2024 12:41:03 +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=1727440864; cv=none; b=UTN5jmWvu0BS1KiR0Lz3UFGWHxZy3qOIepMD4ZJo0Doz4x5lwgNKI/SVPdKkOfbcUWQSWPk1+XX3bBcWNcKWkj4gz57KynAecK8g4KEGTbOdTP+XegaHz4EEP2kzuVnHJsWHEXvlEEgVlj7LAB22rNZWGeaLTz9WuAiVfML3ww8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727440864; c=relaxed/simple; bh=w1n2bWQKXFcuSLnn6CN3I235R1vo5oVp6mjbYV3kEw0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LNqfqiTf0mSPp9R/qNeIj48wO+h3RPzzOM2z0T+pelRwe4dJDOAmmGDjXNTqfSnC9WYbCsPKjvx0Lhjf3KsGUFcCyTq3cb2bLwskMBAfDGLa/ma3xe16xngWCtvEdiQw+EBb+qu4xGQeAmEa+jFKJXFulq6oVUcI/Gxee/wt/NI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zhv0DPAn; 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="zhv0DPAn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70FF3C4CEC4; Fri, 27 Sep 2024 12:41:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727440863; bh=w1n2bWQKXFcuSLnn6CN3I235R1vo5oVp6mjbYV3kEw0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zhv0DPAnvRWY6Hl8H52x3zlOwZuGv59mdwM+tO+YSWSgXU50+qJ2OvnQhkb2zgvJl or1fJp3aJ9/gxXW2JlEtLK53FAX02rWQGeI3RsixRRk8mTHsebKdp7FM35OvAbGu2S pcpoO9Nr0PqqFW5jh73yga+3OMUL3bUBUcTNguW4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46837: drm/panthor: Restrict high priorities on group_create Date: Fri, 27 Sep 2024 14:40:05 +0200 Message-ID: <2024092753-CVE-2024-46837-c69f@gregkh> X-Mailer: git-send-email 2.46.2 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=2412; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=w1n2bWQKXFcuSLnn6CN3I235R1vo5oVp6mjbYV3kEw0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnfls88pvjDercp4xFxTbffZ2fWOn1xll37xnTlnI2iw t+D7eZf74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJdK5gmKet7Lq4ubf/7JbD a3YkL3cxD7hTuplhfrnpK19mz0kXji+X9P7xaH2WGttVTgA= 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: drm/panthor: Restrict high priorities on group_create We were allowing any users to create a high priority group without any permission checks. As a result, this was allowing possible denial of service. We now only allow the DRM master or users with the CAP_SYS_NICE capability to set higher priorities than PANTHOR_GROUP_PRIORITY_MEDIUM. As the sole user of that uAPI lives in Mesa and hardcode a value of MEDIUM [1], this should be safe to do. Additionally, as those checks are performed at the ioctl level, panthor_group_create now only check for priority level validity. [1]https://gitlab.freedesktop.org/mesa/mesa/-/blob/f390835074bdf162a63deb0311d1a6de527f9f89/src/gallium/drivers/panfrost/pan_csf.c#L1038 The Linux kernel CVE team has assigned CVE-2024-46837 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit de8548813824 and fixed in 6.10.10 with commit 33eb0344e186 Issue introduced in 6.10 with commit de8548813824 and fixed in 6.11 with commit 5f7762042f8a 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-46837 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: drivers/gpu/drm/panthor/panthor_drv.c drivers/gpu/drm/panthor/panthor_sched.c include/uapi/drm/panthor_drm.h 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/33eb0344e186a2bcc257c6c5a6e65c1cb42adb4a https://git.kernel.org/stable/c/5f7762042f8a5377bd8a32844db353c0311a7369