# CVE-2024-47664: spi: hisi-kunpeng: Add verification for the max_frequency provided by the firmware

- 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.30%, higher than 15% of CVEs (2026-11-30)
- Published: 2024-10-09T14:13:57.337Z
- Modified: 2026-10-30T13:17:37.523Z
- 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:

spi: hisi-kunpeng: Add verification for the max_frequency provided by the firmware

If the value of max_speed_hz is 0, it may cause a division by zero
error in hisi_calc_effective_speed().
The value of max_speed_hz is provided by firmware.
Firmware is generally considered as a trusted domain. However, as
division by zero errors can cause system failure, for defense measure,
the value of max_speed is validated here. So 0 is regarded as invalid
and an error code is returned.

(As written by CVE List.)

## Affected

- Linux Linux: from c770d8631e1810d8f1ce21b18ad5dd67eeb39e5c before dc30f8d9b25db3b79d36971a90c1ee95010ff45a; from c770d8631e1810d8f1ce21b18ad5dd67eeb39e5c before 16ccaf581da4fcf1e4d66086cf37263f9a656d43; from c770d8631e1810d8f1ce21b18ad5dd67eeb39e5c before ee73a15d4a8ce8fb02d7866f7cf78fcdd16f0fcc; from c770d8631e1810d8f1ce21b18ad5dd67eeb39e5c before 5127c42c77de18651aa9e8e0a3ced190103b449c; 5.13 (not affected: before 5.13; from 6.1.191 up to 6.1.*; from 6.6.51 up to 6.6.*; from 6.10.10 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: before 6.6.51; from 6.7 before 6.10.10; 6.11

## References

- <https://git.kernel.org/stable/c/dc30f8d9b25db3b79d36971a90c1ee95010ff45a>
- <https://git.kernel.org/stable/c/16ccaf581da4fcf1e4d66086cf37263f9a656d43> (patch)
- <https://git.kernel.org/stable/c/ee73a15d4a8ce8fb02d7866f7cf78fcdd16f0fcc> (patch)
- <https://git.kernel.org/stable/c/5127c42c77de18651aa9e8e0a3ced190103b449c> (patch)

## Sources

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

---

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