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 D6612145355 for ; Tue, 21 May 2024 15:37:07 +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=1716305827; cv=none; b=fJqNVy1d4704wc8CuT+OO8xRjmJd6hqqYomf4Nc7Y8sJpHK3grBvo1gABiU/C7KcFpnYR+klwC/IoDGRkUB/Kjm980nTEXFz0qtts0t4vxSUYITKwQDTvGKzVyCSlwmd3mLv185Ct4Qi0Xtdmq2DCtRtBXrQUd6LxZzuJjaILMU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305827; c=relaxed/simple; bh=Ce94sycn8t5RSxqb9FWsVWA7eJHSA7rFw0rnbfLAMZI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ax0O019bap8zIDvjTyS+YVAyMGbi4M7YxDXMRxbL1qhsKJS8sszljyjRsKx3zCOKyipYnzrHox19Bn22a5NXnCPUzEhamdtQekwFxFgANAoNUFGYVjHT5HpyejkwyOWxZ3UAUx7RYtXf1Du96Cf0NydlM9D3boqsqLDX6TJuBG4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vEa4TW2n; 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="vEa4TW2n" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62276C32786; Tue, 21 May 2024 15:37:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305827; bh=Ce94sycn8t5RSxqb9FWsVWA7eJHSA7rFw0rnbfLAMZI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vEa4TW2nP+DZHFm559nDojNjnbShbHogJU5NX2AryoxS8Fw7vpUAleqmo7yVKZHyZ i6lXg0Qd0VYBSs21q9GS5OZlNiFfvtrps5H1PvMhroraA4drEajOVZyCFzNHNgUvo7 /sWuYdbu+NDZ//eOVq2/RcsK8g9Qc6VwrTdMZGPs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52821: drm/panel: fix a possible null pointer dereference Date: Tue, 21 May 2024 17:31:57 +0200 Message-ID: <2024052105-CVE-2023-52821-1b6f@gregkh> X-Mailer: git-send-email 2.45.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=2234; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ce94sycn8t5RSxqb9FWsVWA7eJHSA7rFw0rnbfLAMZI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++yy9z9x9e9Bqq/aH5lleDQXKLaZPcgxm3GjaY8Qvo rn49YHmjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIRR2GBVs07+7wt285KH9H 2FJOL7dWrU6WnWE2i6W3i8fie7v2Ntz1MihOZ/HeNEEXAA== 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/panel: fix a possible null pointer dereference In versatile_panel_get_modes(), the return value of drm_mode_duplicate() is assigned to mode, which will lead to a NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. The Linux kernel CVE team has assigned CVE-2023-52821 to this issue. Affected and fixed versions =========================== Fixed in 5.10.202 with commit c7dc0aca5962 Fixed in 5.15.140 with commit 2381f6b628b3 Fixed in 6.1.64 with commit 79813cd59398 Fixed in 6.5.13 with commit 4fa930ba046d Fixed in 6.6.3 with commit 8a9dd36fcb4f Fixed in 6.7 with commit 924e5814d1f8 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-2023-52821 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/panel/panel-arm-versatile.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/c7dc0aca5962fb37dbea9769dd26ec37813faae1 https://git.kernel.org/stable/c/2381f6b628b3214f07375e0adf5ce17093c31190 https://git.kernel.org/stable/c/79813cd59398015867d51e6d7dcc14d287d4c402 https://git.kernel.org/stable/c/4fa930ba046d20fc1899770396ee11e905fa96e4 https://git.kernel.org/stable/c/8a9dd36fcb4f3906982b82593393578db4479992 https://git.kernel.org/stable/c/924e5814d1f84e6fa5cb19c6eceb69f066225229