RT-Thread Patch Fixes Divide-by-Zero Flaw in DM365 SPI Driver

A medium-severity divide-by-zero vulnerability has been identified in the DM365 SPI driver of RT-Thread, an open-source real-time operating system. The flaw, designated CVE-2026-137620, affects versions up to 5.3.0 and allows local attackers with high privileges to disrupt system availability. A public proof-of-concept exploit exists, and a patch has been released to address the issue.
Key points
- The vulnerability affects the davinci_spi_get_prescale function in the bsp/dm365/drivers/spi-davinci.c file of RT-Thread versions 5.0 through 5.3.0.
- The flaw is a divide-by-zero error (CWE-369) triggered by manipulating the max_hz argument, which can lead to a denial of service.
- The CVSS 4.0 score is 6.7 (Medium), while the CVSS 3.1 score is 4.4 (Medium), both reflecting local attack vectors and high privilege requirements.
- A public proof-of-concept exploit has been released, and the fix is available via commit e12183f7b87eddf182b95bf8b400acd626880306.
- The vulnerability requires local access and high privileges, with no impact on confidentiality or integrity, but high impact on availability.
Background
RT-Thread is an open-source real-time operating system for embedded systems, developed in China and widely used in IoT devices. The DM365 is a Texas Instruments DaVinci-series processor, and the vulnerability affects the SPI driver code in RT-Thread's board support package for this chip. This incident follows recent patches for other medium-severity flaws in RT-Thread, including an array index flaw in the HPM ADC driver (CVE-2026-137618) disclosed on November 26, 2026.
Why it matters
The vulnerability highlights ongoing security risks in embedded systems and IoT devices that rely on RT-Thread. Although the attack requires local access and high privileges, the availability of a public exploit increases the risk of denial-of-service attacks on affected systems. Timely patching is critical to mitigate this risk, especially for organizations using RT-Thread in critical infrastructure or industrial applications.
What to watch
Users of RT-Thread versions 5.0 through 5.3.0 should apply the patch identified by commit e12183f7b87eddf182b95bf8b400acd626880306 to mitigate CVE-2026-137620. Security teams should monitor for any signs of exploitation, particularly in environments where local access is possible. Further updates may be released as additional vulnerabilities are identified in RT-Thread's codebase.
Want the full story? Read the original reporting
Read on CVEs | Zero Wire | Cloudflare Radar