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 D459113F428 for ; Wed, 19 Jun 2024 13:36:43 +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=1718804203; cv=none; b=LWxvAUxOWJVdzf5JLfFtRXiM6OcAoN7PbpJjxALx8tI2HJXe4hAQZGBIUlW3iyfVNWB5gVyVoHmacsxMtUdgMUTOD//clI4qaRtLVTHvXij/S5TsuP5BMiUdZYdf4oyTPVxBGE5jwuUrFpJ9pA75QB1H/0eBH9m0siBHW/dhH+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718804203; c=relaxed/simple; bh=zWi7l5I/TgyhBdnRqW0UWg0MFwoaU3p3Uz49WhX58hs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LyJluFbQNtopzPlJh84itSfzuaMFf2AGuN6sYGB2z80xk4F5/7uv/6uS4Hzzpzpa0qyiBX1PfMQhCwt8U2nygSR1I4mGKr64bjVIPb3lGlsMlI1lCye26V8L3ihOtFLs47szVcYoWf5eF4YrLBqhRqPNivduz46QK6TSkcW5n7M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=a55qbaKv; 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="a55qbaKv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B373C32786; Wed, 19 Jun 2024 13:36:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718804203; bh=zWi7l5I/TgyhBdnRqW0UWg0MFwoaU3p3Uz49WhX58hs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=a55qbaKvHnaYY5f/Iu9vhh+S5GMcI45OpiQCjZT5ePVRgo+pD3QFA5mkLsilozLE/ nYTnMbzzsDT/umvwBOJC/Vc9JRxdtdH6W0+P8PiHQRKWbq8XXxGR8agrzhFegs25qt iQq7ByiWV0aluNuM+Fw7pXKFewVHshgkatXcVjYY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38548: drm: bridge: cdns-mhdp8546: Fix possible null pointer dereference Date: Wed, 19 Jun 2024 15:35:57 +0200 Message-ID: <2024061950-CVE-2024-38548-29a5@gregkh> X-Mailer: git-send-email 2.45.2 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=2865; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zWi7l5I/TgyhBdnRqW0UWg0MFwoaU3p3Uz49WhX58hs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlF97ZVLP/z6n7srKs7rs1eaaS4avn8ttwsbxfzPrmni Wrv206Id8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEjpYzLFiRfl7r971Q1vNc z49O6lrRHMpy4ALDgk2/Zc4JXpSo3514aWs/7+WcUMb6xQA= 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: bridge: cdns-mhdp8546: Fix possible null pointer dereference In cdns_mhdp_atomic_enable(), the return value of drm_mode_duplicate() is assigned to mhdp_state->current_mode, and there is a dereference of it in drm_mode_set_name(), which will lead to a NULL pointer dereference on failure of drm_mode_duplicate(). Fix this bug add a check of mhdp_state->current_mode. The Linux kernel CVE team has assigned CVE-2024-38548 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit fb43aa0acdfd and fixed in 5.10.219 with commit 85d1a27402f8 Issue introduced in 5.10 with commit fb43aa0acdfd and fixed in 5.15.161 with commit 89788cd9824c Issue introduced in 5.10 with commit fb43aa0acdfd and fixed in 6.1.93 with commit ca53b7efd4ba Issue introduced in 5.10 with commit fb43aa0acdfd and fixed in 6.6.33 with commit dcf53e6103b2 Issue introduced in 5.10 with commit fb43aa0acdfd and fixed in 6.8.12 with commit 32fb2ef124c3 Issue introduced in 5.10 with commit fb43aa0acdfd and fixed in 6.9.3 with commit 47889711da20 Issue introduced in 5.10 with commit fb43aa0acdfd and fixed in 6.10-rc1 with commit 935a92a1c400 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-38548 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/bridge/cadence/cdns-mhdp8546-core.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/85d1a27402f81f2e04b0e67d20f749c2a14edbb3 https://git.kernel.org/stable/c/89788cd9824c28ffcdea40232c458233353d1896 https://git.kernel.org/stable/c/ca53b7efd4ba6ae92fd2b3085cb099c745e96965 https://git.kernel.org/stable/c/dcf53e6103b26e7458be71491d0641f49fbd5840 https://git.kernel.org/stable/c/32fb2ef124c3301656ac6c789a2ef35ef69a66da https://git.kernel.org/stable/c/47889711da20be9b43e1e136e5cb68df37cbcc79 https://git.kernel.org/stable/c/935a92a1c400285545198ca2800a4c6c519c650a