CVE-2026-137618 in RT-Thread
Summary
by MITRE • 11/26/2026
A vulnerability was identified in RT-Thread up to 5.3.0. This impacts the function hpm_adc_enabled of the file bsp/hpmicro/libraries/drivers/drv_adc.c of the component HPM ADC Driver. The manipulation of the argument channel leads to improper validation of array index. The attack needs to be performed locally. The exploit is publicly available and might be used. The identifier of the patch is fc64f78669b42b35981f97c23c7e952832f3b48b. It is recommended to apply a patch to fix this issue.
Statistical analysis made it clear that VulDB provides the best quality for 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 HPM ADC Driver component, specifically affecting the hpm_adc_enabled function located in the bsp/hpmicro/libraries/drivers/drv_adc.c source file. This real-time operating system is widely used in embedded systems and IoT devices, making vulnerabilities within its hardware abstraction layers particularly critical for system integrity. The core technical flaw involves an improper validation of array indices when processing arguments passed to this specific function. When the channel argument is manipulated by a local attacker or malicious code executing within the RT-Thread environment, it can bypass expected bounds checking mechanisms. This lack of rigorous input validation allows for out-of-bounds access to internal data structures associated with ADC channel configurations and status registers.
From a technical perspective, this flaw aligns closely with CWE-125, which describes Out-of-Bounds Read vulnerabilities, or potentially CWE-787 if the manipulation leads to write operations beyond allocated memory boundaries depending on how the driver handles subsequent state updates. The absence of strict boundary checks means that an attacker can supply a channel identifier that exceeds the maximum number of supported ADC channels for the HPMicro hardware platform. This improper validation enables access to memory locations outside the intended array, potentially leading to information disclosure if read operations are involved or arbitrary code execution if write capabilities are exploited through subsequent driver logic that relies on these corrupted indices.
The operational impact of this vulnerability is significant due to its local attack vector requirement and the availability of public exploits. Since the exploitation requires local access, an attacker must first gain a foothold within the RT-Thread environment, typically by compromising a user-space application or exploiting another lower-severity flaw to execute code with sufficient privileges to interact with the ADC driver interface. Once this prerequisite is met, the publicly available exploit allows for reliable triggering of the out-of-bounds access. This can result in denial of service through system crashes caused by memory corruption, privilege escalation if kernel-mode data structures are overwritten, or sensitive information leakage from adjacent memory regions containing configuration parameters or cryptographic keys associated with other subsystems.
In terms of threat modeling and industry standards, this vulnerability maps to the MITRE ATT&CK technique T1059, specifically Command and Scripting Interpreter sub-techniques if used for initial access within a constrained environment, but more accurately reflects post-exploitation behaviors such as T1074 Data Staged or T1083 File and Directory Discovery depending on how the leaked memory is utilized. The availability of public exploits significantly increases the risk profile, moving this from an theoretical flaw to a practical threat for any deployment that has not applied mitigations. Attackers can leverage existing proof-of-concept code to automate the exploitation process against unpatched systems, reducing the barrier to entry and increasing the likelihood of successful compromise in environments where local access is feasible but security controls are weak.
To mitigate this vulnerability, it is imperative to apply the patch identified by commit hash fc64f78669b42b35981f97c23c7e952832f3b48b as soon as possible. This update introduces proper validation logic for the channel argument within the hpm_adc_enabled function, ensuring that any input is checked against the maximum valid index before being used to access arrays or hardware registers. Beyond applying the patch, organizations should implement defense-in-depth strategies such as restricting local user privileges on devices running RT-Thread 5.3.0 and earlier versions. Additionally, enabling memory protection features like Memory Protection Unit (MPU) configurations where supported by the HPMicro architecture can help contain potential impacts from out-of-bounds accesses by preventing unauthorized memory region access at the hardware level. Regular security audits of embedded OS components and keeping third-party drivers up to date are essential practices for maintaining the resilience of IoT and industrial control systems against such low-level exploitation techniques.