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 DDBF3217704 for ; Mon, 20 Oct 2025 15:27:23 +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=1760974043; cv=none; b=kEWbOHARx++eVeQ0Y7cp+0+IixPDmnW1q3R7S0fVA29nxi0QGggjai6zkYZM3GLMw9sxhfTFLzlNw2pj5Mm+o6kPrMCZoaCCE95GoEXaMCrrpW+7XqVzmpmaAPYwMch+kPdebRAU8wtNTrwYUQEyaBQ5XY0BTvQfMgU7c90XDts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760974043; c=relaxed/simple; bh=yxVvDF2f1zWWzNqg9y/rLKewf8zDETFfDs+u69SA+LU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AaTqQ0R6+YQVIR2vLYBG0RLIqfGpcDfBzlkf+hrvqxJMKFvzcMRACmRGpSS0+IwnVG2MQOZTaD9txa5aAZhN0emxTSdKrWqPZmsbFa+q4ZOk++Jr5qSkwfaGBtT9Q9QDZQBYExZBeBY9WWhRldQIIGjzPlK/o0t96zxLxlmDmX0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RzzOPIS4; 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="RzzOPIS4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B8FDC116B1; Mon, 20 Oct 2025 15:27:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760974043; bh=yxVvDF2f1zWWzNqg9y/rLKewf8zDETFfDs+u69SA+LU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RzzOPIS4oQ7jy9d4gmiaMSqN2kFK1YXcJ+AM6QVFaUJ36g5fK6IwI81q6gz9fw7E6 2/5ICsLolwoTuhKMk2q8GdOmZDcbedLtF9kxw1jWxCU6LW4Xs07T3c25aadLVY4+jY ZeL8FSTo/xJ782RWtoRWZ4h+kp12ESWKEFWp/uYY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40011: drm/gma500: Fix null dereference in hdmi teardown Date: Mon, 20 Oct 2025 17:27:07 +0200 Message-ID: <2025102003-CVE-2025-40011-f8f9@gregkh> X-Mailer: git-send-email 2.51.1.dirty 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=3444; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Tt+1mS5q4SueiDc+BOImJNmj8m6/EXbcN8q0CD1+MAw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnfQo4/m9R8pyDh9pIPGkaiytF3i73+rNllPs8iYvIi5 hvFWae4OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiZ8QY5unNaNKedozB6Fpr bWmLgsKDMveZqxgWnPLfqFMUfXbebc4rkX7f/U4aJ/p0AwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/gma500: Fix null dereference in hdmi teardown pci_set_drvdata sets the value of pdev->driver_data to NULL, after which the driver_data obtained from the same dev is dereferenced in oaktrail_hdmi_i2c_exit, and the i2c_dev is extracted from it. To prevent this, swap these calls. Found by Linux Verification Center (linuxtesting.org) with Svacer. The Linux kernel CVE team has assigned CVE-2025-40011 to this issue. Affected and fixed versions =========================== Issue introduced in 3.3 with commit 1b082ccf5901108d3acd860a73d8c0442556c0bb and fixed in 5.4.300 with commit 70b0c11483d3b90b2d0f416026e475e084a77e62 Issue introduced in 3.3 with commit 1b082ccf5901108d3acd860a73d8c0442556c0bb and fixed in 5.10.245 with commit 4bbfd1b290857b9d14ea9d91562bde55ff2bc85e Issue introduced in 3.3 with commit 1b082ccf5901108d3acd860a73d8c0442556c0bb and fixed in 5.15.194 with commit e15de80737d444ed743b1c60ced4a3a97913169b Issue introduced in 3.3 with commit 1b082ccf5901108d3acd860a73d8c0442556c0bb and fixed in 6.1.155 with commit 02e4ff4941efb9bbb40d8d5b61efa1a4119b1ba7 Issue introduced in 3.3 with commit 1b082ccf5901108d3acd860a73d8c0442556c0bb and fixed in 6.6.109 with commit 6ffa6b5bc861a3ea9dfcdc007f002b4a347c24ba Issue introduced in 3.3 with commit 1b082ccf5901108d3acd860a73d8c0442556c0bb and fixed in 6.12.50 with commit f800f7054d2cf28b51296c7c575da27c29e3859b Issue introduced in 3.3 with commit 1b082ccf5901108d3acd860a73d8c0442556c0bb and fixed in 6.16.10 with commit 0fc650fa475b50c1da8236c5e900b9460c7027bc Issue introduced in 3.3 with commit 1b082ccf5901108d3acd860a73d8c0442556c0bb and fixed in 6.17 with commit 352e66900cde63f3dadb142364d3c35170bbaaff 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-2025-40011 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/oaktrail_hdmi.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/70b0c11483d3b90b2d0f416026e475e084a77e62 https://git.kernel.org/stable/c/4bbfd1b290857b9d14ea9d91562bde55ff2bc85e https://git.kernel.org/stable/c/e15de80737d444ed743b1c60ced4a3a97913169b https://git.kernel.org/stable/c/02e4ff4941efb9bbb40d8d5b61efa1a4119b1ba7 https://git.kernel.org/stable/c/6ffa6b5bc861a3ea9dfcdc007f002b4a347c24ba https://git.kernel.org/stable/c/f800f7054d2cf28b51296c7c575da27c29e3859b https://git.kernel.org/stable/c/0fc650fa475b50c1da8236c5e900b9460c7027bc https://git.kernel.org/stable/c/352e66900cde63f3dadb142364d3c35170bbaaff