# CVE-2026-63931: iio: chemical: scd30: fix division by zero in write_raw

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-07-19T14:55:30.718Z
- Modified: 2026-10-30T14:28:48.130Z
- Weaknesses: CWE-369
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 64b3d8b1b0f5c16c19045785e4da8391ae35ec99 before 4748bce423a363bb8a85a624faeb8f54fe331611; from 64b3d8b1b0f5c16c19045785e4da8391ae35ec99 before 6308b812acdcac38cbfe1af0b1524c3375f408a5; from 64b3d8b1b0f5c16c19045785e4da8391ae35ec99 before c7a740bf75554b051fabb17596ca6e483d6e6d90; from 64b3d8b1b0f5c16c19045785e4da8391ae35ec99 before e85bc501947f5ae16dd9adc01162b76d55ab7962; from 64b3d8b1b0f5c16c19045785e4da8391ae35ec99 before d98c2e69aab905d1b19a69ffe584efa46a9efd42; from 64b3d8b1b0f5c16c19045785e4da8391ae35ec99 before 5e4d34092a5ebfbc3a45a180c76ecb1cdbbedd53; from 64b3d8b1b0f5c16c19045785e4da8391ae35ec99 before 2c50c017df97bfb425038efdfb8514c7bcd08564; from 64b3d8b1b0f5c16c19045785e4da8391ae35ec99 before 5aba4f94b225617a55fed442a70329b2ee19c0a5; 5.9 (not affected: before 5.9; from 5.10.259 up to 5.10.*; from 5.15.210 up to 5.15.*; from 6.1.176 up to 6.1.*; from 6.6.143 up to 6.6.*; from 6.12.93 up to 6.12.*; from 6.18.35 up to 6.18.*; from 7.0.12 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 5.9 before 5.10.259; from 5.11 before 5.15.210; from 5.16 before 6.1.176; from 6.2 before 6.6.143; from 6.7 before 6.12.93; from 6.13 before 6.18.35; from 6.19 before 7.0.12; 7.1

## References

- <https://git.kernel.org/stable/c/4748bce423a363bb8a85a624faeb8f54fe331611> (patch)
- <https://git.kernel.org/stable/c/6308b812acdcac38cbfe1af0b1524c3375f408a5> (patch)
- <https://git.kernel.org/stable/c/c7a740bf75554b051fabb17596ca6e483d6e6d90> (patch)
- <https://git.kernel.org/stable/c/e85bc501947f5ae16dd9adc01162b76d55ab7962> (patch)
- <https://git.kernel.org/stable/c/d98c2e69aab905d1b19a69ffe584efa46a9efd42> (patch)
- <https://git.kernel.org/stable/c/5e4d34092a5ebfbc3a45a180c76ecb1cdbbedd53> (patch)
- <https://git.kernel.org/stable/c/2c50c017df97bfb425038efdfb8514c7bcd08564> (patch)
- <https://git.kernel.org/stable/c/5aba4f94b225617a55fed442a70329b2ee19c0a5> (patch)

## Sources

- CVE List: [CVE-2026-63931](https://www.cve.org/CVERecord?id=CVE-2026-63931), CVE Terms of Use, modified 2026-07-19
- NVD: [CVE-2026-63931](https://nvd.nist.gov/vuln/detail/CVE-2026-63931), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-63931 · Whole record: https://cve.day/CVE-2026-63931.json · Rebuilt by cve.day 2026-11-25T22:59:28.839Z
