CVE-2024-46759
JSON

7.8high

hwmon: (adc128d818) Fix underflows seen when writing limit attributes

Severity
7.8high CVSS:3.1 by NVD
Exploit likelihood
0.34% (higher than 20% of CVEs)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: hwmon: (adc128d818) Fix underflows seen when writing limit attributes DIV_ROUND_CLOSEST() after kstrtol() results in an underflow if a large negative number such as -9223372036854775808 is provided by the user. Fix it by reordering clamp_val() and DIV_ROUND_CLOSEST() operations.

Affected

Product or packageVersionsReported by
Linux Linuxfrom b4c9c1a7987ef07d8345bf9d19f36d97423b6b25 before 05419d0056dcf7088687e561bb583cc06deba777, from b4c9c1a7987ef07d8345bf9d19f36d97423b6b25 before 7645d783df23878342d5d8d22030c3861d2d5426, from b4c9c1a7987ef07d8345bf9d19f36d97423b6b25 before 2a3add62f183459a057336381ef3a896da01ce38, from b4c9c1a7987ef07d8345bf9d19f36d97423b6b25 before 019ef2d396363ecddc46e826153a842f8603799b, from b4c9c1a7987ef07d8345bf9d19f36d97423b6b25 before f7f5101af5b47a331cdbfa42ba64c507b47dd1fe, from b4c9c1a7987ef07d8345bf9d19f36d97423b6b25 before 6891b11a0c6227ca7ed15786928a07b1c0e4d4af, from b4c9c1a7987ef07d8345bf9d19f36d97423b6b25 before b0bdb43852bf7f55ba02f0cbf00b4ea7ca897bff, from b4c9c1a7987ef07d8345bf9d19f36d97423b6b25 before 8cad724c8537fe3e0da8004646abc00290adae40 and 1 more
Not affected: before 3.15, from 4.19.322 up to 4.19.*, from 5.4.284 up to 5.4.*, from 5.10.226 up to 5.10.*, from 5.15.167 up to 5.15.*, from 6.1.110 up to 6.1.*
CVE List
linux linux_kernelbefore 4.19.322, from 4.20 before 5.4.284, from 5.5 before 5.10.226, from 5.11 before 5.15.167, from 5.16 before 6.1.110, from 6.2 before 6.6.51, from 6.7 before 6.10.10NVD

Classification

CWE-191

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: hwmon: (adc128d818) Fix underflows seen when writing limit attributes DIV_ROUND_CLOSEST() after kstrtol() results in an underflow if a large negative number such as -9223372036854775808 is provided by the user. Fix it by reordering clamp_val() and DIV_ROUND_CLOSEST() operations.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: hwmon: (adc128d818) Se corrigen los desbordamientos de línea observados al escribir los atributos de límite DIV_ROUND_CLOSEST() después de que kstrtol() genere un desbordamiento de línea si el usuario proporciona un número negativo grande, como -9223372036854775808. Se soluciona reordenando las operaciones clamp_val() y DIV_ROUND_CLOSEST().

References

https://git.kernel.org/stable/c/05419d0056dcf7088687e561bb583cc06deba777patch
https://git.kernel.org/stable/c/7645d783df23878342d5d8d22030c3861d2d5426patch
https://git.kernel.org/stable/c/2a3add62f183459a057336381ef3a896da01ce38patch
https://git.kernel.org/stable/c/019ef2d396363ecddc46e826153a842f8603799bpatch
https://git.kernel.org/stable/c/f7f5101af5b47a331cdbfa42ba64c507b47dd1fepatch
https://git.kernel.org/stable/c/6891b11a0c6227ca7ed15786928a07b1c0e4d4afpatch
https://git.kernel.org/stable/c/b0bdb43852bf7f55ba02f0cbf00b4ea7ca897bffpatch
https://git.kernel.org/stable/c/8cad724c8537fe3e0da8004646abc00290adae40patch
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html
https://cert-portal.siemens.com/productcert/html/ssa-265688.html
https://cert-portal.siemens.com/productcert/html/ssa-355557.html

Sources

SourceRecordLicence
CVE ListCVE-2024-46759 changed 2026-10-15CVE Terms of Use
NVDCVE-2024-46759 changed 2026-10-15Public domain