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 E1F8F348440 for ; Tue, 16 Dec 2025 13:40:57 +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=1765892458; cv=none; b=et4TvpC0fzgbBE3y3SdcJLLroMp5Ni98rM18aWnNYUUEYSrDrdcWdMbM+/GxZ23DyffiSbJXVLUX5y2h9a28STWsaIa5/YLh/T4dJsISWlyO+bRo7p+KPYlLWGBKyV1lJVVOqT0ghMrexWLcarxpCG4j8ow9t/32fdGXX4nix64= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765892458; c=relaxed/simple; bh=lW1Cj0K6Gsrh/fx1PV/4yNib6ZvFl3LP61aLwunh9wg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a2hWzIOTBXn6vDHu1NMDeaS/hS0e/RZa4KFfaXK2S+dguBUNfRPSUDj6Cl/7Z6F/8rkynk9ChGw651MwskGbczVx6GuLV48awX5ek+Cg5zBUogH2cEpHxmlAIfwkia/MpQAUXKvdsymCYOoafIu7cPhcvTJ56HJ8avdI6e3pHMg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oLn3gapS; 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="oLn3gapS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0760BC4CEF1; Tue, 16 Dec 2025 13:40:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765892457; bh=lW1Cj0K6Gsrh/fx1PV/4yNib6ZvFl3LP61aLwunh9wg=; h=From:To:Cc:Subject:Date:Reply-To:From; b=oLn3gapS2XWgt1ewlqFGrBp3SIUZst8VLQzFHO+edj7RKgUzjeuhtbVzbWojHGndQ GrlQMe4DxHJfg2+L0s8POfI91mflZgNS2KD5fQApSyng9QqK3XHYMAhyqKjwV6dQCz q0MaWHOwVqdPTt3CnyWqGpzKIO48aIfBeZxkrno0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40360: drm/sysfb: Do not dereference NULL pointer in plane reset Date: Tue, 16 Dec 2025 14:40:46 +0100 Message-ID: <2025121644-CVE-2025-40360-28d0@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2918; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wiRgE/Sr3R2KjRS9S2YgwoTLDh/8qhbDbVPIQ4JQoIs=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOiTFP9/1VUVwp0tuRq2lz5UFD6lnG5V+Vi7/YPBW/b 37COoGnI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZyfz7DPO1cQ9MUxuxzR/58 Uu9xfip9bp3iPYY5fCYsU6ddVxRgSD9ckJYl/LF6Ws9qAA== 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/sysfb: Do not dereference NULL pointer in plane reset The plane state in __drm_gem_reset_shadow_plane() can be NULL. Do not deref that pointer, but forward NULL to the other plane-reset helpers. Clears plane->state to NULL. v2: - fix typo in commit description (Javier) The Linux kernel CVE team has assigned CVE-2025-40360 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit b715650220311e50448cb499c71084ca8aeeeece and fixed in 5.15.197 with commit 6abeff03cb79a2c7f4554a8e8738acd35bb37152 Issue introduced in 5.15 with commit b715650220311e50448cb499c71084ca8aeeeece and fixed in 6.1.159 with commit c4faf7f417eea8b8d5cc570a1015736f307aa2d5 Issue introduced in 5.15 with commit b715650220311e50448cb499c71084ca8aeeeece and fixed in 6.6.117 with commit b61ed8005bd3102510fab5015ac6a275c9c5ea16 Issue introduced in 5.15 with commit b715650220311e50448cb499c71084ca8aeeeece and fixed in 6.12.58 with commit 6bdef5648a60e49d4a3b02461ab7ae3776877e77 Issue introduced in 5.15 with commit b715650220311e50448cb499c71084ca8aeeeece and fixed in 6.17.8 with commit c7d5e69866bbe95c1e4ab4c10a81e0a02d9ea232 Issue introduced in 5.15 with commit b715650220311e50448cb499c71084ca8aeeeece and fixed in 6.18 with commit 14e02ed3876f4ab0ed6d3f41972175f8b8df3d70 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-40360 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/drm_gem_atomic_helper.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/6abeff03cb79a2c7f4554a8e8738acd35bb37152 https://git.kernel.org/stable/c/c4faf7f417eea8b8d5cc570a1015736f307aa2d5 https://git.kernel.org/stable/c/b61ed8005bd3102510fab5015ac6a275c9c5ea16 https://git.kernel.org/stable/c/6bdef5648a60e49d4a3b02461ab7ae3776877e77 https://git.kernel.org/stable/c/c7d5e69866bbe95c1e4ab4c10a81e0a02d9ea232 https://git.kernel.org/stable/c/14e02ed3876f4ab0ed6d3f41972175f8b8df3d70