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 E3736D2FB for ; Wed, 18 Jun 2025 09:29:34 +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=1750238975; cv=none; b=L9uxobgTfNvsxjQDmXddVjKOsNaTv7aIQTODzukNuQclpHejI3p98uhUZI7FQSvUnnTuO4AzvfZ2e/kH2Ovq3aemLM/FfLawXBmbntSTMiNsJinRd1dFzkeqMUItPb9w3RgrMKkYc5NBEjf7rLjnmT5w7ZQRjJqO7t9aBR8UsZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750238975; c=relaxed/simple; bh=QEw2dUq/VSoDyShBsCLRr2zWVbFHbqILmZvdOIiBasc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d6zDMDVhjjyHxI4ik8003GnmOBqcCurT/78mZbqdhM9/pEEw9t3UtS6gnpWCA5Z60txGVq643IgAJpLdh7WYWKz9g5i1DX4B0CzdDlBw8N2eDxe8VAht+G1vuRaovMjEpNR9IFe+rEOvAJmWlpNYGOvldmw0r6z5dZcsRSYKCf0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ixv2eJuf; 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="Ixv2eJuf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14D58C4CEE7; Wed, 18 Jun 2025 09:29:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750238974; bh=QEw2dUq/VSoDyShBsCLRr2zWVbFHbqILmZvdOIiBasc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Ixv2eJuf3xZ7Ps8auz431K07N8AJYhHApGQc6bRmyo2fbMoSMN6e4jBgtQzn8ziT2 M/1Us+7o0FAz6ACerezpnTcAIt6TlBln3zgzQVV6ElT6KOz0IrNvoblGMrr+9DfmkP lJUpqozhdncctuTtM+dAilrtNAqP9bxZPpJseOko= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38025: iio: adc: ad7606: check for NULL before calling sw_mode_config() Date: Wed, 18 Jun 2025 11:28:59 +0200 Message-ID: <2025061847-CVE-2025-38025-5a9e@gregkh> X-Mailer: git-send-email 2.49.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=1933; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LJE6Nuid4xxm7rZ/dA5VSKzYdJI/epffLU4LrH7wD00=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBbeflXUUuW5nWPtz338p46cU1bVyL5/9T6FY0f6H+/ dY23mPvOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAie+4yzOHkrRYM4lqwqTZv keyrzq8Fx9bfL2FY0Ds748of1X0bJ+/0yDY8OW2RgVL1GwA= 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: ad7606: check for NULL before calling sw_mode_config() Check that the sw_mode_config function pointer is not NULL before calling it. Not all buses define this callback, which resulted in a NULL pointer dereference. The Linux kernel CVE team has assigned CVE-2025-38025 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit e571c1902116a376c96e59639820662d7d6a13da and fixed in 6.14.8 with commit c28ad63aa55eaadad2b1793b90bfbe7296cc03ba Issue introduced in 6.13 with commit e571c1902116a376c96e59639820662d7d6a13da and fixed in 6.15 with commit 5257d80e22bf27009d6742e4c174f42cfe54e425 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-38025 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/ad7606.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/c28ad63aa55eaadad2b1793b90bfbe7296cc03ba https://git.kernel.org/stable/c/5257d80e22bf27009d6742e4c174f42cfe54e425