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 58E1244374 for ; Wed, 19 Jun 2024 14:58:13 +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=1718809093; cv=none; b=ZbClP1fYQ4DUA79M879c0hYtJsemT3yc1Ilic/z7DVINQF9Mu2j83bkph3QexICgBZeyQM6GQDOt9fsmUXOWwle7Sbcjqf85xCRqrZgCnAEPMdusXIxwIjdLtbpUt4LgMqBqh7tF745w0RiYKpSWdPR9msJKZ8YC/Ecu9Gfi+pA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718809093; c=relaxed/simple; bh=ZDiWpL/JKLoS0OKpIDMqztPPSrY2jKIKDUz6z6w3ge8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EfbYFTu2pUiKYDMGNJwR71xPGBtKAOCmZagqttxGoJPtfb9McUgpKHJRSGIBj3+BgXhfiY0dRFxO/btBKy85DJm8WzGVDFocwPMEf9BxnPWvCG4RhwHPjPvtmA9QBSDNTo21AnxQEil+1a3Zg0fuanPdxHIimNiAIUNiZKW4RWE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ocHlFKk7; 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="ocHlFKk7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF468C2BBFC; Wed, 19 Jun 2024 14:58:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718809093; bh=ZDiWpL/JKLoS0OKpIDMqztPPSrY2jKIKDUz6z6w3ge8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ocHlFKk74iPQgYdj3Sj5wUNn/Tw0nY0XnhybQ5wtxyTJVmfDD8VJ6VNRBKZMWV+Fx DzEnHzOITFMzl8rEPgRVRUzdzjzZlvxtuVC/b3nVC8uqRPg/Eby5fm7/rCQRl7E7JL 0JvZG4dE63LY0aMjKWeDkx/15WuicusZTtWbkluw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47610: drm/msm: Fix null ptr access msm_ioctl_gem_submit() Date: Wed, 19 Jun 2024 16:58:09 +0200 Message-ID: <2024061907-CVE-2021-47610-ed0a@gregkh> X-Mailer: git-send-email 2.45.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=2303; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZDiWpL/JKLoS0OKpIDMqztPPSrY2jKIKDUz6z6w3ge8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlFH/9fO252T/PR44Oh9+9L7Zetny+qzZhRGrhtl+2J/ Tm8k3xEO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiynMZFsyrye1VOSMiZHfg dtimt+6Pey+oGDIsmKD+bc8diVUuuxiezHnVccFtgs2iqQA= 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/msm: Fix null ptr access msm_ioctl_gem_submit() Fix the below null pointer dereference in msm_ioctl_gem_submit(): 26545.260705: Call trace: 26545.263223: kref_put+0x1c/0x60 26545.266452: msm_ioctl_gem_submit+0x254/0x744 26545.270937: drm_ioctl_kernel+0xa8/0x124 26545.274976: drm_ioctl+0x21c/0x33c 26545.278478: drm_compat_ioctl+0xdc/0xf0 26545.282428: __arm64_compat_sys_ioctl+0xc8/0x100 26545.287169: el0_svc_common+0xf8/0x250 26545.291025: do_el0_svc_compat+0x28/0x54 26545.295066: el0_svc_compat+0x10/0x1c 26545.298838: el0_sync_compat_handler+0xa8/0xcc 26545.303403: el0_sync_compat+0x188/0x1c0 26545.307445: Code: d503201f d503201f 52800028 4b0803e8 (b8680008) 26545.318799: Kernel panic - not syncing: Oops: Fatal exception The Linux kernel CVE team has assigned CVE-2021-47610 to this issue. Affected and fixed versions =========================== Fixed in 5.15.10 with commit f6db3d98f876 Fixed in 5.16 with commit 26d776fd0f79 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-2021-47610 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/msm/msm_gem_submit.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/f6db3d98f876870c35e96693cfd54752f6199e59 https://git.kernel.org/stable/c/26d776fd0f79f093a5d0ce1a4c7c7a992bc3264c