CVE-2026-63931
iio: chemical: scd30: fix division by zero in write_raw
Description
In the Linux kernel, the following vulnerability has been resolved: iio: chemical: scd30: fix division by zero in write_raw Add a zero check for val2 before using it as a divisor when setting the sampling frequency. A user writing a zero fractional part to the sampling_frequency sysfs attribute triggers a division by zero in the kernel.
INFO
Published Date :
July 19, 2026, 4:17 p.m.
Last Modified :
July 27, 2026, 5:44 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Check for zero divisor before division.
- Validate fractional part input for sampling frequency.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-63931.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-63931 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-63931
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-63931 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-63931 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 19, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '64b3d8b1b0f5c16c19045785e4da8391ae35ec99', 'lessThan': '4748bce423a363bb8a85a624faeb8f54fe331611', 'versionType': 'git'}, {'status': 'affected', 'version': '64b3d8b1b0f5c16c19045785e4da8391ae35ec99', 'lessThan': '6308b812acdcac38cbfe1af0b1524c3375f408a5', 'versionType': 'git'}, {'status': 'affected', 'version': '64b3d8b1b0f5c16c19045785e4da8391ae35ec99', 'lessThan': 'c7a740bf75554b051fabb17596ca6e483d6e6d90', 'versionType': 'git'}, {'status': 'affected', 'version': '64b3d8b1b0f5c16c19045785e4da8391ae35ec99', 'lessThan': 'e85bc501947f5ae16dd9adc01162b76d55ab7962', 'versionType': 'git'}, {'status': 'affected', 'version': '64b3d8b1b0f5c16c19045785e4da8391ae35ec99', 'lessThan': 'd98c2e69aab905d1b19a69ffe584efa46a9efd42', 'versionType': 'git'}, {'status': 'affected', 'version': '64b3d8b1b0f5c16c19045785e4da8391ae35ec99', 'lessThan': '5e4d34092a5ebfbc3a45a180c76ecb1cdbbedd53', 'versionType': 'git'}, {'status': 'affected', 'version': '64b3d8b1b0f5c16c19045785e4da8391ae35ec99', 'lessThan': '2c50c017df97bfb425038efdfb8514c7bcd08564', 'versionType': 'git'}, {'status': 'affected', 'version': '64b3d8b1b0f5c16c19045785e4da8391ae35ec99', 'lessThan': '5aba4f94b225617a55fed442a70329b2ee19c0a5', 'versionType': 'git'}], 'programFiles': ['drivers/iio/chemical/scd30_core.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.9'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.9', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.259', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.210', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.176', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.143', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.93', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.35', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.12', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/iio/chemical/scd30_core.c'], 'defaultStatus': 'affected'}] Added Description In the Linux kernel, the following vulnerability has been resolved: iio: chemical: scd30: fix division by zero in write_raw Add a zero check for val2 before using it as a divisor when setting the sampling frequency. A user writing a zero fractional part to the sampling_frequency sysfs attribute triggers a division by zero in the kernel. Added Reference https://git.kernel.org/stable/c/2c50c017df97bfb425038efdfb8514c7bcd08564 Added Reference https://git.kernel.org/stable/c/4748bce423a363bb8a85a624faeb8f54fe331611 Added Reference https://git.kernel.org/stable/c/5aba4f94b225617a55fed442a70329b2ee19c0a5 Added Reference https://git.kernel.org/stable/c/5e4d34092a5ebfbc3a45a180c76ecb1cdbbedd53 Added Reference https://git.kernel.org/stable/c/6308b812acdcac38cbfe1af0b1524c3375f408a5 Added Reference https://git.kernel.org/stable/c/c7a740bf75554b051fabb17596ca6e483d6e6d90 Added Reference https://git.kernel.org/stable/c/d98c2e69aab905d1b19a69ffe584efa46a9efd42 Added Reference https://git.kernel.org/stable/c/e85bc501947f5ae16dd9adc01162b76d55ab7962