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 3750C5E093 for ; Wed, 4 Sep 2024 18:58:25 +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=1725476306; cv=none; b=NiJFdroUXuw/wHrPrcyc9078E0fMRsquxADdp8HrqYKcXd0OgCwQDVf9GZoERuQjvFxTQ76lH5bns71qFSsbLdt6vdyZydu7XBHvlC/k+fqXIyFuW+r7OFtyXYWTDju8U/yY2Od+YjvAp3oEhpm0jGYJweVLZvnSHR0NjNaNjWU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725476306; c=relaxed/simple; bh=rF+5P51uD3Xyb1h7KHv095IOMqv7ZeGGMIdGDIuIdpg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YQghl4ayqA0/GNbTUJ5beYigcLuzGRKfj3EAYVAv5ivuGODwg0y8AqNksYqbm9fxfZ2vsNCNFiMMh44vPAZUahwIL/YBNtg5Ku0WNym+aloN/FsGjwsl3oi3HSUsbqH39Clxq9uBkAqdEVzKxD43zuTF/bSTsTOmwgktZYdkrvs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=M2wA8ddD; 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="M2wA8ddD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55D94C4CEC2; Wed, 4 Sep 2024 18:58:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725476305; bh=rF+5P51uD3Xyb1h7KHv095IOMqv7ZeGGMIdGDIuIdpg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=M2wA8ddDqNqkfW6cJCAvNRs3ULLwL0l0deJlVM4fuoWjFItc5EzqgtX6BhwsUWwe6 kQG3gubTvcOoSqrXYM9sdOiDBKYots//jyEbybC9ttRkvEaOkVMHIGIzqFY1ZYgjn8 qd/cCcUoA7mUzNN/numsajIcLS17koAfyShjPfiE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-44967: drm/mgag200: Bind I2C lifetime to DRM device Date: Wed, 4 Sep 2024 20:56:54 +0200 Message-ID: <2024090453-CVE-2024-44967-dd14@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=2465; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rF+5P51uD3Xyb1h7KHv095IOMqv7ZeGGMIdGDIuIdpg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk31pbOrvJnvbNePNvp5oELbk8fOgRuF/+9ZXrYHu+cf ae4Uza4d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE1isyLOhb0t1zlOXpv+sc fy7X/u7lalGLy2aY73r49Zt76+P7l32w0bGIM179NWCPHgA= 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/mgag200: Bind I2C lifetime to DRM device Managed cleanup with devm_add_action_or_reset() will release the I2C adapter when the underlying Linux device goes away. But the connector still refers to it, so this cleanup leaves behind a stale pointer in struct drm_connector.ddc. Bind the lifetime of the I2C adapter to the connector's lifetime by using DRM's managed release. When the DRM device goes away (after the Linux device) DRM will first clean up the connector and then clean up the I2C adapter. The Linux kernel CVE team has assigned CVE-2024-44967 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit b279df242972 and fixed in 6.1.105 with commit 55a6916db771 Issue introduced in 6.0 with commit b279df242972 and fixed in 6.6.46 with commit 81d34df84362 Issue introduced in 6.0 with commit b279df242972 and fixed in 6.10.5 with commit 9d96b91e03cb Issue introduced in 6.0 with commit b279df242972 and fixed in 6.11-rc1 with commit eb1ae34e48a0 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-44967 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/mgag200/mgag200_i2c.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/55a6916db77102765b22855d3a0add4751988b7c https://git.kernel.org/stable/c/81d34df843620e902dd04aa9205c875833d61c17 https://git.kernel.org/stable/c/9d96b91e03cba9dfcb4ac370c93af4dbc47d5191 https://git.kernel.org/stable/c/eb1ae34e48a09b7a1179c579aed042b032e408f4