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 1E847199EB7 for ; Sat, 11 Jan 2025 12:40:09 +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=1736599209; cv=none; b=rUgDm6Zpzi2YYmVXOnvLhYZcw6GMn8Y6mRk4y9A0RpqJUKiGslxY34ojVOGB4UCySsARZdaCyZY8Xn38PYrdGYXWs4nECH/HlL/CjsW/pYL/LdRYdffU/eiNWILlAKWJ36l8kypSjTZA4paf06OEOasWXkE5rtoqRcDuq/yN73Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736599209; c=relaxed/simple; bh=odOUsyhb61W8FQTAJV6FGnGxkUlpefKENUdm4sy9u34=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BCuJzWR5ekFwHXwWvlEKo5BM3Oi6K7VxyAG6KfMIg6n6xWGMEPPWjGMglpMQrj8Q75iKeeQUEMfjVeEbOsS90KbGry8OmSbBkW/UqbF7EleQB0PWDUehnkHVG1IFB8wlnyTuqZMuHGxN8xN6JTLg6Tdk1R6V6ipxOIfhbARiDNc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mvp3E54C; 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="mvp3E54C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A66DC4CED2; Sat, 11 Jan 2025 12:40:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736599209; bh=odOUsyhb61W8FQTAJV6FGnGxkUlpefKENUdm4sy9u34=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mvp3E54CWEykvZz/KTnftwlf0yk6zEZylfb1IgGc6lYLJQIXGVdYaiZb3KQLxEwN7 a77ID/SSg2uCzRreMlYAEf7obmmivvjwvJ+p5sZ5iOdiyTpJCfEe8Y3Yp/T0w3Rcj1 2wVS1FsujjGFk2fBN5YjXVlhRYV61+daHUObnvcg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-57799: phy: rockchip: samsung-hdptx: Set drvdata before enabling runtime PM Date: Sat, 11 Jan 2025 13:39:54 +0100 Message-ID: <2025011151-CVE-2024-57799-ae66@gregkh> X-Mailer: git-send-email 2.48.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=2078; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=odOUsyhb61W8FQTAJV6FGnGxkUlpefKENUdm4sy9u34=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlNadOnaTIzeJ9buac2+NUNpbvz9t9pvDbt8x4xC4Mlf R5T7tR/6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJeHIwzE+yzn+uLcMR9jg9 LfSL49v5HlsmiTPMTxHRue5zMV5Tp9DOa4vwjpz0RX/9AA== 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: phy: rockchip: samsung-hdptx: Set drvdata before enabling runtime PM In some cases, rk_hdptx_phy_runtime_resume() may be invoked before platform_set_drvdata() is executed in ->probe(), leading to a NULL pointer dereference when using the return of dev_get_drvdata(). Ensure platform_set_drvdata() is called before devm_pm_runtime_enable(). The Linux kernel CVE team has assigned CVE-2024-57799 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 553be2830c5f33308483e8118de748a2c69fe593 and fixed in 6.12.8 with commit 7061849a4a1752a06944a819dd1f7bfd58df7383 Issue introduced in 6.9 with commit 553be2830c5f33308483e8118de748a2c69fe593 and fixed in 6.13-rc5 with commit 9d23e48654620fdccfcc74cc2cef04eaf7353d07 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-57799 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/phy/rockchip/phy-rockchip-samsung-hdptx.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/7061849a4a1752a06944a819dd1f7bfd58df7383 https://git.kernel.org/stable/c/9d23e48654620fdccfcc74cc2cef04eaf7353d07