CVE-2026-137680: RT-Thread ADC Driver drv_adc.c ab32_get_adc_value array index
A vulnerability has been found in RT-Thread up to 5.3.0. This issue affects the function ab32getadcvalue of the file bsp/bluetrum/libraries/haldrivers/drvadc.c of the component ADC Driver. The manipulation of the argument channel leads to improper validation of array index. The attack can only be performed from a local environment. The identifier of the patch is 7f1f625f36232fd165a8a8313b1612846215aece. To fix this issue, it is recommended to deploy a patch.
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 7f1f625f36232fd165a8a8313b1612846215aece
Event History
Frequently Asked Questions
Who is exposed to this issue?
RT-Thread deployments up to version 5.3.0 that include the Bluetrum ADC driver component containing bsp/bluetrum/libraries/hal_drivers/drv_adc.c may be affected.
What does an attacker need to exploit it?
An attacker needs local access and the ability to manipulate the channel argument passed to ab32_get_adc_value. The vulnerability is caused by insufficient validation of that argument before it is used as an array index.
Is remote exploitation possible?
No. The available information states that the attack can only be performed from a local environment.
What should be done if this component is in use?
Deploy the patch identified as 7f1f625f36232fd165a8a8313b1612846215aece. Until patching is complete, restrict local access and prevent untrusted code from controlling the ADC channel argument.