Skip to main content

RT-Thread EUVDEUVD-2026-136890

| CVE-2026-137620 MEDIUM
Divide By Zero (CWE-369)
2026-11-26 VulDB
5.2
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Gain local privileged access to RT-Thread device
  2. Exploit
    Invoke SPI setup with max_hz = 0
  3. Execution
    Trigger divide-by-zero in davinci_spi_get_prescale
  4. Impact
    Driver/device denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Division safety checks
Exploitation Conditions

Exploitation requires an attacker with local access and high privileges (PR:H) on an RT-Thread system (versions up to 5.3.0) that is actually built with the DM365 DaVinci BSP and its SPI driver - a hardware-specific deployment, not the generic RT-Thread core. The concrete trigger is supplying max_hz = 0 (a zero SPI clock rate) to davinci_spi_setup_transfer, which flows into davinci_spi_get_prescale and is used as a divisor. Limiting factors: the attacker must already be able to control the SPI transfer configuration parameter (hence PR:H), access is local only (AV:L), no user interaction is involved, and only availability is affected - no code execution, data disclosure, or integrity loss. Systems not using the DM365 BSP are not affected.

Impact

This is a low-to-moderate priority issue despite being publicly disclosed. The vendor CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H) confirms a local-only, high-privilege attack producing availability impact only - no confidentiality or integrity loss. The E:P (Proof-of-Concept) exploit maturity aligns with the input noting a PoC reference that is not verified as working exploit code. There is no CISA KEV listing and no EPSS score was provided, so there is no signal of active or widespread exploitation; the VulDB/vuln.today decision label is 'this_month', not act_now or emergency, consistent with a bounded DoS bug rather than an urgent threat. The requirement for high privileges (PR:H) plus local access means an attacker must already control the SPI configuration path (the max_hz parameter), so this is largely a robustness/hardening fix against a divide-by-zero crash rather than a remotely weaponizable flaw. The signals are internally consistent: moderate CVSS, PoC-only maturity, local vector, no active-exploitation evidence.

Exploit ScenarioDerived

An actor with local, privileged access to an RT-Thread device built on the DM365 BSP configures an SPI transfer with max_hz set to 0, reaching davinci_spi_get_prescale where the zero value is used as a divisor. The resulting divide-by-zero crashes or halts the driver, denying service. A public PoC reference exists (the RT-Thread issue report) but it is not verified as working exploit code; the CVSS AC:L indicates the trigger condition itself is simple once the attacker can supply the parameter.

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

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

Alert me

AnalysisAIv1 – Nov 26, 2026

Divide-by-zero in RT-Thread's DM365 DaVinci SPI driver (bsp/dm365/drivers/spi-davinci.c) crashes or faults the system when a zero SPI clock rate is supplied to davinci_spi_setup_transfer and flows into davinci_spi_get_prescale, which uses the value as a divisor. Only builds that include the hardware-specific DM365 BSP are exposed; the generic RT-Thread kernel up to and including 5.3.0 is not. Exploitation needs local access with high privileges (CVSS 3.1 AV:L/PR:H) and only availability is impacted (no confidentiality or integrity loss); a public PoC reference has been filed with the upstream issue but it is not verified as working exploit code, and no confirmed active exploitation has been reported. Upstream fix commit e12183f7b87eddf182b95bf8b400acd626880306 (PR #11957) addresses the issue.

RemediationAI

Apply the upstream fix: commit e12183f7b87eddf182b95bf8b400acd626880306, merged through pull request https://github.com/RT-Thread/rt-thread/pull/11957, which makes davinci_spi_setup_transfer() reject hz == 0 with -RT_EINVAL before the prescaler calculation; rebuild the DM365 BSP firmware from a tree that includes this change (upstream fix available via PR/commit; a released patched version number is not independently confirmed in the available data). If rebuilding is not immediately possible, backport that guard into bsp/dm365/drivers/spi-davinci.c or validate the max_hz argument at the call site so a zero clock rate is never passed down - the trade-off is a source-level patch you must maintain locally and a behaviour change where zero-rate requests now fail instead of crashing. As a secondary control, keep local high-privilege access to the device restricted, since exploitation requires a privileged local actor able to set the SPI transfer parameters; systems that do not use the DM365 BSP require no action. Reference advisory: https://vuldb.com/vuln/444433.

Affected VersionsENISA

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

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

CWE-369 (divide by zero) in the DaVinci SPI controller driver shipped under the DM365 board support package of the RT-Thread real-time operating system. davinci_spi_setup_transfer() accepts a requested clock rate (hz, originating from the max_hz transfer parameter) and passes it to davinci_spi_get_prescale(), whose prescaler computation divides by that requested rate. Supplying 0 produces a division by zero inside the driver. The upstream fix adds an explicit guard in davinci_spi_setup_transfer() that returns -RT_EINVAL when hz == 0, so the prescaler never divides by a zero rate. Because the flawed code path lives in a board-specific BSP driver rather than in the RT-Thread core, exposure depends on the firmware being built for the DM365 DaVinci platform with this SPI driver enabled; CPE data lists RT-Thread generically (cpe:2.3:a:n/a:rt-thread), but the practical scope is that single BSP file. Per the assessed CVSS 3.1 vector (AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H), the outcome is an availability-only fault triggered by a local actor who already controls the SPI transfer configuration.

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 5.2 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P
vuln.today AI 4.4 MEDIUM

Local privileged control of the SPI config parameter gives AV:L and PR:H; the zero-value trigger is simple (AC:L); divide-by-zero crashes the driver, so A:H with no C/I impact.

3.1 AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H/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
High
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
Nov 26, 2026 - 21:22 NVD
6.7 (MEDIUM) 5.2 (MEDIUM)
CVE Published
Nov 26, 2026 - 21:00 cve.org
MEDIUM 5.2

DescriptionCVE.org

A security flaw has been discovered in RT-Thread up to 5.3.0. Affected is the function davinci_spi_get_prescale of the file bsp/dm365/drivers/spi-davinci.c of the component DM365 SPI Driver. The manipulation of the argument max_hz results in divide by zero. The attack requires a local approach. The exploit has been released to the public and may be used for attacks. The patch is identified as e12183f7b87eddf182b95bf8b400acd626880306. Applying a patch is advised to resolve this issue.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Low
DM365 DaVinci BSP SPI driver is niche embedded hardware, not broadly deployed
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

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 Yes
EPSS 0.2%
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
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0
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-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

CVE-2024-25395 HIGH
8.8 Mar 27

A buffer overflow occurs in utilities/rt-link/src/rtlink.c in RT-Thread through 5.0.2. Rated high severity (CVSS 8.8), t

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