CVE-2024-47664 spi: hisi-kunpeng: Add verification for the max_frequency provided by the firmware
A division by zero error in the Hisi Kunpeng SPI driver can cause a system crash if the firmware provides an invalid max frequency.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-47664?
CVE-2024-47664 is a medium-severity denial of service vulnerability in Linux kernel, published on 9 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-369
Which versions are affected by CVE-2024-47664?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-47664?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-47664 being exploited?
There is no known exploitation of CVE-2024-47664 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-50860, BELL-CVE-2024-47664, DEBIAN-CVE-2024-47664, GHSA-wccr-cp5j-5ggc, ROOT-OS-DEBIAN-12-CVE-2024-47664, ROOT-OS-UBUNTU-2204-CVE-2024-47664 and 1 more.