Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 551FA3A168F for ; Sun, 19 Jul 2026 15:00:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473212; cv=none; b=F3xuXnpgz9+/fdsghqWNtZkMqUoMF7GphGCXQ6jmOCs5iB+XoTJaRpYa08MntB/QS2VtjZV6cEjOMfZBQdTD98xFrMyJE9n1YEje1lxmxkynZNZpxFUDk53cD2RREsBouAyWG7lrWmfuJdx4Fw/DRN5bBOCytt8X17BZSNhXtKU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473212; c=relaxed/simple; bh=pOjbHvH5XOD27MMszAAOFUyu/1s2j4Tv1cgrJvZF4Gw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oVJ4tWuAhZNGHwKlTMKSGp0AOy0rZJyXc31TcL2vIX0fql1AQTtQ2RXACbtU7CiowqCUL0c4HCLY4ubPneGno+3gj8OsPAbVRH3sNDNserBRMWX++UBMSGjuWzI31PyiU+PwlfiXXzW9rXQUqBWriL6qG2tXdDXLS1xoufnkchI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BJPxiU96; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="BJPxiU96" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 947881F000E9; Sun, 19 Jul 2026 15:00:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784473211; bh=CDh4sxUFakalrqhPBZZt1btNuNAgCatNx9AEpBlzgLg=; h=From:To:Cc:Subject:Date:Reply-To; b=BJPxiU96aquvxCyY0OJ44L3mzPF9pJIedDePM1LXrGYUHzJlpq4XwOP+NDY7iPzLS t6q0lLxFIqvcPNnORqbn6xKxZxGGMAXV+XBFqBh+CWlrN5aHAgc+2poHvzvglXqQ6y hPbjD8sXhtE0cOcmtcB+oevmNhgHUwYTYDC1tgjE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63935: iio: adc: nxp-sar-adc: fix division by zero in write_raw Date: Sun, 19 Jul 2026 16:56:35 +0200 Message-ID: <2026071951-CVE-2026-63935-227a@gregkh> X-Mailer: git-send-email 2.55.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=2143; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=b3vk1lqBQWOH8hEIBxJ9JI+pwgVqdBT3xyWyyE/pJX0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxT8sPbOGXXVyxrk688N8TdoH8ZfIvPL+pHejxeKJ4R LA3bVdSRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzE9DnDgouRbCFRD9xburK2 XZghd6rzwMlAQ4b5wf05jKbVWT0Ov1TFXPl43jUWdzYBAA== 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: nxp-sar-adc: fix division by zero in write_raw Add a validation check for the sampling frequency value before using it as a divisor. A user writing zero or a negative value to the sampling_frequency sysfs attribute triggers a division by zero in the kernel. Also prevent unsigned integer underflow when the computed cycle count is smaller than NXP_SAR_ADC_CONV_TIME, which would wrap the u32 inpsamp to a huge value. The Linux kernel CVE team has assigned CVE-2026-63935 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit 4434072a893e4864519c167947083ff3e4cc2d95 and fixed in 7.0.12 with commit cb6ea15e7d3c7518f806975a06b7d4c0a26402ea Issue introduced in 7.0 with commit 4434072a893e4864519c167947083ff3e4cc2d95 and fixed in 7.1 with commit a9aba21a539c668a66b58eeb08ad3909e5a54c2a 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-63935 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/nxp-sar-adc.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/cb6ea15e7d3c7518f806975a06b7d4c0a26402ea https://git.kernel.org/stable/c/a9aba21a539c668a66b58eeb08ad3909e5a54c2a