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 9956228DF07 for ; Thu, 3 Jul 2025 08:38:31 +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=1751531911; cv=none; b=sQQvubJKEOt+D2S7WfsGBH4Y9VIZZWWlTXd2dHgl/HhybL1ht9t7fJaEw+cfJyFyZoL0VxU4ewIUFwVUZCP2o3RVFsMhRWL1WGwbD4jE3IHZu5nGXPssDyI+PTKG0MUAwOlWXCvNqqxiMyOLeWmGkGkxUm+cFcHjCm4aac/Vg3k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531911; c=relaxed/simple; bh=pZJ/2rc+rLaUVKwLVBRPzbuooQALHHwOjefUH7b62BM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cDXYJ79iPsXTWhKS4Kp33MHXMKosbOWtgBa6vKnzX/2Sh9/ED6vjvQ9DpPj4bIJD5SAwnHQtTHLUTSui0Vu3f7dntwfgagAtkFKLLiq6EhsnxfNYtbg2osQhPXU53x/o0CNJrIXQiZasE7mbQZKr6J9iBOQjpRe81HNTRJGBfe0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QIS5sngh; 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="QIS5sngh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06BC0C4CEE3; Thu, 3 Jul 2025 08:38:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751531911; bh=pZJ/2rc+rLaUVKwLVBRPzbuooQALHHwOjefUH7b62BM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=QIS5snghGBhDuPqz7kdKGvV2jkm/Prh1jib0jPH/NTsKKaSOgF/JtxZWxJFoUflC9 9gMlayu4AP2VjTG3sZxxHRDlixNaDuDJYBZQ5fcyQmqtP5n+Pu2p6MXTYtzUk5j4Nx Vxc4sVq47Xq8Wp0QtI4WeKURnmyVVVVQKUVKbd0I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38133: iio: adc: ad4851: fix ad4858 chan pointer handling Date: Thu, 3 Jul 2025 10:35:50 +0200 Message-ID: <2025070331-CVE-2025-38133-5976@gregkh> X-Mailer: git-send-email 2.50.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=2357; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CaXhDalqmnlJIUgN8jB8rORQ5/ddpVd6jPKd0myB708=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpDpf3TQnpK86VMww+lnnUVbo+kJVfz+8Q/zltywM2F t++5/3siGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIl4fmRYsLfz4sRK7+/7khWU bi5iODbt1YVrMxgWTHibcjfj8gu+d7Z/tF2iF121fn72EAA= 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: ad4851: fix ad4858 chan pointer handling The pointer returned from ad4851_parse_channels_common() is incremented internally as each channel is populated. In ad4858_parse_channels(), the same pointer was further incremented while setting ext_scan_type fields for each channel. This resulted in indio_dev->channels being set to a pointer past the end of the allocated array, potentially causing memory corruption or undefined behavior. Fix this by iterating over the channels using an explicit index instead of incrementing the pointer. This preserves the original base pointer and ensures all channel metadata is set correctly. The Linux kernel CVE team has assigned CVE-2025-38133 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 6250803fe2ec92be32a4df1c3a39c4a460d5bd58 and fixed in 6.15.3 with commit 6c3b9e1167d072ce2d01cafec7866647cf8d3616 Issue introduced in 6.15 with commit 6250803fe2ec92be32a4df1c3a39c4a460d5bd58 and fixed in 6.16-rc1 with commit 499a8cee812588905cc940837e69918c1649a19e 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-38133 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/ad4851.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/6c3b9e1167d072ce2d01cafec7866647cf8d3616 https://git.kernel.org/stable/c/499a8cee812588905cc940837e69918c1649a19e