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 A72524C97 for ; Sat, 17 Aug 2024 09:12:37 +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=1723885957; cv=none; b=E6DoduONnuEBD1aotMWwF5mE+LFMpJFeCSC1uMZRZyjH6b+h/25ftuxXIhP5a5+JkRKuhVx7dnib6jbNpDy+AwQd4t7ir24kLI1qv3bFEh5a1wlqe4EQ05VMOCjuO4L3nsFhzxRj65FLW1lxtOBWKWLzRpmsTx8QooBnZ+/CyVc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723885957; c=relaxed/simple; bh=CzUhZOWvk6sBN8B4ABRzbjYhXAeUGMS/45JpS9dNYbw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hUrnRvc42OgO7Ilmi6DuFe8C6yBK0MCvXjgrEeovq8vDiyjOb1fniV4vdHFXRJy3ckUo4LZ2QQmnWNsvvEynVsTVikE+qwnaJwwGV3l/jZ3i+naS0a15W0CY523787Eev21EliX36Gpm1kqQl6l6eg244Q0ej/59jbyT5hUhv7Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1HEVcgSO; 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="1HEVcgSO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20F56C116B1; Sat, 17 Aug 2024 09:12:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723885957; bh=CzUhZOWvk6sBN8B4ABRzbjYhXAeUGMS/45JpS9dNYbw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1HEVcgSOf4Bxogpdxh7BvKuojaMix/0PMhNob8RAcfVzyoiHcTAHKqWCftUzdMFJK VwfXSFy6gzPNZpPAgKRDVuONqcNzF8lluQJRygGB94jXadxCzQBygA6YN/w66uMbk9 mNQlAsvSYTyoE2TfS5CViUz2P3pZpY+BYU577aWA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42309: drm/gma500: fix null pointer dereference in psb_intel_lvds_get_modes Date: Sat, 17 Aug 2024 11:10:14 +0200 Message-ID: <2024081751-CVE-2024-42309-9560@gregkh> X-Mailer: git-send-email 2.46.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=2235; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CzUhZOWvk6sBN8B4ABRzbjYhXAeUGMS/45JpS9dNYbw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHMu6H3t+6Z8fHjL+TdIUM9yudPFqbf/Typ6ydslIuv drfZnfv6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJSKQwzGbRKrnKKvDuVdci j5/H5x0wm13XE8CwYG6c6Zo4oTWf/89lN9h6WveBZJLxPgA= 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/gma500: fix null pointer dereference in psb_intel_lvds_get_modes In psb_intel_lvds_get_modes(), the return value of drm_mode_duplicate() is assigned to mode, which will lead to a possible NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. The Linux kernel CVE team has assigned CVE-2024-42309 to this issue. Affected and fixed versions =========================== Issue introduced in 3.3 with commit 89c78134cc54 and fixed in 6.1.103 with commit f70ffeca5464 Issue introduced in 3.3 with commit 89c78134cc54 and fixed in 6.6.44 with commit 46d2ef272957 Issue introduced in 3.3 with commit 89c78134cc54 and fixed in 6.10.3 with commit 475a5b3b7c8e Issue introduced in 3.3 with commit 89c78134cc54 and fixed in 6.11-rc1 with commit 2df7aac81070 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-2024-42309 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/gma500/psb_intel_lvds.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/f70ffeca546452d1acd3a70ada56ecb2f3e7f811 https://git.kernel.org/stable/c/46d2ef272957879cbe30a884574320e7f7d78692 https://git.kernel.org/stable/c/475a5b3b7c8edf6e583a9eb59cf28ea770602e14 https://git.kernel.org/stable/c/2df7aac81070987b0f052985856aa325a38debf6