Skip to main content

RT-Thread CVE-2026-137621

| EUVDEUVD-2026-136891 MEDIUM
Improper Validation of Array Index (CWE-129)
2026-11-26 VulDB GHSA-2qcw-qqhw-r653
4.8
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local low-privilege access on device
  2. Exploit
    Call ADC driver with crafted channel index
  3. Execution
    Trigger out-of-bounds read of raw_data buffer
  4. Impact
    Leak 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

RT-Thread 5.2
RT-Thread 5.0
RT-Thread 5.1
RT-Thread 5.3.0

Affected Packages

euvd rt_thread no fix

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

Vendor (VulDB) PRIMARY 4.8 MEDIUM
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
vuln.today AI 3.3 LOW

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.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Low
Bouffalo Lab board-support driver; niche embedded RTOS hardware footprint
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2025-5865 HIGH POC
8.0 Jun 09

Critical memory corruption vulnerability in RT-Thread 5.1.0's sys_select syscall handler that allows authenticated local

CVE-2025-5867 HIGH POC
8.0 Jun 09

Critical null pointer dereference vulnerability in RT-Thread 5.1.0's lwp_syscall.c csys_sendto function, allowing authen

CVE-2025-5869 HIGH POC
8.0 Jun 09

Critical memory corruption vulnerability in RT-Thread 5.1.0's sys_recvfrom syscall handler that allows authenticated loc

CVE-2025-5866 HIGH POC
8.0 Jun 09

A security vulnerability in A vulnerability classified as critical (CVSS 8.0). Risk factors: public PoC available.

CVE-2025-5868 HIGH POC
8.0 Jun 09

Critical array index validation vulnerability in RT-Thread 5.1.0's signal mask syscall handler that allows authenticated

CVE-2025-6693 HIGH POC
7.8 Jun 26

A vulnerability, which was classified as critical, was found in RT-Thread up to 5.1.0. This affects the function sys_dev

CVE-2026-14606 HIGH POC
7.1 Jul 03

Stack-based buffer overflow in RT-Thread RTOS (versions up to and including 5.0.2) affects the CAN_Receive function with

CVE-2026-14605 HIGH POC
7.1 Jul 03

Stack-based buffer overflow in RT-Thread RTOS (versions up to and including 5.0.2) affects the recvmsg function within t

CVE-2024-25393 CRITICAL
9.8 Mar 27

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),

CVE-2026-14607 MEDIUM POC
5.4 Jul 03

Memory corruption in RT-Thread's Linux-compatible process (lwp) syscall layer allows a local low-privileged user to cras

CVE-2026-137620 MEDIUM POC
5.2 Nov 26

Divide-by-zero in RT-Thread's DM365 DaVinci SPI driver (bsp/dm365/drivers/spi-davinci.c) crashes or faults the system wh

CVE-2025-1115 MEDIUM POC
4.8 Feb 08

A vulnerability classified as problematic was found in RT-Thread up to 5.1.0. Rated medium severity (CVSS 4.8), this vul

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy