# CVE-2024-56567: ad7780: fix division by zero in ad7780_write_raw()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-12-27T14:23:10.861Z
- Modified: 2026-06-17T08:12:25.840Z
- Weaknesses: CWE-369
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ad7780: fix division by zero in ad7780_write_raw()

In the ad7780_write_raw() , val2 can be zero, which might lead to a
division by zero error in DIV_ROUND_CLOSEST(). The ad7780_write_raw()
is based on iio_info's write_raw. While val is explicitly declared that
can be zero (in read mode), val2 is not specified to be non-zero.

(As written by CVE List.)

## Affected

- Linux Linux: from 9085daa4abcc3a1c19ae4eb00e609842ef28275a before 18fb33df1de83a014d7f784089f9b124facc157f; from 9085daa4abcc3a1c19ae4eb00e609842ef28275a before afc1e3c00b3f5f0b4f1bc3e974fb9803cb938a90; from 9085daa4abcc3a1c19ae4eb00e609842ef28275a before 68e79b848196a0b0ec006009cc69da1f835d1ae8; from 9085daa4abcc3a1c19ae4eb00e609842ef28275a before 022e13518ba6cc1b4fdd291f49e4f57b2d5718e0; from 9085daa4abcc3a1c19ae4eb00e609842ef28275a before 7e3a8ea3d1ada7f707de5d9d504774b4191eab66; from 9085daa4abcc3a1c19ae4eb00e609842ef28275a before f25a9f1df1f6738acf1fa05595fb6060a2c08ff1; from 9085daa4abcc3a1c19ae4eb00e609842ef28275a before c174b53e95adf2eece2afc56cd9798374919f99a; 5.2 (not affected: before 5.2; from 5.4.287 up to 5.4.*; from 5.10.231 up to 5.10.*; from 5.15.174 up to 5.15.*; from 6.1.120 up to 6.1.*; from 6.6.64 up to 6.6.*; from 6.12.4 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 5.2 before 5.4.287; from 5.5 before 5.10.231; from 5.11 before 5.15.174; from 5.16 before 6.1.120; from 6.2 before 6.6.64; from 6.7 before 6.12.4

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/18fb33df1de83a014d7f784089f9b124facc157f> (patch)
- <https://git.kernel.org/stable/c/afc1e3c00b3f5f0b4f1bc3e974fb9803cb938a90> (patch)
- <https://git.kernel.org/stable/c/68e79b848196a0b0ec006009cc69da1f835d1ae8> (patch)
- <https://git.kernel.org/stable/c/022e13518ba6cc1b4fdd291f49e4f57b2d5718e0> (patch)
- <https://git.kernel.org/stable/c/7e3a8ea3d1ada7f707de5d9d504774b4191eab66> (patch)
- <https://git.kernel.org/stable/c/f25a9f1df1f6738acf1fa05595fb6060a2c08ff1> (patch)
- <https://git.kernel.org/stable/c/c174b53e95adf2eece2afc56cd9798374919f99a> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Sources

- CVE List: [CVE-2024-56567](https://www.cve.org/CVERecord?id=CVE-2024-56567), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-56567](https://nvd.nist.gov/vuln/detail/CVE-2024-56567), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56567 · Whole record: https://cve.day/CVE-2024-56567.json · Rebuilt by cve.day 2026-11-25T22:58:50.454Z
