CVE-2026-137620 in RT-Threadinfo

Summary

by MITRE • 11/26/2026

A security flaw has been discovered in RT-Thread up to 5.3.0. Affected is the function davinci_spi_get_prescale of the file bsp/dm365/drivers/spi-davinci.c of the component DM365 SPI Driver. The manipulation of the argument max_hz 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.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/28/2026

The vulnerability identified in RT-Thread versions up to 5.3.0 represents a critical arithmetic error within the DM365 SPI Driver component, specifically located in the davinci_spi_get_prescale function found in bsp/dm365/drivers/spi-davinci.c. This flaw arises from improper validation of input arguments prior to performing mathematical operations. Specifically, the function fails to check whether the max_hz argument is zero before attempting to use it as a divisor. In embedded systems and real-time operating environments like RT-Thread, such arithmetic errors can lead to immediate system instability or crashes because hardware drivers often operate at low levels where exceptions are not gracefully handled by higher-level software layers. The presence of this divide-by-zero condition indicates a fundamental lack of boundary checking in the driver initialization or configuration logic, which is a common oversight when developers assume that input parameters will always adhere to expected non-zero constraints without explicit verification.

From a technical perspective, this vulnerability aligns with CWE-369, known as Divide By Zero, and falls under the broader category of CWE-20, Improper Input Validation. The operational impact of exploiting this flaw is primarily denial-of-service against the affected system. Since the exploit requires local access, an attacker must already have some level of authentication or physical proximity to trigger the condition. Once triggered, the divide-by-zero error typically results in a kernel panic or a hard fault on ARM-based processors like those used in the DM365 platform. This leads to an immediate reboot of the device or a complete halt of system operations, effectively rendering the embedded service unavailable. In industrial control systems or IoT devices running RT-Thread, such instability can have severe consequences depending on the criticality of the application being managed by that specific node.

The fact that a public exploit has been released significantly elevates the risk profile of this vulnerability. While local access is required to trigger the bug, many embedded environments allow for untrusted code execution through various vectors including serial consoles, debug interfaces, or compromised applications running with elevated privileges. The availability of an exploit means that automated scanning tools and malicious actors can easily identify vulnerable instances in networks where these devices are deployed. This transforms a theoretical coding error into a practical threat vector for disrupting service availability. Organizations relying on RT-Thread for their embedded infrastructure must treat this as a high-priority issue due to the ease with which stability can be compromised once local access is achieved.

To mitigate this risk, it is imperative that system administrators and developers apply the patch identified by commit hash e12183f7b87eddf182b95bf8b400acd626880306 as soon as possible. This patch introduces necessary validation checks to ensure that the max_hz parameter is non-zero before any division operations are performed. In addition to applying the software fix, defensive measures should include restricting physical and logical access to development interfaces such as JTAG or UART consoles where local code execution might be attempted. Furthermore, implementing runtime application self-protection mechanisms or watchdog timers can help mitigate the impact of a crash by facilitating automatic recovery processes. Regular auditing of driver code for similar arithmetic vulnerabilities is also recommended to prevent recurrence in other parts of the embedded software stack.

Responsible

VulDB

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

Exploit

Download

EPSS

0.00191

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!