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 BB7901BDCD for ; Wed, 6 Mar 2024 06:46: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=1709707609; cv=none; b=DcVcZmBUD9EjaPNv4aj1iJsLWRYFmVnlOH+VZGB63Mn1eaOS+/aq/c12gzOO89bWEHoWzw16hasFtbrDw7HhLQQMMnlCnHH8nSM4U7UxXZxb6zZ0fOl55Q/0K7/qo8WvPOmfEyI+LLz7OIb/0XDxsBP3ewt3SF86kVFpwMG5LOM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709707609; c=relaxed/simple; bh=2nWDfeIz4f5A8+E4lzN2dEV55DB+Tnu71DodMdKeK98=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mEnUKG2Vy499PWyVvyWPU56ZDJhgfO42YoX/bXoBEimm5YKZFM5Mhl3UGcojVN7qoNNXAyjFyxfV+CHY6JLstdep/84zCs+1LKEj2wW8YiGSAlryGA+xNjBX4bWyRUGiUmFtalTocj81PknVOfmHFaAGOhUGP5oRY5jbpwviKGg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=e4lyaRFq; 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="e4lyaRFq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46ED3C433C7; Wed, 6 Mar 2024 06:46:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709707609; bh=2nWDfeIz4f5A8+E4lzN2dEV55DB+Tnu71DodMdKeK98=; h=From:To:Cc:Subject:Date:Reply-to:From; b=e4lyaRFqlNbzQF9ImzrPWJS7KRkxn5aWqCNaxlbR96mgLWF313hQjC+fNeKl6Jvx2 Pak+n4xqPeMa+u0AIxrTU6aa646AkpykTbAfwu6X1Uw2t6sKWltR7f7Fg82m6G3FtY IyJ/J85DpZfcQTTT4ZgCdyA9/VUYWmb1KnQXGZIk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52586: drm/msm/dpu: Add mutex lock in control vblank irq Date: Wed, 6 Mar 2024 06:45:44 +0000 Message-ID: <2024030644-CVE-2023-52586-3ecb@gregkh> X-Mailer: git-send-email 2.44.0 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=2301; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2nWDfeIz4f5A8+E4lzN2dEV55DB+Tnu71DodMdKeK98=; b=owGbwMvMwCRo6H6F97bub03G02pJDKkvBCUCgp6oG21P0drjxdRwgv/bbk+HFkXTxd6Nb8s+x /fESO/riGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIm0BzLMj7+/+sGihZonLhoy r3WXMLwzaZe/C8OCjlVrn3jK8U7r2rO4lmtlw+adsopNAA== 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: Add mutex lock in control vblank irq Add a mutex lock to control vblank irq to synchronize vblank enable/disable operations happening from different threads to prevent race conditions while registering/unregistering the vblank irq callback. v4: -Removed vblank_ctl_lock from dpu_encoder_virt, so it is only a parameter of dpu_encoder_phys. -Switch from atomic refcnt to a simple int counter as mutex has now been added v3: Mistakenly did not change wording in last version. It is done now. v2: Slightly changed wording of commit message Patchwork: https://patchwork.freedesktop.org/patch/571854/ The Linux kernel CVE team has assigned CVE-2023-52586 to this issue. Affected and fixed versions =========================== Fixed in 6.7.4 with commit 14f109bf74dd Fixed in 6.8-rc1 with commit 45284ff733e4 Please see https://www.kernel.org or 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-2023-52586 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_encoder.c drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.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/14f109bf74dd67e1d0469fed859c8e506b0df53f https://git.kernel.org/stable/c/45284ff733e4caf6c118aae5131eb7e7cf3eea5a