CVE-2026-137620: RT-Thread DM365 SPI Driver spi-davinci.c davinci_spi_get_prescale divide by zero
A security flaw has been discovered in RT-Thread up to 5.3.0. Affected is the function davincispigetprescale of the file bsp/dm365/drivers/spi-davinci.c of the component DM365 SPI Driver. The manipulation of the argument maxhz results in divide by zero. The attack requires a local approach. The exploit has been released to the public and may be used for attacks. The patch is identified as e12183f7b87eddf182b95bf8b400acd626880306. Applying a patch is advised to resolve this issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch e12183f7b87eddf182b95bf8b400acd626880306
Event History
Frequently Asked Questions
Who can exploit this issue?
Exploitation requires local access and high privileges. The vulnerable component is the DM365 SPI driver in RT-Thread installations up to version 5.3.0.
What impact can successful exploitation have?
Manipulating the max_hz argument can trigger a divide-by-zero condition in davinci_spi_get_prescale, resulting in denial of service. No confidentiality or integrity impact is indicated.
Is public exploit code available?
Yes. A proof of concept has been publicly released, which may lower the effort needed to reproduce the denial-of-service condition.
What should be done to remediate the issue?
Apply patch e12183f7b87eddf182b95bf8b400acd626880306. The provided data does not identify an alternative mitigation if patching cannot be performed immediately.