CVE-2026-137621 in RT-Threadinfo

Summary

by MITRE • 11/27/2026

A weakness has been identified in RT-Thread up to 5.3.0. Affected by this vulnerability is the function bl_adc_get_value of the file bsp/bouffalo_lab/libraries/rt_drivers/drv_adc.c of the component Bouffalo ADC Driver. This manipulation of the argument channel causes improper validation of array index. The attack requires local access. Patch name: b3a0eb5e12c6dca8145fc49d76c4785478c9e55b. It is suggested to install a patch to address this issue.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 11/28/2026

The vulnerability identified in RT-Thread versions up to 5.3.0 resides within the Bouffalo ADC Driver component, specifically affecting the bl_adc_get_value function located in the source file bsp/bouffalo_lab/libraries/rt_drivers/drv_adc.c. This issue stems from a fundamental flaw in input validation logic where the channel argument passed to the function is not adequately sanitized or bounds-checked before being utilized as an array index. In embedded systems and real-time operating environments, hardware abstraction layers often rely on direct memory access for performance reasons, making rigorous parameter verification critical to prevent out-of-bounds accesses that can lead to undefined behavior or system instability.

From a technical perspective, this flaw is classified under CWE-129, which describes Improper Validation of Array Index. When the channel value provided by a caller exceeds the valid range defined for the underlying hardware registers or internal data structures, the function proceeds to access memory locations outside the intended buffer boundaries. This improper validation allows an attacker who can influence the input parameters to trigger out-of-bounds reads or writes. In the context of RT-Thread, such an error could corrupt adjacent variables in memory, overwrite critical control flow data, or cause a segmentation fault leading to a denial of service condition for the affected thread or system task.

The operational impact of this vulnerability is constrained by its local access requirement. An attacker must have some form of execution capability within the RT-Thread environment to invoke the bl_adc_get_value function with maliciously crafted arguments. This typically implies that the threat actor needs prior compromise of a user-space application running on the device or direct physical access if debugging interfaces are exposed and unprotected. While remote exploitation is not directly possible through this specific vector, local privilege escalation remains a potential risk if the compromised thread operates with elevated privileges or if memory corruption allows for control over execution flow in adjacent security-sensitive modules.

This vulnerability aligns with ATT&CK techniques related to resource manipulation and potentially defense evasion depending on how the out-of-bounds access is leveraged post-exploitation. For instance, causing a denial of service via system crash falls under T1499 Endpoint Denial of Service, while any attempt to read sensitive memory contents could be categorized under T1078 Valid Accounts if local authentication was bypassed or T1562 Impair Defenses if it disrupts security monitoring agents. The lack of proper bounds checking represents a common weakness in embedded software development where performance optimization sometimes overshadows robust input validation practices, highlighting the need for stricter coding standards in hardware driver implementations.

To mitigate this vulnerability, developers and system integrators are strongly advised to apply the patch identified by commit hash b3a0eb5e12c6dca8145fc49d76c4785478c9e55b as soon as possible. This patch introduces necessary validation checks within the bl_adc_get_value function to ensure that the channel argument falls within acceptable limits before array indexing occurs. Beyond applying the immediate fix, long-term resilience can be improved by integrating static analysis tools into the build pipeline to detect similar out-of-bounds access patterns early in development. Additionally, implementing runtime bounds checking mechanisms or using safer programming constructs for hardware register interactions can significantly reduce the attack surface associated with driver-level vulnerabilities in RT-Thread based systems.

Responsible

VulDB

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

EPSS

0.00143

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!