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 775042D7D36 for ; Sat, 16 Aug 2025 11:15:02 +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=1755342902; cv=none; b=fVWdqvgVvG1cMY9jt7O5lwGTt5O/68/dz9yXlj4QUzTacjpzvPBML9kPrL6+49QI4lBTDSZ5mIsWK2wgjygQMIpOEB2sDG01vJyZKsNi54wBcLwJ92ideS7W81TnWNl9AEcj3Jb/bdOQyzI5Yn1GZMRw7oI/vPc0wmzNWWtFGAw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755342902; c=relaxed/simple; bh=j8wFA052LQqtWQAcA15hWSFLe4WR6K61a2GoqeqFurw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bDkrE27BK6vMr9u7Yq4JTY4nG8r+vMHOacUaeGiJB1Y5NhBNeL/d1B5fFbPM4S9oBLTmqWLCtx7JRWbyU7a7VapA/ElPgrm6ssEjZcI0gnb0Hm0UZ6BiFaXVn4YTYvzw1Neq8JcsUv8yFJKHaQSnCz6+y27da08OSUfE8uT+tE8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PoP0EcoS; 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="PoP0EcoS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D252CC4CEEF; Sat, 16 Aug 2025 11:15:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755342902; bh=j8wFA052LQqtWQAcA15hWSFLe4WR6K61a2GoqeqFurw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PoP0EcoSIBLA3xAtVK6QNIgPyK3gcENIlNKxq341vZS2TRHhcHMH+vFaYjbXROrz1 S+mxHC7zN0lcchRpcrq9TXGl5bIbZY8BVM/iLjEHewbkRUhgND5I4nMKL8jh9jmbOI b4UoS/V20mAY4BS8AzbEeJLWgHXOCO22XQQK/OBs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38531: iio: common: st_sensors: Fix use of uninitialize device structs Date: Sat, 16 Aug 2025 13:14:02 +0200 Message-ID: <2025081655-CVE-2025-38531-abbc@gregkh> X-Mailer: git-send-email 2.50.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=2326; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RpbxDRVxT4dSr9z29uVfCJAv9Jdv6srCvS6E3iRiJko=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkL0j/f0b344G71nEfZl7akywcvWbwt+sUJubsci+Zs2 Kd7J1DXpiOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmUrWBYUHP9aDDqzn///8e EZNeevVdyI0CgxaGuRJ1BV/irT4/Ovf1zaq1yp5b63/f9QIA 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: common: st_sensors: Fix use of uninitialize device structs Throughout the various probe functions &indio_dev->dev is used before it is initialized. This caused a kernel panic in st_sensors_power_enable() when the call to devm_regulator_bulk_get_enable() fails and then calls dev_err_probe() with the uninitialized device. This seems to only cause a panic with dev_err_probe(), dev_err(), dev_warn() and dev_info() don't seem to cause a panic, but are fixed as well. The issue is reported and traced here: [1] The Linux kernel CVE team has assigned CVE-2025-38531 to this issue. Affected and fixed versions =========================== Fixed in 6.12.40 with commit 610615c9668037e3eca11132063b93b2d945af13 Fixed in 6.15.8 with commit 3297a9016a45144883ec990bd4bd5b1d79cafb46 Fixed in 6.16 with commit 9f92e93e257b33e73622640a9205f8642ec16ddd 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-38531 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/accel/st_accel_core.c drivers/iio/common/st_sensors/st_sensors_core.c drivers/iio/common/st_sensors/st_sensors_trigger.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/610615c9668037e3eca11132063b93b2d945af13 https://git.kernel.org/stable/c/3297a9016a45144883ec990bd4bd5b1d79cafb46 https://git.kernel.org/stable/c/9f92e93e257b33e73622640a9205f8642ec16ddd