From mboxrd@z Thu Jan 1 00:00:00 1970 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 D82D6225A2 for ; Mon, 20 May 2024 09:42:33 +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=1716198153; cv=none; b=Q9R6eFlMeim8M2+Q0XKCOz5lnwgkR5u3M+FmKXtvLMhkQN6fHISkwExI4g3jWIJ0JJsWJvMRlT6dS1zxDvUwTcJy5MRzZIXhJTUNjsKvtm3IGlHfcBWsuS7WZJWB9W6sQOHwXBHbD+1ynNjRm77xtgthb3UrvEgzLhZrB3NDpBw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716198153; c=relaxed/simple; bh=hmaCFrYJcxyIhIifLfw5wY97vDlQX3VuqHnabAlgnJs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tjRk94Vipzd5udutPLOjxOLbqeYnjmJNW5gmQs0tkhOYJSfwdlfy5HvmVzY/DvlALaTL+xbDp3JgvlN6jaxPMEbBASvc9bEXAof8v/Bf0L33WtvKjlyHJSrwI0DJQfIECxllH2ef27x+m5yoC1QwVNgWCm6P6KzBzKryJzwLMdU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bWNn97Pd; 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="bWNn97Pd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0FA6FC2BD10; Mon, 20 May 2024 09:42:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716198153; bh=hmaCFrYJcxyIhIifLfw5wY97vDlQX3VuqHnabAlgnJs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=bWNn97PdOx7ckbADFQ9N3iXoHGF22rdHPwk1fdcQhtPTclQyHQPv7VDbO055WPImD 7uMYIpWcTWK4Xp/FRvdtlvlZ+/zG/r8v5SPCY0yEU6Z+9/u6GfckuEgwKJyT7cSj4W ijnu3X/H9ERzTP2iHkohSKlOc4NhoaiGIc5CpKGU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35950: drm/client: Fully protect modes[] with dev->mode_config.mutex Date: Mon, 20 May 2024 11:42:15 +0200 Message-ID: <2024052015-CVE-2024-35950-41bf@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=2417; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hmaCFrYJcxyIhIifLfw5wY97vDlQX3VuqHnabAlgnJs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGneUt8f/Kqa7lQgXcu655n8lF43gbA4E4sDf/e/PR1n3 +7ze/uUjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI/xKG+ekThOyO3HdKzkm7 cfbak5tno5fk7GJY0KmomHGnpe0WT6rGpbkTVu2YIb9rGwA= 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/client: Fully protect modes[] with dev->mode_config.mutex The modes[] array contains pointers to modes on the connectors' mode lists, which are protected by dev->mode_config.mutex. Thus we need to extend modes[] the same protection or by the time we use it the elements may already be pointing to freed/reused memory. The Linux kernel CVE team has assigned CVE-2024-35950 to this issue. Affected and fixed versions =========================== Fixed in 5.4.275 with commit 5a2f957e3c45 Fixed in 5.10.216 with commit 41586487769e Fixed in 5.15.156 with commit d2dc6600d4e3 Fixed in 6.1.87 with commit 18c8cc6680ce Fixed in 6.6.28 with commit 04e018bd913d Fixed in 6.8.7 with commit 8ceb873d8167 Fixed in 6.9 with commit 3eadd887dbac 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-35950 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_client_modeset.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/5a2f957e3c4553bbb100504a1acfeaeb33f4ca4e https://git.kernel.org/stable/c/41586487769eede64ab1aa6c65c74cbf76c12ef0 https://git.kernel.org/stable/c/d2dc6600d4e3e1453e3b1fb233e9f97e2a1ae949 https://git.kernel.org/stable/c/18c8cc6680ce938d0458859b6a08b4d34f7d8055 https://git.kernel.org/stable/c/04e018bd913d3d3336ab7d21c2ad31a9175fe984 https://git.kernel.org/stable/c/8ceb873d816786a7c8058f50d903574aff8d3764 https://git.kernel.org/stable/c/3eadd887dbac1df8f25f701e5d404d1b90fd0fea