Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local access to CAN interface
-
DeliveryCraft malformed CAN frame
-
ExploitTrigger overflow in CAN_Receive
-
ExecutionOverwrite stack return address
-
ImpactExecute code or crash RTOS task
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires local access to the target device and the ability to feed data through the Synwit SWM341 CAN receive path - i.e., the firmware must be built with the SWM341 BSP and actively using the SWM341 CAN handler / CAN_Receive function, and the attacker must be able to inject or manipulate CAN frames reaching that handler. Per the CVSS vector (AV:L, PR:L), it is not remotely exploitable and needs low-level privileges/local proximity rather than a network path; no user interaction is required (UI:N). Limiting factors: only RT-Thread builds targeting the Synwit SWM341 microcontroller with CAN enabled are affected, and the attacker must reach the CAN bus/interface, so devices not using this specific BSP or CAN peripheral are not exposed. |
| Impact | The vendor-supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H) describes a local, low-complexity attack requiring low privileges but no user interaction, with high impact to confidentiality, integrity, and availability of the vulnerable system - hence the 7.1 score. The local attack vector is the dominant limiting factor: an attacker needs local access to the CAN interface or the ability to inject frames onto the bus, so this is not remotely exploitable over a network and does not lend itself to mass, automatable exploitation. Publicly available exploit code raises the practical risk for targeted scenarios, but this is not listed in CISA KEV and no EPSS score was provided, so there is no evidence of widespread active exploitation - the signals point to a real but access-gated, likely-targeted issue rather than an internet-scale emergency. The affected code path is a niche vendor BSP (Synwit SWM341), further narrowing real-world exposure. |
| Exploit ScenarioDerived | An attacker with local access to the device or its CAN bus crafts a malformed CAN frame (or manipulates the received length/data) that is processed by CAN_Receive, overrunning the fixed-size stack buffer. Given CVSS AV:L/AC:L, the attack is low-complexity but requires local proximity to the interface; the overflow overwrites the stack to crash the RTOS task or hijack control flow. Public exploit code is already available, lowering the barrier for a capable local attacker to reproduce the condition. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jul 03, 2026
Stack-based buffer overflow in RT-Thread RTOS (versions up to and including 5.0.2) affects the CAN_Receive function within the Synwit SWM341 board support package's CAN handler, allowing a local low-privileged attacker to corrupt the stack and potentially achieve code execution or crash the device. The flaw carries a CVSS 4.0 base score of 7.1, and publicly available exploit code exists. The vendor was contacted but did not respond, and there is no public evidence of active exploitation.
Earlier versions of this analysis (2)
Stack-based buffer overflow in RT-Thread RTOS (versions up to and including 5.0.2) resides in the CAN_Receive function within the SWM341 CAN handler board support package (bsp/synwit/libraries/SWM341_CSL), allowing a local attacker with low privileges to corrupt the stack and potentially execute arbitrary code or crash the affected embedded device. Publicly available exploit code exists (published via a RT-Thread GitHub issue and cataloged by VulDB), but there is no public exploit identified as being used in active campaigns and it is not listed in CISA KEV. The vendor was contacted early but did not respond, so no coordinated fix is confirmed.
Stack-based buffer overflow in RT-Thread RTOS (versions up to and including 5.0.2) resides in the CAN_Receive function of the Synwit SWM341 CAN handler (bsp/synwit/libraries/SWM341_CSL/CMSIS/DeviceSupport/SWM341.h), where an attacker with local low-privilege access can corrupt the stack and achieve high-impact compromise of confidentiality, integrity, and availability. Publicly available exploit code exists, and the CVSS 4.0 vector carries an Exploit Maturity of Proof-of-Concept (E:P); however, there is no public exploit identified as being used in active attack campaigns and it is not in CISA KEV. The vendor was contacted early but did not respond, so no coordinated fix is confirmed.
RemediationAI
No vendor-released patched version has been identified at time of analysis; the vendor was contacted early but did not respond, and the referenced GitHub issue (https://github.com/RT-Thread/rt-thread/issues/11425) documents the bug rather than a tagged fixed release, so a released patched version is not independently confirmed. Monitor the upstream repository (https://github.com/RT-Thread/rt-thread/) for a commit or release addressing CAN_Receive and rebuild firmware once available. As compensating controls, if you do not use the Synwit SWM341 CAN peripheral, disable or exclude the SWM341 CAN handler from the build to remove the vulnerable code path entirely; restrict physical and logical access to the CAN bus and the device's local interfaces so untrusted parties cannot inject frames (trade-off: may complicate legitimate diagnostics/tooling); and add application-layer validation of CAN frame length/DLC before it reaches the vulnerable buffer. Because CAN is a bus-level protocol, network segmentation of the CAN domain and gateway filtering reduce exposure but do not fix the underlying overflow.
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 a widely used open-source real-time operating system (RTOS) for embedded and IoT devices. The defect resides in bsp/synwit/libraries/SWM341_CSL/CMSIS/DeviceSupport/SWM341.h, part of the CMSIS device-support layer for the Synwit SWM341 microcontroller, specifically in the CAN_Receive routine that handles inbound Controller Area Network (CAN) bus frames. The root cause is CWE-121 (stack-based buffer overflow): the function writes attacker-influenced CAN message data into a fixed-size stack buffer without adequate bounds checking, so a manipulated frame or receive length can overrun the buffer and overwrite adjacent stack memory including saved registers and return addresses. On typical MCU targets without stack canaries, ASLR, or memory protection, such an overflow directly threatens control-flow integrity.
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:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
Local CAN-path access with low privileges and no user interaction (AV:L/PR:L/UI:N); stack overflow enabling code execution gives high C/I/A on the single MCU system (S:U).
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A security flaw has been discovered in RT-Thread up to 5.0.2. Affected by this issue is the function CAN_Receive in the library bsp/synwit/libraries/SWM341_CSL/CMSIS/DeviceSupport/SWM341.h of the component SWM341 CAN Handler. Performing a manipulation results in stack-based buffer overflow. The attack needs to be approached locally. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
Executive ViewAI
RT-Thread RTOS versions 5.0.2 and earlier contain a stack buffer overflow in CAN message handling (Synwit SWM341 support package) allowing local low-privileged attackers to crash devices or execute code, impacting embedded systems and IoT platforms in industrial and automotive deployments. Publicly available exploit code exists; no vendor-released patch identified at time of analysis. Organizations must immediately inventory and isolate affected systems to prevent operational disruption or unauthorized access.
Restrict local and physical access to affected RT-Thread RTOS devices; disable or isolate CAN interface if operations permit; implement network segmentation and firewall rules to prevent lateral movement from compromised devices; enforce multi-factor authentication on device management interfaces; deploy intrusion detection monitoring for CAN bus anomalies; maintain encrypted, offline backups of device configurations and firmware; establish device reboot procedures as a temporary disruption measure.
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
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
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 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
A stack buffer overflow occurs in libc/posix/ipc/mqueue.c in RT-Thread through 5.0.2. Rated high severity (CVSS 8.4), th
EUVD-2026-41563
GHSA-q2qc-v4ph-4mrq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB