From mboxrd@z Thu Jan 1 00:00:00 1970 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 BDEAB1AAE04 for ; Thu, 20 Jun 2024 11:17:49 +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=1718882269; cv=none; b=TGugm/V3YS15hEtu2XvEl9TVMBBspOCCypNBCTWt0mj44DsbRen0EyQFmzT9T/Cqk9j+eGdp5Cb6cJev86YqyTRBuXAsvUjHJbKermmEogc+VEhygiDWCnFWXrXnKTuOBxuFRHTvRrwixRKApA4Mjoh1SNt2pJZ/1TzIG3x3zvc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718882269; c=relaxed/simple; bh=AYfK5VXRCjwig+Ki3wqhdWfm5BQyucin+lQsUlRT4sU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SGKv4kpAifdORq1ekf+cN2OMtX6WVMestY2yKv4SS7fk/yClhEKdiMeOXPJX0/uXj583mJMV1Y8Kng8ppZQZCHvPOOYijjCmdK6Zd+G+o77o3FKex6czbztfpi40KmfTD12mN0vI902nrvbYeOuYe21q5nd2/Y7IAsg0uzudaFo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CJ1JvwXg; 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="CJ1JvwXg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43FB8C2BD10; Thu, 20 Jun 2024 11:17:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718882269; bh=AYfK5VXRCjwig+Ki3wqhdWfm5BQyucin+lQsUlRT4sU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CJ1JvwXgrMGqCDRIEnbTe5TWhdvdOMPeXoT7XekxsI7eiyKPPp6yk56i+KG25wpXu B6IRiCXbXRB2dmbzxjjvPvndg3WbBQKf3cGiRUVlFKEAs7hjSfOLyodClVK5cWh88V CA99mzDjEiBVZK9HhUpAUU1375CJtN36v2/KIwTA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48749: drm/msm/dpu: invalid parameter check in dpu_setup_dspp_pcc Date: Thu, 20 Jun 2024 13:16:29 +0200 Message-ID: <2024062005-CVE-2022-48749-0566@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=2280; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AYfK5VXRCjwig+Ki3wqhdWfm5BQyucin+lQsUlRT4sU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkl/KWNOQJOe6NdbCcyn+JZm7LD4eWjz1Z9X41DSs0X3 SxeufRyRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkxXKG+T6OXzs1LmswJjbz 2Uy51+v50TUtlmF+cI/I3rMGCpNsd4qXPHzKzf5uRoM6AA== 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/dpu: invalid parameter check in dpu_setup_dspp_pcc The function performs a check on the "ctx" input parameter, however, it is used before the check. Initialize the "base" variable after the sanity check to avoid a possible NULL pointer dereference. Addresses-Coverity-ID: 1493866 ("Null pointer dereference") The Linux kernel CVE team has assigned CVE-2022-48749 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 4259ff7ae509 and fixed in 5.10.96 with commit 93a6e920d8cc Issue introduced in 5.8 with commit 4259ff7ae509 and fixed in 5.15.19 with commit 8f069f6dde51 Issue introduced in 5.8 with commit 4259ff7ae509 and fixed in 5.16.5 with commit 1ebc18836d5d Issue introduced in 5.8 with commit 4259ff7ae509 and fixed in 5.17 with commit 170b22234d54 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-2022-48749 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/disp/dpu1/dpu_hw_dspp.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/93a6e920d8ccb4df846c03b6e72f7e08843d294c https://git.kernel.org/stable/c/8f069f6dde518dfebe86e848508c07e497bd9298 https://git.kernel.org/stable/c/1ebc18836d5df09061657f8c548e594cbb519476 https://git.kernel.org/stable/c/170b22234d5495f5e0844246e23f004639ee89ba