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 42DD4217730 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=1740536096; cv=none; b=f4Uo+sVxDH92y2FeLv4ipYr37k4hOrDC/z6oOf30gi8s7Iv5wDG3AjPNC34HSJjhtaCQXfBcAI54R/Cpu6uZPmRsHqol+AJMWaGxsHIdHJIWURgiJhd64aPMueLbrpgGkbuYXS4ps20FkVqyxK773F1mGNejIzSswp+Yv+p0fH8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536096; c=relaxed/simple; bh=XbpjfNSC+tx506Udz2GClQcnNItfiLX2dM8E8FiauOg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=f5LHmr8JDbW6Y6DWsweaYymnup7yBeQvJoy9t+9Iol4apjbpG6Q3IhqHtnDPpawhNA78yiAULXF0zhEROOs16Cl/I7V9xy9Wm0oK85dKV3cNRv2GhTTPaSWkFjhaNM2q3BaZrDrXYhJpgjeYnVYWg4ulqUMn51Mc5+HhR7akFGg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NQ6avENj; 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="NQ6avENj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19AB0C4CEDD; 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=XbpjfNSC+tx506Udz2GClQcnNItfiLX2dM8E8FiauOg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NQ6avENjHnsNmb+BCME1d2C3BSRg2IQSgb1taSSzvbiyN6B8q7WAPly6+JKFKYnjX MVIUNlzH5b4i8MiR+096Z0ZU3yb6VB3ueKvyX3Uj+td0TCooJY39uzejAfZw5ayWsJ RZFoRjQ1WFaUBN8sP2vz2AhouTOqgMHRrD66mm8Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49488: drm/msm/mdp5: Return error code in mdp5_mixer_release when deadlock is detected Date: Wed, 26 Feb 2025 03:12:42 +0100 Message-ID: <2025022605-CVE-2022-49488-5f36@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=3422; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XbpjfNSC+tx506Udz2GClQcnNItfiLX2dM8E8FiauOg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yv+6lD5WK/XP2a7hJxsi9vXacs1DbxeFiHnPbPltr 8ux55leRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExE8ArDPLvJps+EIt5sKxKo 27+wZ+lh84MMdQzzfaLiX6rvOWFnduhr7949Gy88/TXfDgA= 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/mdp5: Return error code in mdp5_mixer_release when deadlock is detected There is a possibility for mdp5_get_global_state to return -EDEADLK when acquiring the modeset lock, but currently global_state in mdp5_mixer_release doesn't check for if an error is returned. To avoid a NULL dereference error, let's have mdp5_mixer_release check if an error is returned and propagate that error. Patchwork: https://patchwork.freedesktop.org/patch/485181/ The Linux kernel CVE team has assigned CVE-2022-49488 to this issue. Affected and fixed versions =========================== Issue introduced in 4.18 with commit 7907a0d77cb461f58045763c205a5830be72e97c and fixed in 4.19.247 with commit 1a5d1474026ea4f1a6f931075ca2adb884af39cf Issue introduced in 4.18 with commit 7907a0d77cb461f58045763c205a5830be72e97c and fixed in 5.4.198 with commit 22d8424913b1348c6324916745fadaeea5273f0e Issue introduced in 4.18 with commit 7907a0d77cb461f58045763c205a5830be72e97c and fixed in 5.10.121 with commit 883f1d52a57bf51e1d7a80c432345e2c6222477e Issue introduced in 4.18 with commit 7907a0d77cb461f58045763c205a5830be72e97c and fixed in 5.15.46 with commit 09bdeedc1fc53e64b8282e1de67752c69e43bdba Issue introduced in 4.18 with commit 7907a0d77cb461f58045763c205a5830be72e97c and fixed in 5.17.14 with commit 47e393061049aff6818d1b9fdca7351411a23fc2 Issue introduced in 4.18 with commit 7907a0d77cb461f58045763c205a5830be72e97c and fixed in 5.18.3 with commit 46e5ce63924a96af452c4fc5ee0bb3b241e1b9f4 Issue introduced in 4.18 with commit 7907a0d77cb461f58045763c205a5830be72e97c and fixed in 5.19 with commit ca75f6f7c6f89365e40f10f641b15981b1f07c31 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-49488 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/mdp5/mdp5_crtc.c drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.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/1a5d1474026ea4f1a6f931075ca2adb884af39cf https://git.kernel.org/stable/c/22d8424913b1348c6324916745fadaeea5273f0e https://git.kernel.org/stable/c/883f1d52a57bf51e1d7a80c432345e2c6222477e https://git.kernel.org/stable/c/09bdeedc1fc53e64b8282e1de67752c69e43bdba https://git.kernel.org/stable/c/47e393061049aff6818d1b9fdca7351411a23fc2 https://git.kernel.org/stable/c/46e5ce63924a96af452c4fc5ee0bb3b241e1b9f4 https://git.kernel.org/stable/c/ca75f6f7c6f89365e40f10f641b15981b1f07c31