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 4CA4B6F06A for ; Tue, 16 Sep 2025 13:00:45 +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=1758027645; cv=none; b=lRYK55s12gDYyH1zNpq5OG7kj/+Gl7G7TRBLqOx+zQjrSa/zU6O0RfIwZEZxz1VclGY4791kRfp0V74m2bO6J24OgKQYaXh8BVSox7w5GdE27TeYOZPfyUVbvYaQA5GA4KrW2a5+SkN7x0ZOdpXQkN3j+16/rEIQDdXKtFPytLw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758027645; c=relaxed/simple; bh=MEYovC+4Qq9doETBd6IVENkd/EtbUz0OD9s6jR6q0Bs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YVtyxnU6u7Z6ZFwiShqszgbbAKlPvYLvXzrOmRjVjLHUQ9TP7nRuFEFCR8XMZBefVn6GdVmUZa0QIrHbfLY0ePaWaXHEjkMv3m8fFKl3GU6uzxDgghmCtQHLr6ET5DJqYNDoLmvO4B1JWLo93cg3JDHkslvWAieVNzEG+gJtjr8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=f6bzjES/; 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="f6bzjES/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2D65C4CEEB; Tue, 16 Sep 2025 13:00:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758027645; bh=MEYovC+4Qq9doETBd6IVENkd/EtbUz0OD9s6jR6q0Bs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=f6bzjES/ZGw+62SfW2MV9JnWtRB7rDxOyiR+sQOsHi8aRVj5R5lir/M76L3OnT6cF hmUGvvF/e9my9QjRxbrBMBQXK9NYK/q9eLntQT6+H+73Hf7u3f5GzmFF5dtX9jQZPL WIMJuGjwhPPPAswqgeLV3iz6QEAJmQYPBhd3JZmo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39820: drm/msm/dpu: Add a null ptr check for dpu_encoder_needs_modeset Date: Tue, 16 Sep 2025 15:00:26 +0200 Message-ID: <2025091615-CVE-2025-39820-50d7@gregkh> X-Mailer: git-send-email 2.51.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=2156; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=73bTQispYfZz3WDgiBf6O6jgKWO5h5AYcNj0XtPALI0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkn4+PXaMfNn3aX//iy674LGWtm1CaeD31UtIxjm2O93 vEfM/OudMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBERL0Y5sccM0ji/p/VJDC3 aeEP89XKM+40vmJY0LG1ekkI04o/x07d/WldnsX80q3RGQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/msm/dpu: Add a null ptr check for dpu_encoder_needs_modeset The drm_atomic_get_new_connector_state() can return NULL if the connector is not part of the atomic state. Add a check to prevent a NULL pointer dereference. This follows the same pattern used in dpu_encoder_update_topology() within the same file, which checks for NULL before using conn_state. Patchwork: https://patchwork.freedesktop.org/patch/665188/ The Linux kernel CVE team has assigned CVE-2025-39820 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 1ce69c265a53c61c5c29f97f542ff89af3f3d7e7 and fixed in 6.16.5 with commit aaec54254b02f5959c3670177037464d828b2140 Issue introduced in 6.15 with commit 1ce69c265a53c61c5c29f97f542ff89af3f3d7e7 and fixed in 6.17-rc4 with commit abebfed208515726760d79cf4f9f1a76b9a10a84 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-2025-39820 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 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/aaec54254b02f5959c3670177037464d828b2140 https://git.kernel.org/stable/c/abebfed208515726760d79cf4f9f1a76b9a10a84