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 8EDD43C3425 for ; Fri, 1 May 2026 14:18:35 +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=1777645115; cv=none; b=tP3tptsjGNHupW6BsLQIA47lsE155vuDtEpIA6zsjUpqx1aO+910F7fb60/34QpLvI3wrrILIQzEqDgXc39zsFBQFYRbalsIOSICk4hvwEwzLV3IhbrPD7VeDX5MAsHgzrQoPNgeq4xPAbKmMqJP64whRa3rsKH2obOz+QFdUkI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645115; c=relaxed/simple; bh=SRJ8vXUEASypVRY1YLq8VcCpomYuRNTGTVU+eqTTFyo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XywRNmeVS2Nu6BjkF3+4VgfHun6GIVA/9j0ja+6oPEBUPdLZPS36vgVIo/c7Fg4spbo5OaaoAbFO03J0KftC+XJvLuyr57v02D4GUPFstp+oM2b4V4Z1hRBQfsZLIGY4TrCUcz4NK3BZGALktrrThppvMEwuCLYyVPead98YmIk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VYo9URzH; 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="VYo9URzH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21511C2BCB4; Fri, 1 May 2026 14:18:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645115; bh=SRJ8vXUEASypVRY1YLq8VcCpomYuRNTGTVU+eqTTFyo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=VYo9URzHJbpbUYL/7HoYi8VqFZPpN34nWRKwC3dg8VDKDXiNcbPQgPANwEGEjs76n rOTg7BWvj59ZeamP0r6ml0gQMI/N/BKgNcjQSEklY4voYrTcP69a3jH/hV//8PRSZk Dz60AtL1G3Fe6YhXBr1izMc0uJiTKTXgMLaG4IYw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31764: iio: imu: st_lsm6dsx: Set buffer sampling frequency for accelerometer only Date: Fri, 1 May 2026 16:15:15 +0200 Message-ID: <2026050146-CVE-2026-31764-8607@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2600; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HDtB/D21IKbUUsaEaojUfRK4d9lM/ZAYUpA0RWCwhus=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftoZl2FhVZSplXd39+rHqm5xF/90umwq+57STsz4Sc G5e0OvYjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI4UyGBWtWljdtXbDQ5hv7 RrbGvRzCPXrJ1xjmcFvc/Bm6+S7XNY+460UrtRfW8c7YDQA= 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: imu: st_lsm6dsx: Set buffer sampling frequency for accelerometer only The st_lsm6dsx_hwfifo_odr_store() function, which is called when userspace writes the buffer sampling frequency sysfs attribute, calls st_lsm6dsx_check_odr(), which accesses the odr_table array at index `sensor->id`; since this array is only 2 entries long, an access for any sensor type other than accelerometer or gyroscope is an out-of-bounds access. The motivation for being able to set a buffer frequency different from the sensor sampling frequency is to support use cases that need accurate event detection (which requires a high sampling frequency) while retrieving sensor data at low frequency. Since all the supported event types are generated from acceleration data only, do not create the buffer sampling frequency attribute for sensor types other than the accelerometer. The Linux kernel CVE team has assigned CVE-2026-31764 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 6b648a36c200dfd3e776e657a4c8a8ce63fb52d3 and fixed in 6.19.12 with commit 3225a81e8d264442b14c7c1bc965ebafa3c0ee01 Issue introduced in 6.19 with commit 6b648a36c200dfd3e776e657a4c8a8ce63fb52d3 and fixed in 7.0 with commit 679c04c10d65d32a3f269e696b22912ff0a001b9 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-2026-31764 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/imu/st_lsm6dsx/st_lsm6dsx_buffer.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/3225a81e8d264442b14c7c1bc965ebafa3c0ee01 https://git.kernel.org/stable/c/679c04c10d65d32a3f269e696b22912ff0a001b9