Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local privileged access to RT-Thread device
-
ExploitInvoke SPI setup with max_hz = 0
-
ExecutionTrigger divide-by-zero in davinci_spi_get_prescale
-
ImpactDriver/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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.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
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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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
A vulnerability classified as problematic was found in RT-Thread up to 5.1.0. Rated medium severity (CVSS 4.8), this vul
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
EUVD-2026-136890
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB