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 2650E189B8D for ; Wed, 9 Oct 2024 14:14:13 +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=1728483254; cv=none; b=D13u8GRQQzBfwqN6kXDF4btvXmmvyVqqKziSLwvUNqc8HmHuduViugMWkR/jqUqDQQGRo0YNGIETUB+AK8zI2hV1qRNaie0qbFd05/e+JA4y/E4JGu39JUPAIh7hHfAwx5ncHYQ0norTE9B4ezIDsvokmP0UYtFfMUeQV9qi254= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728483254; c=relaxed/simple; bh=6Y3yRfHqZIpv5dkV8gKHF0WJnXZ3pNQHHeWN5ymJ8ew=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=T+bog43LkvVx64G0LGSg3t+45Mkn8wSZsu3eYEyTL9e00MQa0EV61DXY1HepeBQlcr5xWaysBxOGh70bYWkgLg53ABqu2/bnN+akgbxodGItnL9SzCNsaSmZzdqZIK+fGpKtEkls5YgHuI5P3pLgER2+1RTr1juOjVUI7xjuAuY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=le8M0QFu; 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="le8M0QFu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4998BC4CEC3; Wed, 9 Oct 2024 14:14:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1728483253; bh=6Y3yRfHqZIpv5dkV8gKHF0WJnXZ3pNQHHeWN5ymJ8ew=; h=From:To:Cc:Subject:Date:Reply-to:From; b=le8M0QFuQIKCPyXj3A9ThjhEUfoK6dJu9dHnSYgwZcBYjpYpfTydiaP1RKDoXFXdD rW40rUqGmymauyXMI/RDM3yRKuD0LZXTAgGcWN4v8Y+jBNF0M5fqArUR7gDLM6FvyC gCNxQJJAv3NWHJNCG34Kl7yRSsIfsVvZ2kbZhpxY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47663: staging: iio: frequency: ad9834: Validate frequency parameter value Date: Wed, 9 Oct 2024 16:14:05 +0200 Message-ID: <2024100904-CVE-2024-47663-9bdc@gregkh> X-Mailer: git-send-email 2.47.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=2990; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6Y3yRfHqZIpv5dkV8gKHF0WJnXZ3pNQHHeWN5ymJ8ew=; b=owGbwMvMwCRo6H6F97bub03G02pJDOls/Wu6rr2661sRGMAYdON2+tE3i4tFla04ph2a1uJb8 ncuw7QjHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRrACGBT1TUuYl7JzKdXun eobNJ5vyVIYz7xgWTCpKXL2HlUlnVYG1ZUnIs4K/TBk7AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: staging: iio: frequency: ad9834: Validate frequency parameter value In ad9834_write_frequency() clk_get_rate() can return 0. In such case ad9834_calc_freqreg() call will lead to division by zero. Checking 'if (fout > (clk_freq / 2))' doesn't protect in case of 'fout' is 0. ad9834_write_frequency() is called from ad9834_write(), where fout is taken from text buffer, which can contain any value. Modify parameters checking. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2024-47663 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.38 with commit 12b9d5bf76bf and fixed in 5.4.284 with commit 0e727707a239 Issue introduced in 2.6.38 with commit 12b9d5bf76bf and fixed in 5.10.226 with commit 41cc91e3138f Issue introduced in 2.6.38 with commit 12b9d5bf76bf and fixed in 5.15.167 with commit d8b09a5edc4a Issue introduced in 2.6.38 with commit 12b9d5bf76bf and fixed in 6.1.110 with commit 3ba9abfcaa9e Issue introduced in 2.6.38 with commit 12b9d5bf76bf and fixed in 6.6.51 with commit dc12e49f970b Issue introduced in 2.6.38 with commit 12b9d5bf76bf and fixed in 6.10.10 with commit 8961b245e8f9 Issue introduced in 2.6.38 with commit 12b9d5bf76bf and fixed in 6.11 with commit b48aa9917589 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-2024-47663 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/staging/iio/frequency/ad9834.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/0e727707a239d5c519fc9abc2f0fd913516a7e47 https://git.kernel.org/stable/c/41cc91e3138fe52f8da92a81bebcd0e6cf488c53 https://git.kernel.org/stable/c/d8b09a5edc4a634373158c1a405491de3c52e58a https://git.kernel.org/stable/c/3ba9abfcaa9e16bb91ed7e0e2b42e94a157a953e https://git.kernel.org/stable/c/dc12e49f970b08d8b007b8981b97e2eb93c0e89d https://git.kernel.org/stable/c/8961b245e8f92bccbaacfbbdf69eba60e3e7c227 https://git.kernel.org/stable/c/b48aa991758999d4e8f9296c5bbe388f293ef465