Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local low-privilege access on device
-
ExploitCall ADC driver with crafted channel index
-
ExecutionTrigger out-of-bounds read of raw_data buffer
-
ImpactLeak adjacent memory contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Array index validation
|
| Exploitation Conditions | Requires local access to a device whose firmware is built from RT-Thread's bsp/bouffalo_lab BSP with the Bouffalo ADC driver compiled in, plus the ability to invoke bl_adc_get_value/bl_adc_enabled with an attacker-controlled channel argument (CVSS PR:L indicates some privilege is needed). The flaw triggers when channel is negative or at/above the valid channel count, causing raw_data[10 + channel] to index outside the 26-element buffer. Limiting factors: exploitation is local only (no network vector), needs low privileges rather than none, and affects only builds targeting Bouffalo Lab chips with the ADC driver enabled - devices not using this BSP or not exposing the ADC API to lower-privileged callers are not reachable. |
| Impact | This is a low-to-moderate priority issue, not an urgent one. The supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N/VC:L with VI:N/VA:N) scores 4.8 (medium) and describes a local, low-privilege attack with only low confidentiality impact and no integrity or availability impact - consistent with CWE-129 improper array index validation leading to an out-of-bounds read. The source diff confirms the mechanism: raw_data[10 + channel] is indexed with an unvalidated rt_int8_t channel, so a negative or oversized channel reads outside the raw_data[26] buffer, exposing adjacent memory (information disclosure, matching the 'Information Disclosure' tag). Signals are internally consistent rather than conflicting: VulDB's own priority label is 'this_month' (not act_now/emergency), there is no CISA KEV listing, and no EPSS score is provided in the input. No public exploit reference is present - only the VulDB entry, the vendor GitHub issue, and the fix PR/commit. The practical risk is bounded by the need for local access and the ability to invoke the ADC driver with an attacker-controlled channel on a device built from the Bouffalo Lab BSP, so this is a real-but-contained defect rather than a high-urgency remote threat. Missing data to note: EPSS probability is absent and KEV status is not listed, so exploitation-likelihood modeling relies only on the VulDB priority label and CVSS. |
| Exploit ScenarioDerived | An attacker with local, low-privilege access to firmware built on RT-Thread's Bouffalo Lab BSP invokes the ADC driver's read path with a crafted channel argument. Because the channel is used directly as an array index into raw_data without bounds checking, the read lands outside the buffer and returns adjacent memory contents to the caller, leaking data. No public exploit identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
An out-of-bounds read in the RT-Thread Bouffalo Lab ADC driver (bl_adc_get_value, reached through bl_adc_enabled in bsp/bouffalo_lab/libraries/rt_drivers/drv_adc.c) lets a local caller supply a negative or oversized channel value that is used directly as an index into a fixed 26-entry static sample buffer, returning memory beyond the array to the caller. Only firmware built from the Bouffalo Lab BSP with the ADC driver compiled in and whose ADC API is reachable by lower-privileged code is affected, through RT-Thread 5.3.0. Impact is limited to low-confidentiality disclosure (CVSS 4.0 scores it 4.8; our assessment is CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N), and no public exploit code or active exploitation was identified at time of analysis; VulDB is credited as the reporter and the vendor patch is available as upstream commit b3a0eb5e.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed. Apply commit b3a0eb5e12c6dca8145fc49d76c4785478c9e55b from PR https://github.com/RT-Thread/rt-thread/pull/12003, or cherry-pick its two changes into your BSP: introduce bl_adc_channel_is_valid() (rejecting channel < 0, channel >= 16, and channels absent from the chan[] table when BSP_USING_ADC_CH0..CH10 are set) and call it at the top of bl_adc_enabled and bl_adc_get_value, returning -RT_EINVAL, with the read index built as BL_ADC_DMA_CHANNEL_OFFSET + (rt_size_t)channel after validation. Note that the fix rejects configuration-table channels not enabled in the build, so verify your application only requests channels you have actually enabled. Until the patch is deployed, the actionable stopgap is to validate the channel argument in every caller before invoking rt_adc_enable/rt_adc_read (rejecting negative and out-of-range values), or to keep the ADC API out of reach of unprivileged tasks by gating it behind a trusted server thread or IPC channel; both are caller-side measures with the trade-off that any missed or future caller reopens the bug, whereas the upstream check is the complete fix. Builds that do not need the Bouffalo ADC peripheral can simply leave the ADC driver and BSP_USING_ADC_CHx options disabled, which removes the reachable code entirely. Advisory context is available at https://vuldb.com/vuln/444434 and https://vuldb.com/cve/CVE-2026-137621.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
RT-Thread is an open-source real-time operating system for microcontrollers; its Bouffalo Lab board support package implements an ADC driver layer over the chip's DMA-captured sample buffer. The driver declares a file-static array of DMA samples (previously raw_data[16 + 10]) and hands results back to the RT-Thread ADC device framework through bl_adc_get_value, which computed the sample address as raw_data[10 + channel] using an rt_int8_t channel parameter. Because the class is CWE-129 (Improper Validation of Array Index), no range or range-membership check existed: a negative channel, or one at or above the channel count, produced an index outside the 26-element array, and the resulting word was copied back to the caller as an ADC reading. The upstream fix (PR #12003, commit b3a0eb5e12c6dca8145fc49d76c4785478c9e55b) replaces the magic numbers with BL_ADC_DMA_CHANNEL_COUNT/BL_ADC_DMA_CHANNEL_OFFSET, adds a bl_adc_channel_is_valid() helper that rejects negative channels and indices >= 16 and, when BSP_USING_ADC_CH0..CH10 are configured, additionally requires the channel to appear in the static chan[] configuration table, and returns -RT_EINVAL from both bl_adc_enabled and bl_adc_get_value on invalid input. The read index is computed as BL_ADC_DMA_CHANNEL_OFFSET + channel only after validation. Reachability depends on the build: the driver must be compiled into a bsp/bouffalo_lab image with the ADC peripheral enabled, and some code path must pass attacker-influenced channel values into the ADC API; the sources do not describe any trigger beyond the call itself.
Know when Rt Thread gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Local API call with a crafted channel index requires some privilege (PR:L) and is straightforward (AC:L); impact is an out-of-bounds read disclosing memory (C:L), with no integrity or availability effect.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Critical memory corruption vulnerability in RT-Thread 5.1.0's sys_select syscall handler that allows authenticated local
Critical null pointer dereference vulnerability in RT-Thread 5.1.0's lwp_syscall.c csys_sendto function, allowing authen
Critical memory corruption vulnerability in RT-Thread 5.1.0's sys_recvfrom syscall handler that allows authenticated loc
A security vulnerability in A vulnerability classified as critical (CVSS 8.0). Risk factors: public PoC available.
Critical array index validation vulnerability in RT-Thread 5.1.0's signal mask syscall handler that allows authenticated
A vulnerability, which was classified as critical, was found in RT-Thread up to 5.1.0. This affects the function sys_dev
Stack-based buffer overflow in RT-Thread RTOS (versions up to and including 5.0.2) affects the CAN_Receive function with
Stack-based buffer overflow in RT-Thread RTOS (versions up to and including 5.0.2) affects the recvmsg function within t
A stack buffer overflow occurs in net/at/src/at_server.c in RT-Thread through 5.0.2. Rated critical severity (CVSS 9.8),
Memory corruption in RT-Thread's Linux-compatible process (lwp) syscall layer allows a local low-privileged user to cras
Divide-by-zero in RT-Thread's DM365 DaVinci SPI driver (bsp/dm365/drivers/spi-davinci.c) crashes or faults the system wh
A vulnerability classified as problematic was found in RT-Thread up to 5.1.0. Rated medium severity (CVSS 4.8), this vul
EUVD-2026-136891
GHSA-2qcw-qqhw-r653
NVD
CVE.org
EPSS
VulDB
Exploit-DB