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 19A1832A3C3 for ; Thu, 11 Sep 2025 16:57:37 +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=1757609857; cv=none; b=huQxb8xJw4ilpW+dFp5RhgCBafkAdKQJ1oRL4w7QS+Gc+UFWy4nmONCThejb8M3rtP8q4zvCYoiumsaPs5F0J3Se8fPZBCqAsZDn3xnj9u03oKkYLpGB/8pd+re1eIpgJJIXUfMHQEDfoVPjbb1N1qHdfW/xaR6iJUBj1uOwcxo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757609857; c=relaxed/simple; bh=XWimrz1eIIJUlUkKWvjpOlvlcVthpdbLuKFMJ8XFawE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HLjhOmCVRYT6Ps1BtsfW5eOkZgjgSX8GBhfmnoQJ9Ap9B3yCtYGnZ6JNRTS/cIMolpWUrgoq2/+PFPNrFlD/vs2l3pdvfa0eGEu2cnlc3gm7UYcKODa2ij00XJ8UfQt5eZ6lRdUFQnEaLnqL+qaXSv/4kxJHUl34qlUSW8NdwBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CJ8B38nt; 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="CJ8B38nt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95C3CC4CEF0; Thu, 11 Sep 2025 16:57:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757609857; bh=XWimrz1eIIJUlUkKWvjpOlvlcVthpdbLuKFMJ8XFawE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CJ8B38ntWTTAOMA0daZzhuhCnFB0XA+8qGBn07TYCZZqT/ne3yv8NOmYJOJVs3S8S pUgvab6Azce/OgV+z0b/4RqYNdvlalQGJ9tBBd/3cvM+/3a/YM/ho0qYWNibG6ELfS UWZx0mz29XydjIiCpDw1Xc53LtdFAqzNOo6Q5tOQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39786: iio: adc: ad7173: fix channels index for syscalib_mode Date: Thu, 11 Sep 2025 18:57:04 +0200 Message-ID: <2025091151-CVE-2025-39786-96c9@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=2186; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CWRPb0vsN8aGRC04SniQ8YjOSgZvLri1+RPrm1EcGyE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmH/gcfXSifc/XS6W3ywkHVDcpHmc26Zea0Caw/cENmb /jLU6/XdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEPjxkmCtSnRkeZDrv1h/b XqPJSlFlUqsuTGOY76pmZNl/w1/LOo5totgjbYUu/ffbAQ== 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: ad7173: fix channels index for syscalib_mode Fix the index used to look up the channel when accessing the syscalib_mode attribute. The address field is a 0-based index (same as scan_index) that it used to access the channel in the ad7173_channels array throughout the driver. The channels field, on the other hand, may not match the address field depending on the channel configuration specified in the device tree and could result in an out-of-bounds access. The Linux kernel CVE team has assigned CVE-2025-39786 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 031bdc8aee01b7b298159eee541844d8bff4467d and fixed in 6.16.4 with commit 2def1a8691eb43654da0ae0d2fdb3722e20262a5 Issue introduced in 6.14 with commit 031bdc8aee01b7b298159eee541844d8bff4467d and fixed in 6.17-rc1 with commit 0eb8d7b25397330beab8ee62c681975b79f37223 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-39786 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/ad7173.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/2def1a8691eb43654da0ae0d2fdb3722e20262a5 https://git.kernel.org/stable/c/0eb8d7b25397330beab8ee62c681975b79f37223