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 B501135FC18 for ; Thu, 11 Sep 2025 16:58:12 +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=1757609892; cv=none; b=M97YGbuuAdOo/qQNOxoQlNW+SA54gz3cEitC/6O2xkrrXsTR7huFBxwSegy/TBgyNqKAIykMxp39hb1WF+MDTgy/U+dwdZCe2hZeYF7LyeR65Uj35uSPM7sk6OG64wRuas7Di2TIqCwlKBFUyQM/+g6MRCC+1aHY5Z0CKce4UR8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757609892; c=relaxed/simple; bh=l4gNIGtl6nijeigKi1eHELLo2jb24k4vQez8jmh9f50=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=B+8uUFrxXg9WyqrrH6vvv2/mK/C9BrFfkbIM/PIboyuQSpl742ijnx1hB9ig5DnBsWGKMA/XhRbg2FjcYhUBjEeKa9S11ZIgW0A48lk9nwqs1UsZPnEixTCLeK8entZpxriPXZ15dCBTZm/PQe0IPiAEih2X97k/eB2lf/rvJ3k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kR4rlvbv; 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="kR4rlvbv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3BE0DC4CEF0; Thu, 11 Sep 2025 16:58:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757609892; bh=l4gNIGtl6nijeigKi1eHELLo2jb24k4vQez8jmh9f50=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kR4rlvbvYU8mLbYwzfCAGh0QKDfXB46K0Ag244t2jsFz1I6/GWyBNYqnqIDPjtdAJ JjHEw3Ri3n+Lnr1C5QoNTaVyDCT6dPQXLYlw4U8sT0oGmfew8AJ/13s2YmEyN+xLzV qO/hcvz/PYhXaOgtnzcn6bmkQEfYssVmADBdI1Fw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39774: iio: adc: rzg2l_adc: Set driver data before enabling runtime PM Date: Thu, 11 Sep 2025 18:56:53 +0200 Message-ID: <2025091147-CVE-2025-39774-9da3@gregkh> X-Mailer: git-send-email 2.51.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=2284; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Oc+ZBlDjqERb0ldFUhOo96Zxq6FM3JwhtTai/A+11jU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmH/vv/n6hpHVXAKa+o0VxxboJhYbbZkv22LibtWxUvs /VUzM3oiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIkUlDLMr796tEj7JffCO84e rxi3ciTOEo4tYpjv/O1ZgfmMVk0HWW+NGzOX3bSqeqUOAA== 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: iio: adc: rzg2l_adc: Set driver data before enabling runtime PM When stress-testing the system by repeatedly unbinding and binding the ADC device in a loop, and the ADC is a supplier for another device (e.g., a thermal hardware block that reads temperature through the ADC), it may happen that the ADC device is runtime-resumed immediately after runtime PM is enabled, triggered by its consumer. At this point, since drvdata is not yet set and the driver's runtime PM callbacks rely on it, a crash can occur. To avoid this, set drvdata just after it was allocated. The Linux kernel CVE team has assigned CVE-2025-39774 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 89ee8174e8c8db0efc75b26f2307114b38d61354 and fixed in 6.16.4 with commit e7ce902db071a7b3e696a43d6e14ca57360deee6 Issue introduced in 6.14 with commit 89ee8174e8c8db0efc75b26f2307114b38d61354 and fixed in 6.17-rc3 with commit c69e13965f26b8058f538ea8bdbd2d7718cf1fbe 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-39774 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/iio/adc/rzg2l_adc.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/e7ce902db071a7b3e696a43d6e14ca57360deee6 https://git.kernel.org/stable/c/c69e13965f26b8058f538ea8bdbd2d7718cf1fbe