CVE-2024-47663
JSON

5.5medium

staging: iio: frequency: ad9834: Validate frequency parameter value

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.31% (higher than 16% of CVEs)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: staging: iio: frequency: ad9834: Validate frequency parameter value In ad9834_write_frequency() clk_get_rate() can return 0. In such case ad9834_calc_freqreg() call will lead to division by zero. Checking 'if (fout > (clk_freq / 2))' doesn't protect in case of 'fout' is 0. ad9834_write_frequency() is called from ad9834_write(), where fout is taken from text buffer, which can contain any value. Modify parameters checking. Found by Linux Verification Center (linuxtesting.org) with SVACE.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 12b9d5bf76bfa20d3207ef24fca9c8254a586a58 before 5edc3a45ef428501000a7b23d0e1777a548907f6, from 12b9d5bf76bfa20d3207ef24fca9c8254a586a58 before 0e727707a239d5c519fc9abc2f0fd913516a7e47, from 12b9d5bf76bfa20d3207ef24fca9c8254a586a58 before 41cc91e3138fe52f8da92a81bebcd0e6cf488c53, from 12b9d5bf76bfa20d3207ef24fca9c8254a586a58 before d8b09a5edc4a634373158c1a405491de3c52e58a, from 12b9d5bf76bfa20d3207ef24fca9c8254a586a58 before 3ba9abfcaa9e16bb91ed7e0e2b42e94a157a953e, from 12b9d5bf76bfa20d3207ef24fca9c8254a586a58 before dc12e49f970b08d8b007b8981b97e2eb93c0e89d, from 12b9d5bf76bfa20d3207ef24fca9c8254a586a58 before 8961b245e8f92bccbaacfbbdf69eba60e3e7c227, from 12b9d5bf76bfa20d3207ef24fca9c8254a586a58 before b48aa991758999d4e8f9296c5bbe388f293ef465 and 1 more
Not affected: before 2.6.38, from 4.19.323 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_kernelfrom 2.6.38 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.10, 6.11NVD

Classification

CWE-369

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: staging: iio: frequency: ad9834: Validate frequency parameter value In ad9834_write_frequency() clk_get_rate() can return 0. In such case ad9834_calc_freqreg() call will lead to division by zero. Checking 'if (fout > (clk_freq / 2))' doesn't protect in case of 'fout' is 0. ad9834_write_frequency() is called from ad9834_write(), where fout is taken from text buffer, which can contain any value. Modify parameters checking. Found by Linux Verification Center (linuxtesting.org) with SVACE.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: staging: iio: frequency: ad9834: Validar el valor del parámetro de frecuencia En ad9834_write_frequency(), clk_get_rate() puede devolver 0. En tal caso, la llamada a ad9834_calc_freqreg() dará lugar a una división por cero. La comprobación de 'if (fout > (clk_freq / 2))' no protege en caso de que 'fout' sea 0. ad9834_write_frequency() se llama desde ad9834_write(), donde fout se toma del búfer de texto, que puede contener cualquier valor. Comprobación de modificación de parámetros. Encontrado por Linux Verification Center (linuxtesting.org) con SVACE.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-47663 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-47663 changed 2026-06-17Public domain