CVE-2024-56567

ad7780: fix division by zero in ad7780_write_raw()

State
Published
Severity
5.5 Medium
Published
Dec 27, 2024
Updated
May 11, 2026
Reserved
Dec 27, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 9085daa4abcc3a1c19ae4eb00e609842ef28275a to before 18fb33df1de83a014d7f784089f9b124facc157fAffected
  • 9085daa4abcc3a1c19ae4eb00e609842ef28275a to before afc1e3c00b3f5f0b4f1bc3e974fb9803cb938a90Affected
  • 9085daa4abcc3a1c19ae4eb00e609842ef28275a to before 68e79b848196a0b0ec006009cc69da1f835d1ae8Affected
  • 9085daa4abcc3a1c19ae4eb00e609842ef28275a to before 022e13518ba6cc1b4fdd291f49e4f57b2d5718e0Affected
  • 9085daa4abcc3a1c19ae4eb00e609842ef28275a to before 7e3a8ea3d1ada7f707de5d9d504774b4191eab66Affected
  • 9085daa4abcc3a1c19ae4eb00e609842ef28275a to before f25a9f1df1f6738acf1fa05595fb6060a2c08ff1Affected
  • 9085daa4abcc3a1c19ae4eb00e609842ef28275a to before c174b53e95adf2eece2afc56cd9798374919f99aAffected
LinuxLinux
  • 5.2Affected
  • before 5.2Not affected
  • 5.4.287 through 5.4.*Not affected
  • 5.10.231 through 5.10.*Not affected
  • 5.15.174 through 5.15.*Not affected
  • 6.1.120 through 6.1.*Not affected
  • 6.6.64 through 6.6.*Not affected
  • 6.12.4 through 6.12.*Not affected
  • 6.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.