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 EB0A121767B for ; Wed, 26 Feb 2025 02:14:56 +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=1740536097; cv=none; b=uSVPbxEhmrtnsQMFhon2oekQwfLNVOt94HQlmVs79fJUGCG4jEV6hmBSTr4OeIHPA//ppyX7NExMzl2SXq18QJ4ywVnY36omj1zINKe0nXTzLJcGy9/JiiUOwxpInNd/CWtYZJT913iq9tOaOalKpBX46j16MmI3WX32ZdIoFLI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536097; c=relaxed/simple; bh=qBW8WJr4GBO0CXz3E9CXdcpB0563iTtwPJf8KfLnbEs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dnHAEK1pYxRrk84IIYcR3ZMvn19CzGtK4HHylTVCOZC1ASe/boJidn0cvRFqqv0rrpbcTLl6yOGeWeE6i/E3Rcd79rvBbxFnM/YBTOnW2iFQlS7RwRqbDBliAKdIFvR5aSTo6YnOzzXCDwA95fZqhYb5Z6gv96s3QewjAHQFcik= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Hj6iq/V2; 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="Hj6iq/V2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B95DCC4CEDD; Wed, 26 Feb 2025 02:14:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536096; bh=qBW8WJr4GBO0CXz3E9CXdcpB0563iTtwPJf8KfLnbEs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Hj6iq/V2D3+gij22AQgeMZtR3ETXIy4vjmINIpQk3eUBV/g0FWY7Ebb/yIW7yP/i2 GBTT1if7KvtsEEenfaXkLZToXaw0IVwHXaXY7HIagoeUjLURg8xj6k2R99YsR+Zubt I0BGkb/zyIM9BpOoc85bOa5eXP3UsD40A1r51j+o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49489: drm/msm/disp/dpu1: set vbif hw config to NULL to avoid use after memory free during pm runtime resume Date: Wed, 26 Feb 2025 03:12:43 +0100 Message-ID: <2025022605-CVE-2022-49489-4131@gregkh> X-Mailer: git-send-email 2.48.1 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=3540; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qBW8WJr4GBO0CXz3E9CXdcpB0563iTtwPJf8KfLnbEs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yv9eaWrXSWF4uSLXY+5tldDEijurlt0N9PMQudH0I 2Rtc1FvRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk1SeGBcs9ZmhOs+hzO1jX MeGpU878sgWxuxkWnF68hN2Pedt8s3AtnwV+PGvNTLKMAQ== 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/disp/dpu1: set vbif hw config to NULL to avoid use after memory free during pm runtime resume BUG: Unable to handle kernel paging request at virtual address 006b6b6b6b6b6be3 Call trace: dpu_vbif_init_memtypes+0x40/0xb8 dpu_runtime_resume+0xcc/0x1c0 pm_generic_runtime_resume+0x30/0x44 __genpd_runtime_resume+0x68/0x7c genpd_runtime_resume+0x134/0x258 __rpm_callback+0x98/0x138 rpm_callback+0x30/0x88 rpm_resume+0x36c/0x49c __pm_runtime_resume+0x80/0xb0 dpu_core_irq_uninstall+0x30/0xb0 dpu_irq_uninstall+0x18/0x24 msm_drm_uninit+0xd8/0x16c Patchwork: https://patchwork.freedesktop.org/patch/483255/ [DB: fixed Fixes tag] The Linux kernel CVE team has assigned CVE-2022-49489 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit 25fdd5933e4c0f5fe2ea5cd59994f8ac5fbe90ef and fixed in 4.19.247 with commit aa4cb188988dc6f1b3f4917d4dbc452150a5d871 Issue introduced in 4.19 with commit 25fdd5933e4c0f5fe2ea5cd59994f8ac5fbe90ef and fixed in 5.4.198 with commit ef10d0c68e8608848cd58fca2589685718426607 Issue introduced in 4.19 with commit 25fdd5933e4c0f5fe2ea5cd59994f8ac5fbe90ef and fixed in 5.10.121 with commit 134760263f6441741db0b2970e7face6b34b6d1c Issue introduced in 4.19 with commit 25fdd5933e4c0f5fe2ea5cd59994f8ac5fbe90ef and fixed in 5.15.46 with commit ef4bdaac7cb5416f236613ed9337ff0ea8ee329b Issue introduced in 4.19 with commit 25fdd5933e4c0f5fe2ea5cd59994f8ac5fbe90ef and fixed in 5.17.14 with commit 97ac682b6f7d36be5d934f86c9911066540a68f1 Issue introduced in 4.19 with commit 25fdd5933e4c0f5fe2ea5cd59994f8ac5fbe90ef and fixed in 5.18.3 with commit 5b0adf5cbf3b74721e4e4c4e0cadc91b8df8bcc2 Issue introduced in 4.19 with commit 25fdd5933e4c0f5fe2ea5cd59994f8ac5fbe90ef and fixed in 5.19 with commit fa5186b279ecf44b14fb435540d2065be91cb1ed 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-49489 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_kms.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/aa4cb188988dc6f1b3f4917d4dbc452150a5d871 https://git.kernel.org/stable/c/ef10d0c68e8608848cd58fca2589685718426607 https://git.kernel.org/stable/c/134760263f6441741db0b2970e7face6b34b6d1c https://git.kernel.org/stable/c/ef4bdaac7cb5416f236613ed9337ff0ea8ee329b https://git.kernel.org/stable/c/97ac682b6f7d36be5d934f86c9911066540a68f1 https://git.kernel.org/stable/c/5b0adf5cbf3b74721e4e4c4e0cadc91b8df8bcc2 https://git.kernel.org/stable/c/fa5186b279ecf44b14fb435540d2065be91cb1ed