HIGH 7.8

CVE-2026-14606: Stack Buffer Overflow in RT-Thread SWM341 CAN Handler

RT-Thread versions up to 5.0.2 contain a stack-based buffer overflow vulnerability in the SWM341 CAN (Controller Area Network) handler component. An attacker with local access and standard user privileges can trigger a buffer overflow through the CAN_Receive function, potentially allowing arbitrary code execution or system crash. The vulnerability is particularly concerning because exploit code has already been publicly released, making active exploitation more likely.

Source data · NVD / CISA · public domain

CVSS
3.1 · 7.8 HIGH · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses (CWE)
CWE-119, CWE-121
Affected products
0 configuration(s)
Published / Modified
2026-07-03 / 2026-07-06

NVD description (verbatim)

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.

7 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-14606 is a stack-based buffer overflow (CWE-119, CWE-121) in the SWM341 CAN handler library bundled with RT-Thread. The flaw exists in the CAN_Receive function within bsp/synwit/libraries/SWM341_CSL/CMSIS/DeviceSupport/SWM341.h. The vulnerability stems from improper bounds checking when handling CAN message data, permitting an attacker to write beyond allocated stack memory. Exploitation requires local access and low privilege context, but no user interaction is required. The CVSS 3.1 vector (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) reflects a score of 7.8 (HIGH), indicating confidentiality, integrity, and availability impact.

Business impact

For organizations deploying RT-Thread in embedded CAN bus applications—particularly automotive, industrial control, and IoT devices—this vulnerability poses a direct threat to system stability and data security. A compromised local user could escalate privileges, exfiltrate sensitive data, or disable critical vehicle or industrial equipment. In connected vehicle or manufacturing contexts, this could lead to physical safety risks, regulatory compliance violations, and operational downtime. The public availability of exploit code accelerates the window during which unpatched systems remain at active risk.

Affected systems

RT-Thread versions up to and including 5.0.2 are affected. Devices using the SWM341 microcontroller with the bundled CAN driver library are directly impacted. This includes Synwit-based SWM341 reference implementations and any embedded system integrating RT-Thread with SWM341 CAN support. Systems already updated beyond version 5.0.2 or using alternative CAN drivers are not affected.

Exploitability

Exploitability is moderate to high. The vulnerability requires local access and execution with at least low-privilege permissions, but exploitation is straightforward once those preconditions are met. No user interaction or complex attack chain is necessary. Critically, proof-of-concept exploit code is publicly available, significantly lowering the technical barrier for attackers. This shifts the threat from theoretical to imminent for unpatched systems in multi-user or supply-chain compromise scenarios.

Remediation

Immediate action is required: upgrade RT-Thread to a version newer than 5.0.2 that addresses the buffer overflow in the SWM341 CAN handler. Verify the patched version against the vendor's official release notes. Pending patching, apply strict access controls to limit local user privileges and restrict CAN driver functionality to trusted processes only. Consider network-level isolation of devices reliant on this component.

Patch guidance

Contact your RT-Thread vendor or check the official RT-Thread repository for releases after 5.0.2 that explicitly address CVE-2026-14606. Apply patches systematically across your deployment, prioritizing devices in safety-critical or high-availability roles. Test patches in a staging environment first to ensure CAN functionality remains intact post-update. Verify that your firmware or bootloader is also updated if they include bundled SWM341 libraries.

Detection guidance

Monitor for failed CAN message reception or driver crashes following suspicious local process activity. Stack overflow attempts may trigger segmentation faults or unexpected reboots. In environments with process auditing enabled, correlate CAN driver interactions with unauthorized local users or privilege escalation attempts. Intrusion detection systems should flag anomalous CAN bus traffic volumes or malformed CAN frames if the device exposes CAN interfaces to observable network segments. Forensic analysis of core dumps or system logs may reveal stack corruption patterns.

Why prioritize this

This vulnerability merits high-priority remediation due to the combination of public exploit availability, local privilege requirement (common in multi-tenant embedded systems), and full impact on confidentiality, integrity, and availability. While attack surface is limited to local users, the exploitability is proven and low-friction. Organizations running RT-Thread in automotive, industrial, or safety-critical contexts should treat this as urgent.

Risk score, explained

The CVSS 3.1 score of 7.8 (HIGH) reflects the serious nature of the vulnerability: unauthenticated local code execution leading to complete system compromise. The low attack complexity (AC:L) and lack of user interaction requirement (UI:N) amplify risk. The absence of scope change (S:U) limits impact to the affected system only, preventing lateral movement by default, but the presence of public exploit code and the vendor's non-responsiveness elevate practical risk beyond the numeric score.

Frequently asked questions

Does this affect RT-Thread installations that don't use the SWM341 CAN driver?

No. The vulnerability is specific to the SWM341 CAN handler library. If your RT-Thread deployment uses a different microcontroller or CAN driver, you are not affected by this flaw. Review your board support package (BSP) and device configuration to confirm.

What should we do if we can't upgrade immediately?

Apply the principle of least privilege: restrict CAN driver access to essential processes only and disable local user login where possible. Isolate affected devices from untrusted networks. Monitor system logs for abnormal process behavior and stack corruption indicators. Plan an upgrade window urgently, as public exploits reduce the time before active attacks appear.

Is this vulnerability exploitable remotely?

No. The attack vector is local-only, requiring the attacker to have access to a user account on the affected system. However, supply-chain compromise, physical device access, or lateral movement from another vulnerability could provide the necessary entry point.

Has the vendor released a patch?

According to available records, the vendor (RT-Thread) was contacted early but did not respond. Check the official RT-Thread GitHub repository and release notes for any patches issued after 5.0.2. If no official patch is available, escalate this with your vendor contact and consider alternative mitigations or migration to patched versions as soon as they are released.

This analysis is provided for informational purposes and does not constitute legal or professional security advice. Verify all patch versions and affected product lists against official vendor advisories and your own system inventory before taking remediation action. CVE-2026-14606 details are based on publicly available vulnerability data current as of the publication date; consult the latest vendor advisories for updates. Testing patches in non-production environments is strongly recommended before enterprise-wide deployment. Source: NVD (public-domain), retrieved 2026-08-12. Analysis generated by SEC.co (claude-haiku-4-5).